Fix the lookup path for 64bits pythonDLL fron 32bits process

This commit is contained in:
hakril
2016-01-08 00:41:36 +01:00
parent 5c0ed1edfe
commit 4b5a6d970a
+1 -1
View File
@@ -136,7 +136,7 @@ def validate_python_dll_presence(process):
return True
if windows.current_process.bitness == 32 and process.bitness == 64:
with windows.utils.DisableWow64FsRedirection():
if not os.path.exists(r"C:\system32\python27.dll"):
if not os.path.exists(r"C:\Windows\system32\python27.dll"):
raise ValueError("Could not find Python DLL to inject")
return True
if windows.current_process.bitness == 64 and process.bitness == 32: