mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 13:14:01 +08:00
use the suggested way in the docs to zero-out these structs
This commit is contained in:
parent
71b5c5eaed
commit
0b8eb76bdd
@ -33,8 +33,12 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance
|
||||
WCHAR ExeCommandLine[4096] = { 0 };
|
||||
WCHAR AppId[128] = { 0 };
|
||||
|
||||
STARTUPINFOW info = { sizeof(info) };
|
||||
PROCESS_INFORMATION processInfo;
|
||||
STARTUPINFOW info = { 0 };
|
||||
SecureZeroMemory(&info, sizeof(info));
|
||||
info.cb = sizeof(info);
|
||||
|
||||
PROCESS_INFORMATION processInfo = { 0 };
|
||||
SecureZeroMemory(&processInfo, sizeof(processInfo));
|
||||
|
||||
int Length = GetModuleFileNameW(GetModuleHandleW(NULL), CurrentDirectory, sizeof(CurrentDirectory)) + 1;
|
||||
for (int i = Length; i > 0; i--) {
|
||||
|
Loading…
Reference in New Issue
Block a user