summaryrefslogtreecommitdiff
path: root/inject/injectee.cpp
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-07-15 16:07:05 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-07-15 16:17:10 +0100
commit498710d4c9fe6f3b432ac7a7acd69b70d6a32bd3 (patch)
tree7701f78fa4ceee6e777b337ec1b2a6b8ae1ac90e /inject/injectee.cpp
parent436d5658f5f9888f9c8cc8c4f8b8f665dcdd437c (diff)
inject: Only specific security attributes when creating the file mapping.
To avoid depending on advapi32.dll from inject.dll.
Diffstat (limited to 'inject/injectee.cpp')
-rw-r--r--inject/injectee.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/inject/injectee.cpp b/inject/injectee.cpp
index bd91f0ad..60d2b4e0 100644
--- a/inject/injectee.cpp
+++ b/inject/injectee.cpp
@@ -1041,7 +1041,7 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
return FALSE;
}
} else {
- SharedMem *pSharedMem = OpenSharedMemory();
+ SharedMem *pSharedMem = OpenSharedMemory(NULL);
if (!pSharedMem) {
debugPrintf("inject: error: failed to open shared memory\n");
return FALSE;