- if (stricmp(szBaseName, replacements[i].szMatchModule) == 0) {
- debugPrintf(" %s(\"%s\", \"%s\")\n", __FUNCTION__, szModule, lpProcName);
- FARPROC pProcAddress = GetProcAddress(replacements[i].hReplaceModule, lpProcName);
- if (pProcAddress) {
- if (VERBOSITY >= 2) {
- debugPrintf(" replacing %s!%s\n", szBaseName, lpProcName);
+ if (stricmp(szBaseName, replacements[i].szMatchModule) == 0) {
+ if (VERBOSITY > 0) {
+ debugPrintf(" %s(\"%s\", \"%s\")\n", __FUNCTION__, szModule, lpProcName);
+ }
+ FARPROC pProcAddress = GetProcAddress(replacements[i].hReplaceModule, lpProcName);
+ if (pProcAddress) {
+ if (VERBOSITY >= 2) {
+ debugPrintf(" replacing %s!%s\n", szBaseName, lpProcName);
+ }
+ return pProcAddress;
+ } else {
+ if (VERBOSITY > 0) {
+ debugPrintf(" ignoring %s!%s\n", szBaseName, lpProcName);
+ }
+ break;