]> granicus.if.org Git - nethack/commitdiff
win32 recover follow-up bit
authornethack.allison <nethack.allison>
Mon, 19 Aug 2002 00:17:56 +0000 (00:17 +0000)
committernethack.allison <nethack.allison>
Mon, 19 Aug 2002 00:17:56 +0000 (00:17 +0000)
util/recover.c

index 072c493ca8fe2708d798183592eb2e462ccbaab1..49638007d9d1e15d1d127c31db136d501533cc68 100644 (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;