mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[SHELL32] AddStaticContextMenusToMenu(): Fix 3 MSVC 'warning C4805' (#6177)
- Use 'bool' type.
- Do not abuse '|=' operator.
Addendum to commit 7fb91d98f
This commit is contained in:
parent
e1c68dcba0
commit
0ba94c83b5
1 changed files with 6 additions and 5 deletions
|
@ -540,7 +540,7 @@ CDefaultContextMenu::AddStaticContextMenusToMenu(
|
|||
}
|
||||
|
||||
UINT cmdFlags = 0;
|
||||
BOOL hide = FALSE;
|
||||
bool hide = false;
|
||||
HKEY hkVerb;
|
||||
if (idResource > 0)
|
||||
{
|
||||
|
@ -585,12 +585,13 @@ CDefaultContextMenu::AddStaticContextMenusToMenu(
|
|||
// FIXME: GetAsyncKeyState should not be called here, clients
|
||||
// need to be updated to set the CMF_EXTENDEDVERBS flag.
|
||||
if (!(uFlags & CMF_EXTENDEDVERBS) && GetAsyncKeyState(VK_SHIFT) >= 0)
|
||||
hide |= RegValueExists(hkVerb, L"Extended");
|
||||
hide = RegValueExists(hkVerb, L"Extended");
|
||||
|
||||
hide |= RegValueExists(hkVerb, L"ProgrammaticAccessOnly");
|
||||
if (!hide)
|
||||
hide = RegValueExists(hkVerb, L"ProgrammaticAccessOnly");
|
||||
|
||||
if (!(uFlags & CMF_DISABLEDVERBS))
|
||||
hide |= RegValueExists(hkVerb, L"LegacyDisable");
|
||||
if (!hide && !(uFlags & CMF_DISABLEDVERBS))
|
||||
hide = RegValueExists(hkVerb, L"LegacyDisable");
|
||||
|
||||
if (RegValueExists(hkVerb, L"NeverDefault"))
|
||||
fState &= ~MFS_DEFAULT;
|
||||
|
|
Loading…
Reference in a new issue