mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
user32: Remove duplicated call to GetSystemMenu (Coverity).
This commit is contained in:
parent
3c13f991e4
commit
626d0b75ba
@ -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 (;;)
|
||||
|
Loading…
Reference in New Issue
Block a user