mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2025-02-28 07:31:33 +01:00
General: Fixed a bug that could prevent Control Panel link redirection from working correctly
This commit is contained in:
parent
c1f9f49f37
commit
552a2e2040
@ -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…
x
Reference in New Issue
Block a user