1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-01-31 03:53:44 +01:00

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

This commit is contained in:
Valentin Radu 2022-06-07 19:34:38 +03:00
parent c1f9f49f37
commit 552a2e2040

View File

@ -7863,14 +7863,18 @@ int ExplorerFrame_CompareStringOrdinal(const WCHAR* a1, int a2, const WCHAR* a3,
NULL
};
int ret = CompareStringOrdinal(a1, a2, a3, a4, bIgnoreCase);
if ((!bDoNotRedirectSystemToSettingsApp && !bDoNotRedirectProgramsAndFeaturesToSettingsApp) || ret != CSTR_EQUAL)
if (ret != CSTR_EQUAL)
{
return ret;
}
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++;
if (pRedirects[i] == NULL)
{