diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-09-02 12:03:52 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-09-02 12:03:52 +0100 |
commit | c34a4e2bed26e6eb96be9598bfb383a29a2b9607 (patch) | |
tree | e380ab97cbba6a4cfeb82d36f475201904f3125d /inject | |
parent | 7ddb07033043613303061416882c9b02ac3d76b6 (diff) |
inject: Stop black-listing internal DXGI/D3D10+ dependencies.
We don't hook any of the internally imported functions. And this will
allow to simplify things.
Diffstat (limited to 'inject')
-rw-r--r-- | inject/injectee.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/inject/injectee.cpp b/inject/injectee.cpp index 3a132747..2fad18cc 100644 --- a/inject/injectee.cpp +++ b/inject/injectee.cpp @@ -551,17 +551,6 @@ hookModule(HMODULE hModule, hookProcessThreadsFunctions(hModule, szModule, "api-ms-win-core-processthreads-l1-1-1.dll"); hookProcessThreadsFunctions(hModule, szModule, "api-ms-win-core-processthreads-l1-1-2.dll"); - /* Don't hook internal dependencies */ - if (stricmp(szBaseName, "d3d10core.dll") == 0 || - stricmp(szBaseName, "d3d10level9.dll") == 0 || - stricmp(szBaseName, "d3d10sdklayers.dll") == 0 || - stricmp(szBaseName, "d3d10_1core.dll") == 0 || - stricmp(szBaseName, "d3d11sdklayers.dll") == 0 || - stricmp(szBaseName, "d3d11_1sdklayers.dll") == 0 || - stricmp(szBaseName, "d3d11_2sdklayers.dll") == 0) { - return; - } - for (unsigned i = 0; i < numReplacements; ++i) { replaceImport(hModule, szModule, replacements[i].szMatchModule, replacements[i].hReplaceModule); replaceImport(hModule, szModule, replacements[i].szMatchModule, replacements[i].hReplaceModule); |