From e0d430b3fcf4eba804a542bcca4b0445db3a8415 Mon Sep 17 00:00:00 2001 From: hakril Date: Fri, 8 Jan 2016 00:41:36 +0100 Subject: [PATCH] Fix the lookup path for 64bits pythonDLL fron 32bits process --- windows/injection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/injection.py b/windows/injection.py index 9c9be64..de27358 100644 --- a/windows/injection.py +++ b/windows/injection.py @@ -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: