aboutsummaryrefslogtreecommitdiff
path: root/src/engine/logging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/logging.cpp')
-rw-r--r--src/engine/logging.cpp6
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 }