win32 recover follow-up bit
This commit is contained in:
+1
-1
@@ -417,7 +417,7 @@ int pid;
|
|||||||
pe32.dwSize = sizeof(PROCESSENTRY32);
|
pe32.dwSize = sizeof(PROCESSENTRY32);
|
||||||
if (Process32First(hProcessSnap, &pe32)) {
|
if (Process32First(hProcessSnap, &pe32)) {
|
||||||
do {
|
do {
|
||||||
if (pe32.th32ProcessID == (unsigned)pid &&
|
if (pe32.th32ProcessID == (unsigned)pid && pe32.szExeFile &&
|
||||||
(!strcmpi(pe32.szExeFile, "nethack.exe") ||
|
(!strcmpi(pe32.szExeFile, "nethack.exe") ||
|
||||||
!strcmpi(pe32.szExeFile, "nethackw.exe")))
|
!strcmpi(pe32.szExeFile, "nethackw.exe")))
|
||||||
bRet = TRUE;
|
bRet = TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user