From 83886fe4643cd17cbd5391926acf1fb171628d31 Mon Sep 17 00:00:00 2001 From: hugy <504650082@qq.com> Date: Mon, 29 May 2023 09:35:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ConsoleApplication.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))