diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-04-17 17:26:42 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-04-17 17:26:42 (GMT) |
commit | 70f5f7a9f4222cacaf0388c50fed046ecc7787e4 (patch) | |
tree | 53a82a0876896a54cf204527807cbbfd47e908b9 /Tools/buildbot | |
parent | bd30f5288112f9c1d8d5ddfd12dffff32f7d2c44 (diff) | |
download | cpython-70f5f7a9f4222cacaf0388c50fed046ecc7787e4.zip cpython-70f5f7a9f4222cacaf0388c50fed046ecc7787e4.tar.gz cpython-70f5f7a9f4222cacaf0388c50fed046ecc7787e4.tar.bz2 |
Use GetModuleFileNameEx instead of GetProcessImageFileName,
as the latter is not available on Windows 2000.
Diffstat (limited to 'Tools/buildbot')
-rw-r--r-- | Tools/buildbot/build.bat | 2 | ||||
-rw-r--r-- | 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 dc2cccb..e96323c 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 46a14b7..ebc9aa4 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 +} |