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 )
{
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 (;;)
......
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