]> git.cworth.org Git - apitrace/blobdiff - inject/injectee.cpp
inject: Add define to use environment var instead of shared memory.
[apitrace] / inject / injectee.cpp
index 86992b83e94e3923b324e42378d446fa5b2073ee..57c82db8404941cdc13793e8ef8f75b82be6c43b 100644 (file)
@@ -513,7 +513,7 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
          * - http://msdn.microsoft.com/en-us/library/ms682583
          */
 
-#if 0
+#if !USE_SHARED_MEM
         szNewDllName = getenv("INJECT_DLL");
         if (!szNewDllName) {
             debugPrintf("warning: INJECT_DLL not set\n");