Use GetModuleFileNameEx instead of GetProcessImageFileName,
as the latter is not available on Windows 2000.
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 @@
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 @@
CloseHandle(hProcess);
}
-}
\ No newline at end of file
+}