Skip to content

Commit

Permalink
Changed to standard string compare
Browse files Browse the repository at this point in the history
  • Loading branch information
BramTeurlings committed Sep 2, 2024
1 parent 00cc587 commit 080a61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamebridge_reshade/src/delayLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 080a61c

Please sign in to comment.