]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use GetModuleFileNameEx instead of GetProcessImageFileName,
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 17 Apr 2006 17:26:42 +0000 (17:26 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 17 Apr 2006 17:26:42 +0000 (17:26 +0000)
as the latter is not available on Windows 2000.

Tools/buildbot/build.bat
Tools/buildbot/kill_python.c

index dc2cccb5c05e8f4724c34af2a1b66a94496a1f64..e96323c5b9e615a239093f9ca00ab0dc02c550f4 100644 (file)
@@ -1,5 +1,5 @@
 @rem Used by the buildbot "compile" step.
 cmd /c Tools\buildbot\external.bat
 call "%VS71COMNTOOLS%vsvars32.bat"
-@rem cmd /q/c Tools\buildbot\kill_python.bat
+cmd /q/c Tools\buildbot\kill_python.bat
 devenv.com /useenv /build Debug PCbuild\pcbuild.sln
index 46a14b78a204d7b9ffdc0b53f7d594a84c0df21a..ebc9aa4855328d186797630cb5f18c2bb6fddf08 100644 (file)
@@ -35,7 +35,7 @@ int main()
                        printf("EnumProcessModules failed: %d\n", GetLastError());
                        return 1;
                }
-               if (!GetProcessImageFileName(hProcess, path, sizeof(path))) {
+               if (!GetModuleFileNameEx(hProcess, NULL, path, sizeof(path))) {
                        printf("GetProcessImageFileName failed\n");
                        return 1;
                }
@@ -53,4 +53,4 @@ int main()
 
                CloseHandle(hProcess);
        }
-}
\ No newline at end of file
+}