forked from Mirrors/wine-wine
oledlg: Simplify conditional expression (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>oldstable
parent
6de871c01b
commit
bd957b6db6
|
@ -183,7 +183,7 @@ BOOL WINAPI OleUIAddVerbMenuW(IOleObject *object, LPCWSTR shorttype,
|
|||
|
||||
LoadStringW(OLEDLG_hInstance, IDS_VERBMENU_OBJECT, resstrW, sizeof(resstrW)/sizeof(WCHAR));
|
||||
/* no object, or object without enumeration support */
|
||||
if (!object || (object && !enumverbs)) {
|
||||
if (!object || !enumverbs) {
|
||||
InsertMenuW(hMenu, uPos, MF_BYPOSITION|MF_STRING|MF_GRAYED, idmin, resstrW);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue