From e78138558fe17d8a91929c87b2a6d0c9a482d78a Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Wed, 28 Apr 2021 16:43:01 -0500 Subject: Clean up 32-bit assumptions. --- src/engine/logging.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/engine/logging.cpp') 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( { HRESULT hr = S_OK; WCHAR wzTempFolder[MAX_PATH] = { }; - DWORD cchTempFolder = 0; + SIZE_T cchTempFolder = 0; DWORD dwSessionId = 0; LPWSTR sczSessionId = 0; - DWORD cchSessionId = 0; + SIZE_T cchSessionId = 0; if (!::GetTempPathW(countof(wzTempFolder), wzTempFolder)) { @@ -740,7 +740,7 @@ static HRESULT GetNonSessionSpecificTempFolder( hr = ::StringCchLengthW(sczSessionId, STRSAFE_MAX_CCH, reinterpret_cast(&cchSessionId)); ExitOnFailure(hr, "Failed to get length of session id string."); - if (CSTR_EQUAL == ::CompareStringW(LOCALE_NEUTRAL, 0, wzTempFolder + cchTempFolder - cchSessionId, cchSessionId, sczSessionId, cchSessionId)) + if (CSTR_EQUAL == ::CompareStringW(LOCALE_NEUTRAL, 0, wzTempFolder + cchTempFolder - cchSessionId, static_cast(cchSessionId), sczSessionId, static_cast(cchSessionId))) { cchTempFolder -= cchSessionId; } -- cgit v1.2.3-55-g6feb