Browse Source

General: Fixed a bug that could prevent Control Panel link redirection from working correctly

pull/1138/head
Valentin Radu 4 years ago
parent
commit
552a2e2040
  1. 8
      ExplorerPatcher/dllmain.c

8
ExplorerPatcher/dllmain.c

@ -7863,14 +7863,18 @@ int ExplorerFrame_CompareStringOrdinal(const WCHAR* a1, int a2, const WCHAR* a3,
NULL NULL
}; };
int ret = CompareStringOrdinal(a1, a2, a3, a4, bIgnoreCase); int ret = CompareStringOrdinal(a1, a2, a3, a4, bIgnoreCase);
if ((!bDoNotRedirectSystemToSettingsApp && !bDoNotRedirectProgramsAndFeaturesToSettingsApp) || ret != CSTR_EQUAL) if (ret != CSTR_EQUAL)
{ {
return ret; return ret;
} }
int i = 0; int i = 0;
while (CompareStringOrdinal(a3, -1, pRedirects[i], -1, FALSE) != CSTR_EQUAL) while (1)
{ {
BOOL bCond = FALSE;
if (i == 0) bCond = bDoNotRedirectSystemToSettingsApp;
else if (i == 1) bCond = bDoNotRedirectProgramsAndFeaturesToSettingsApp;
if (CompareStringOrdinal(a3, -1, pRedirects[i], -1, FALSE) == CSTR_EQUAL && bCond) break;
i++; i++;
if (pRedirects[i] == NULL) if (pRedirects[i] == NULL)
{ {

Loading…
Cancel
Save