diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-04-28 16:43:01 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-04-29 14:05:34 -0500 |
commit | e78138558fe17d8a91929c87b2a6d0c9a482d78a (patch) | |
tree | 40c0c61217a4b42ab1bf40470923cade6a3a08b0 /src/engine/logging.cpp | |
parent | 14cdda3c489d6b9801f05939044e67b13939b42d (diff) | |
download | wix-e78138558fe17d8a91929c87b2a6d0c9a482d78a.tar.gz wix-e78138558fe17d8a91929c87b2a6d0c9a482d78a.tar.bz2 wix-e78138558fe17d8a91929c87b2a6d0c9a482d78a.zip |
Clean up 32-bit assumptions.
Diffstat (limited to 'src/engine/logging.cpp')
-rw-r--r-- | src/engine/logging.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/logging.cpp b/src/engine/logging.cpp index fd2343fa..a1159c41 100644 --- a/src/engine/logging.cpp +++ b/src/engine/logging.cpp | |||
@@ -717,10 +717,10 @@ static HRESULT GetNonSessionSpecificTempFolder( | |||
717 | { | 717 | { |
718 | HRESULT hr = S_OK; | 718 | HRESULT hr = S_OK; |
719 | WCHAR wzTempFolder[MAX_PATH] = { }; | 719 | WCHAR wzTempFolder[MAX_PATH] = { }; |
720 | DWORD cchTempFolder = 0; | 720 | SIZE_T cchTempFolder = 0; |
721 | DWORD dwSessionId = 0; | 721 | DWORD dwSessionId = 0; |
722 | LPWSTR sczSessionId = 0; | 722 | LPWSTR sczSessionId = 0; |
723 | DWORD cchSessionId = 0; | 723 | SIZE_T cchSessionId = 0; |
724 | 724 | ||
725 | if (!::GetTempPathW(countof(wzTempFolder), wzTempFolder)) | 725 | if (!::GetTempPathW(countof(wzTempFolder), wzTempFolder)) |
726 | { | 726 | { |
@@ -740,7 +740,7 @@ static HRESULT GetNonSessionSpecificTempFolder( | |||
740 | hr = ::StringCchLengthW(sczSessionId, STRSAFE_MAX_CCH, reinterpret_cast<size_t*>(&cchSessionId)); | 740 | hr = ::StringCchLengthW(sczSessionId, STRSAFE_MAX_CCH, reinterpret_cast<size_t*>(&cchSessionId)); |
741 | ExitOnFailure(hr, "Failed to get length of session id string."); | 741 | ExitOnFailure(hr, "Failed to get length of session id string."); |
742 | 742 | ||
743 | if (CSTR_EQUAL == ::CompareStringW(LOCALE_NEUTRAL, 0, wzTempFolder + cchTempFolder - cchSessionId, cchSessionId, sczSessionId, cchSessionId)) | 743 | if (CSTR_EQUAL == ::CompareStringW(LOCALE_NEUTRAL, 0, wzTempFolder + cchTempFolder - cchSessionId, static_cast<DWORD>(cchSessionId), sczSessionId, static_cast<DWORD>(cchSessionId))) |
744 | { | 744 | { |
745 | cchTempFolder -= cchSessionId; | 745 | cchTempFolder -= cchSessionId; |
746 | } | 746 | } |