Use GetModuleFileNameEx instead of GetProcessImageFileName,

as the latter is not available on Windows 2000.
This commit is contained in:
Martin v. Löwis 2006-04-17 17:26:42 +00:00
parent bd30f52881
commit 70f5f7a9f4
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
@rem Used by the buildbot "compile" step. @rem Used by the buildbot "compile" step.
cmd /c Tools\buildbot\external.bat cmd /c Tools\buildbot\external.bat
call "%VS71COMNTOOLS%vsvars32.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 devenv.com /useenv /build Debug PCbuild\pcbuild.sln

View File

@ -35,7 +35,7 @@ int main()
printf("EnumProcessModules failed: %d\n", GetLastError()); printf("EnumProcessModules failed: %d\n", GetLastError());
return 1; return 1;
} }
if (!GetProcessImageFileName(hProcess, path, sizeof(path))) { if (!GetModuleFileNameEx(hProcess, NULL, path, sizeof(path))) {
printf("GetProcessImageFileName failed\n"); printf("GetProcessImageFileName failed\n");
return 1; return 1;
} }