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:01:03 +01:00
parent 751a8f21b4
commit 85a7fa744e
+1 -1
View File
@@ -324,7 +324,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;
}