Check for renderdoc.dll precisely when injecting, not just close match

* This means we don't call into a random dll if it happens to contain
  the substring 'renderdoc.dll' somewhere.
This commit is contained in:
baldurk
2017-10-24 23:03:57 +01:00
parent 6fd1a82454
commit 400b9487e1
+1 -1
View File
@@ -307,7 +307,7 @@ uintptr_t FindRemoteDLL(DWORD pid, wstring libName)
numModules++;
if(wcsstr(modnameLower, libName.c_str()))
if(wcsstr(modnameLower, libName.c_str()) == modnameLower)
{
ret = (uintptr_t)me32.modBaseAddr;
}