SHInitRestricted() fix boolean error introduced in last patch.
This commit is contained in:
parent
b56950864b
commit
c67ad75985
|
@ -871,15 +871,15 @@ BOOL WINAPI SHInitRestricted(LPCVOID unused, LPCVOID inpRegKey)
|
|||
{
|
||||
if (SHELL_OsIsUnicode())
|
||||
{
|
||||
if (lstrcmpiA((LPSTR)inpRegKey, strRegistryPolicyA) ||
|
||||
lstrcmpiA((LPSTR)inpRegKey, strPolicyA))
|
||||
if (lstrcmpiW((LPWSTR)inpRegKey, strRegistryPolicyW) &&
|
||||
lstrcmpiW((LPWSTR)inpRegKey, strPolicyW))
|
||||
/* doesn't match, fail */
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (lstrcmpiW((LPWSTR)inpRegKey, strRegistryPolicyW) ||
|
||||
lstrcmpiW((LPWSTR)inpRegKey, strPolicyW))
|
||||
if (lstrcmpiA((LPSTR)inpRegKey, strRegistryPolicyA) &&
|
||||
lstrcmpiA((LPSTR)inpRegKey, strPolicyA))
|
||||
/* doesn't match, fail */
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue