diff options
| author | Thomas Tanner <trtanner@btinternet.com> | 2015-09-26 12:21:43 +0100 |
|---|---|---|
| committer | Thomas Tanner <trtanner@btinternet.com> | 2015-09-26 12:21:43 +0100 |
| commit | 364c385f1a5f71c3eb6a80b44c26ddd7af012ec8 (patch) | |
| tree | 48083f2b8d9e914fcb96ed0e0857ac79a34994f8 /src/shared/inject.cpp | |
| parent | 3c1c50fefc4245235ad2f92ac65efa5656f825cb (diff) | |
| parent | 462c549f7725810e55131a62f731357c6b2396ae (diff) | |
Merge branch 'master' of https://github.com/TanninOne/modorganizer.git
# Conflicts:
# .gitignore
Diffstat (limited to 'src/shared/inject.cpp')
| -rw-r--r-- | src/shared/inject.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/inject.cpp b/src/shared/inject.cpp index 36db7840..fcd4cfab 100644 --- a/src/shared/inject.cpp +++ b/src/shared/inject.cpp @@ -113,6 +113,8 @@ void injectDLL(HANDLE processHandle, HANDLE threadHandle, const std::string &dll // dizzy yet? we still have to calculate the entry point as an address relative to our stub
ULONG entryPoint = 0;
+ // not implemented on 64 bit systems
+#ifdef _X86_
CONTEXT threadContext;
threadContext.ContextFlags = CONTEXT_CONTROL;
if (::GetThreadContext(threadHandle, &threadContext) == 0) {
@@ -139,6 +141,7 @@ void injectDLL(HANDLE processHandle, HANDLE threadHandle, const std::string &dll if (::SetThreadContext(threadHandle, &threadContext) == 0) {
throw windows_error("failed to overwrite thread context");
}
+#endif
}
} // namespace MOShared
|
