From 31d12fb0f9b61510c98897a1bd39b578c8abc1b3 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Sun, 24 Dec 2023 06:42:02 +0200 Subject: [PATCH] reset these initially --- steamclient_loader/ColdClientLoader.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/steamclient_loader/ColdClientLoader.cpp b/steamclient_loader/ColdClientLoader.cpp index 7f549997..3162ae2b 100644 --- a/steamclient_loader/ColdClientLoader.cpp +++ b/steamclient_loader/ColdClientLoader.cpp @@ -69,7 +69,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance return 1; } - WCHAR TMP[MAX_PATH] = {}; + WCHAR TMP[MAX_PATH] = { 0 }; if (!IsNotRelativePathOrRemoveFileName(Client64Path, false)) { lstrcpyW(TMP, Client64Path); SecureZeroMemory(Client64Path, sizeof(Client64Path)); @@ -113,7 +113,8 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance MessageBoxA(NULL, "Unable to load the requested EXE file.", "ColdClientLoader", MB_ICONERROR); return 1; } - HKEY Registrykey; + + HKEY Registrykey = { 0 }; // Declare some variables to be used for Steam registry. DWORD UserId = 0x03100004771F810D & 0xffffffff; DWORD ProcessID = GetCurrentProcessId();