diff --git a/source/ConsoleApplication.cc b/source/ConsoleApplication.cc index c86dc6d..3ba2dbb 100644 --- a/source/ConsoleApplication.cc +++ b/source/ConsoleApplication.cc @@ -526,7 +526,7 @@ DWORD GetPIDForProcess(wchar_t* process) if (!hSnapshot) { return 0; } - pe32.dwSize = sizeof(PROCESSENTRY32); + pe32.dwSize = sizeof(PROCESSENTRY32W); for (working = Process32FirstW(hSnapshot, &pe32); working; working = Process32NextW(hSnapshot, &pe32)) { if (!wcscmp(pe32.szExeFile, process))