Kaydet (Commit) 70f5f7a9 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Use GetModuleFileNameEx instead of GetProcessImageFileName,

as the latter is not available on Windows 2000.
üst bd30f528
@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
...@@ -35,7 +35,7 @@ int main() ...@@ -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;
} }
...@@ -53,4 +53,4 @@ int main() ...@@ -53,4 +53,4 @@ int main()
CloseHandle(hProcess); CloseHandle(hProcess);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment