Module: wine Branch: master Commit: 626d0b75ba77edb1efdb0a99a3f099f36daec128 URL: http://source.winehq.org/git/wine.git/?a=commit;h=626d0b75ba77edb1efdb0a99a3...
Author: Marcus Meissner marcus@jet.franken.de Date: Sat Feb 18 15:33:56 2012 +0100
user32: Remove duplicated call to GetSystemMenu (Coverity).
---
dlls/user32/nonclient.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/nonclient.c b/dlls/user32/nonclient.c index 5ca0a8d..82a571d 100644 --- a/dlls/user32/nonclient.c +++ b/dlls/user32/nonclient.c @@ -1470,14 +1470,12 @@ LRESULT NC_HandleNCRButtonDown( HWND hwnd, WPARAM wParam, LPARAM lParam ) { MSG msg; INT hittest = wParam; - HMENU hSysMenu = GetSystemMenu(hwnd, FALSE);
switch (hittest) { case HTCAPTION: case HTSYSMENU: - hSysMenu = GetSystemMenu(hwnd, FALSE); - if (!hSysMenu) break; + if (!GetSystemMenu( hwnd, FALSE )) break;
SetCapture( hwnd ); for (;;)