mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:52:59 +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;
|
UINT cmdFlags = 0;
|
||||||
BOOL hide = FALSE;
|
bool hide = false;
|
||||||
HKEY hkVerb;
|
HKEY hkVerb;
|
||||||
if (idResource > 0)
|
if (idResource > 0)
|
||||||
{
|
{
|
||||||
|
@ -585,12 +585,13 @@ CDefaultContextMenu::AddStaticContextMenusToMenu(
|
||||||
// FIXME: GetAsyncKeyState should not be called here, clients
|
// FIXME: GetAsyncKeyState should not be called here, clients
|
||||||
// need to be updated to set the CMF_EXTENDEDVERBS flag.
|
// need to be updated to set the CMF_EXTENDEDVERBS flag.
|
||||||
if (!(uFlags & CMF_EXTENDEDVERBS) && GetAsyncKeyState(VK_SHIFT) >= 0)
|
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))
|
if (!hide && !(uFlags & CMF_DISABLEDVERBS))
|
||||||
hide |= RegValueExists(hkVerb, L"LegacyDisable");
|
hide = RegValueExists(hkVerb, L"LegacyDisable");
|
||||||
|
|
||||||
if (RegValueExists(hkVerb, L"NeverDefault"))
|
if (RegValueExists(hkVerb, L"NeverDefault"))
|
||||||
fState &= ~MFS_DEFAULT;
|
fState &= ~MFS_DEFAULT;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue