From 080a61c216a685b53c7ea978778dc87b2a25abd4 Mon Sep 17 00:00:00 2001 From: BramTeurlings Date: Mon, 2 Sep 2024 10:04:03 +0200 Subject: [PATCH] Changed to standard string compare --- gamebridge_reshade/src/delayLoader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamebridge_reshade/src/delayLoader.h b/gamebridge_reshade/src/delayLoader.h index 73216d5..54ab5a2 100644 --- a/gamebridge_reshade/src/delayLoader.h +++ b/gamebridge_reshade/src/delayLoader.h @@ -33,7 +33,7 @@ FARPROC WINAPI delayHook(unsigned dliNotify, PDelayLoadInfo pdli) { // Check if the DLL in question is one we want to delayed load. requested_dll = pdli->szDll; for (int i = 0; i < sr_dll_names.size(); i++) { - if (std::strcmp(sr_dll_names[i].c_str(), requested_dll.c_str()) == 0) { + if (sr_dll_names[i] == requested_dll) { // DLL matches one we want to load, let's load it const HMODULE hModule = LoadLibraryA((requested_dll + ".dll").c_str()); const DWORD errorCode = GetLastError();