diff options
Diffstat (limited to '')
| -rw-r--r-- | src/burn/engine/apply.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/burn/engine/apply.cpp b/src/burn/engine/apply.cpp index 31d756a8..e67208b4 100644 --- a/src/burn/engine/apply.cpp +++ b/src/burn/engine/apply.cpp | |||
| @@ -611,7 +611,7 @@ extern "C" HRESULT ApplyCache( | |||
| 611 | ExitOnFailure(hr, "Failed cache action: %ls", L"layout bundle"); | 611 | ExitOnFailure(hr, "Failed cache action: %ls", L"layout bundle"); |
| 612 | 612 | ||
| 613 | hr = ReportOverallProgressTicks(pUX, FALSE, pPlan->cOverallProgressTicksTotal, pContext); | 613 | hr = ReportOverallProgressTicks(pUX, FALSE, pPlan->cOverallProgressTicksTotal, pContext); |
| 614 | LogExitOnFailure(hr, MSG_USER_CANCELED, "Cancel during cache: %ls", L"layout bundle"); | 614 | LogExitOnRootFailure(hr, MSG_USER_CANCELED, "Cancel during cache: %ls", L"layout bundle"); |
| 615 | 615 | ||
| 616 | break; | 616 | break; |
| 617 | 617 | ||
| @@ -637,7 +637,7 @@ extern "C" HRESULT ApplyCache( | |||
| 637 | ExitOnFailure(hr, "Failed cache action: %ls", L"cache package"); | 637 | ExitOnFailure(hr, "Failed cache action: %ls", L"cache package"); |
| 638 | 638 | ||
| 639 | hr = ReportOverallProgressTicks(pUX, FALSE, pPlan->cOverallProgressTicksTotal, pContext); | 639 | hr = ReportOverallProgressTicks(pUX, FALSE, pPlan->cOverallProgressTicksTotal, pContext); |
| 640 | LogExitOnFailure(hr, MSG_USER_CANCELED, "Cancel during cache: %ls", L"cache package"); | 640 | LogExitOnRootFailure(hr, MSG_USER_CANCELED, "Cancel during cache: %ls", L"cache package"); |
| 641 | 641 | ||
| 642 | break; | 642 | break; |
| 643 | 643 | ||
| @@ -1038,7 +1038,7 @@ static HRESULT ApplyCachePackage( | |||
| 1038 | } | 1038 | } |
| 1039 | else if (fCanceledBegin) | 1039 | else if (fCanceledBegin) |
| 1040 | { | 1040 | { |
| 1041 | LogExitOnFailure(hr, MSG_USER_CANCELED, "Cancel during cache: %ls: %ls", L"begin cache package", pPackage->sczId); | 1041 | LogExitOnRootFailure(hr, MSG_USER_CANCELED, "Cancel during cache: %ls: %ls", L"begin cache package", pPackage->sczId); |
| 1042 | } | 1042 | } |
| 1043 | 1043 | ||
| 1044 | break; | 1044 | break; |
| @@ -1796,8 +1796,7 @@ static HRESULT AcquireContainerOrPayload( | |||
| 1796 | 1796 | ||
| 1797 | break; | 1797 | break; |
| 1798 | default: | 1798 | default: |
| 1799 | hr = E_FILENOTFOUND; | 1799 | LogExitWithRootFailure(hr, E_FILENOTFOUND, MSG_RESOLVE_SOURCE_FAILED, "Failed to resolve source, payload: %ls, package: %ls, container: %ls", wzPayloadId, pPackage ? pPackage->sczId : NULL, pContainer ? pContainer->sczId : NULL); |
| 1800 | LogExitOnFailure(hr, MSG_RESOLVE_SOURCE_FAILED, "Failed to resolve source, payload: %ls, package: %ls, container: %ls", wzPayloadId, pPackage ? pPackage->sczId : NULL, pContainer ? pContainer->sczId : NULL); | ||
| 1801 | } | 1800 | } |
| 1802 | 1801 | ||
| 1803 | // Send 100% complete here. This is sometimes the only progress sent to the BA. | 1802 | // Send 100% complete here. This is sometimes the only progress sent to the BA. |
| @@ -1965,17 +1964,12 @@ static HRESULT PreparePayloadDestinationPath( | |||
| 1965 | dwFileAttributes &= ~FILE_ATTRIBUTE_READONLY; | 1964 | dwFileAttributes &= ~FILE_ATTRIBUTE_READONLY; |
| 1966 | if (!::SetFileAttributes(wzDestinationPath, dwFileAttributes)) | 1965 | if (!::SetFileAttributes(wzDestinationPath, dwFileAttributes)) |
| 1967 | { | 1966 | { |
| 1968 | ExitWithLastError(hr, "Failed to clear readonly bit on payload destination path: %ls", wzDestinationPath); | 1967 | ExitWithPathLastError(hr, "Failed to clear readonly bit on payload destination path: %ls", wzDestinationPath); |
| 1969 | } | 1968 | } |
| 1970 | } | 1969 | } |
| 1971 | } | 1970 | } |
| 1972 | 1971 | ||
| 1973 | LExit: | 1972 | LExit: |
| 1974 | if (E_FILENOTFOUND == hr || E_PATHNOTFOUND == hr) | ||
| 1975 | { | ||
| 1976 | hr = S_OK; | ||
| 1977 | } | ||
| 1978 | |||
| 1979 | return hr; | 1973 | return hr; |
| 1980 | } | 1974 | } |
| 1981 | 1975 | ||
