[Python-checkins] r45493 - python/trunk/Tools/buildbot/build.bat python/trunk/Tools/buildbot/kill_python.c

martin.v.loewis python-checkins at python.org
Mon Apr 17 19:26:43 CEST 2006


Author: martin.v.loewis
Date: Mon Apr 17 19:26:42 2006
New Revision: 45493

Modified:
   python/trunk/Tools/buildbot/build.bat
   python/trunk/Tools/buildbot/kill_python.c
Log:
Use GetModuleFileNameEx instead of GetProcessImageFileName,
as the latter is not available on Windows 2000.

Modified: python/trunk/Tools/buildbot/build.bat
==============================================================================
--- python/trunk/Tools/buildbot/build.bat	(original)
+++ python/trunk/Tools/buildbot/build.bat	Mon Apr 17 19:26:42 2006
@@ -1,5 +1,5 @@
 @rem Used by the buildbot "compile" step.
 cmd /c Tools\buildbot\external.bat
 call "%VS71COMNTOOLS%vsvars32.bat"
- at 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

Modified: python/trunk/Tools/buildbot/kill_python.c
==============================================================================
--- python/trunk/Tools/buildbot/kill_python.c	(original)
+++ python/trunk/Tools/buildbot/kill_python.c	Mon Apr 17 19:26:42 2006
@@ -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
+}


More information about the Python-checkins mailing list