Commit 626d0b75 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

user32: Remove duplicated call to GetSystemMenu (Coverity).

parent 3c13f991
...@@ -1470,14 +1470,12 @@ LRESULT NC_HandleNCRButtonDown( HWND hwnd, WPARAM wParam, LPARAM lParam ) ...@@ -1470,14 +1470,12 @@ LRESULT NC_HandleNCRButtonDown( HWND hwnd, WPARAM wParam, LPARAM lParam )
{ {
MSG msg; MSG msg;
INT hittest = wParam; INT hittest = wParam;
HMENU hSysMenu = GetSystemMenu(hwnd, FALSE);
switch (hittest) switch (hittest)
{ {
case HTCAPTION: case HTCAPTION:
case HTSYSMENU: case HTSYSMENU:
hSysMenu = GetSystemMenu(hwnd, FALSE); if (!GetSystemMenu( hwnd, FALSE )) break;
if (!hSysMenu) break;
SetCapture( hwnd ); SetCapture( hwnd );
for (;;) for (;;)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment