From 70f5f7a9f4222cacaf0388c50fed046ecc7787e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 17 Apr 2006 17:26:42 +0000 Subject: [PATCH] Use GetModuleFileNameEx instead of GetProcessImageFileName, as the latter is not available on Windows 2000. --- Tools/buildbot/build.bat | 2 +- Tools/buildbot/kill_python.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools/buildbot/build.bat b/Tools/buildbot/build.bat index dc2cccb5c0..e96323c5b9 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 46a14b78a2..ebc9aa4855 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 +} -- 2.40.0