From: Martin v. Löwis Date: Mon, 17 Apr 2006 17:26:42 +0000 (+0000) Subject: Use GetModuleFileNameEx instead of GetProcessImageFileName, X-Git-Tag: v2.5a2~157 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70f5f7a9f4222cacaf0388c50fed046ecc7787e4;p=thirdparty%2FPython%2Fcpython.git Use GetModuleFileNameEx instead of GetProcessImageFileName, as the latter is not available on Windows 2000. --- diff --git a/Tools/buildbot/build.bat b/Tools/buildbot/build.bat index dc2cccb5c05e..e96323c5b9e6 100644 --- a/Tools/buildbot/build.bat +++ b/Tools/buildbot/build.bat @@ -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 diff --git a/Tools/buildbot/kill_python.c b/Tools/buildbot/kill_python.c index 46a14b78a204..ebc9aa485532 100644 --- a/Tools/buildbot/kill_python.c +++ b/Tools/buildbot/kill_python.c @@ -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 +}