From 79995a2cf7ba901b8ad605dde90f54ec3bb88350 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Wed, 29 Dec 2021 12:25:48 +0100 Subject: [PATCH] Don't pass wrong type Signed-off-by: Sven Strickroth --- src/Utils/MiscUI/MessageBox.cpp | 2 +- test/Cache/CacheDlg.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utils/MiscUI/MessageBox.cpp b/src/Utils/MiscUI/MessageBox.cpp index cd0e6ce96..f40671710 100644 --- a/src/Utils/MiscUI/MessageBox.cpp +++ b/src/Utils/MiscUI/MessageBox.cpp @@ -676,7 +676,7 @@ void CMessageBox::SetRegistryValue(const CString& sValue, DWORD value) #endif DWORD disp; HKEY hKey; - if (RegCreateKeyEx(HKEY_CURRENT_USER, path, 0, L"", REG_OPTION_NON_VOLATILE, KEY_WRITE, nullptr, &hKey, &disp) != ERROR_SUCCESS) + if (RegCreateKeyEx(HKEY_CURRENT_USER, path, 0, nullptr, REG_OPTION_NON_VOLATILE, KEY_WRITE, nullptr, &hKey, &disp) != ERROR_SUCCESS) { return; } diff --git a/test/Cache/CacheDlg.cpp b/test/Cache/CacheDlg.cpp index 612466bc2..1d3ade882 100644 --- a/test/Cache/CacheDlg.cpp +++ b/test/Cache/CacheDlg.cpp @@ -249,7 +249,7 @@ bool CCacheDlg::GetStatusFromRemoteCache(const CTGitPath& Path, bool bRecursive) startup.cb = sizeof(startup); CString sCachePath = L"TGitCache.exe"; - if (CreateProcess(sCachePath.GetBuffer(sCachePath.GetLength() + 1), L"", nullptr, nullptr, FALSE, 0, nullptr, nullptr, &startup, &process) == 0) + if (CreateProcess(sCachePath.GetBuffer(sCachePath.GetLength() + 1), nullptr, nullptr, nullptr, FALSE, 0, nullptr, nullptr, &startup, &process) == 0) { // It's not appropriate to do a message box here, because there may be hundreds of calls sCachePath.ReleaseBuffer(); -- 2.11.4.GIT