mirror of https://github.com/python/cpython
Use GetModuleFileNameEx instead of GetProcessImageFileName,
as the latter is not available on Windows 2000.
This commit is contained in:
parent
bd30f52881
commit
70f5f7a9f4
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue