win32 recover follow-up bit

This commit is contained in:
nethack.allison
2002-08-19 00:17:56 +00:00
parent 2695ca47b4
commit 93014315ff

View File

@@ -417,7 +417,7 @@ int pid;
pe32.dwSize = sizeof(PROCESSENTRY32);
if (Process32First(hProcessSnap, &pe32)) {
do {
if (pe32.th32ProcessID == (unsigned)pid &&
if (pe32.th32ProcessID == (unsigned)pid && pe32.szExeFile &&
(!strcmpi(pe32.szExeFile, "nethack.exe") ||
!strcmpi(pe32.szExeFile, "nethackw.exe")))
bRet = TRUE;