user32: Remove duplicated call to GetSystemMenu (Coverity).

This commit is contained in:
Marcus Meissner 2012-02-18 15:33:56 +01:00 committed by Alexandre Julliard
parent 3c13f991e4
commit 626d0b75ba
1 changed files with 1 additions and 3 deletions

View File

@ -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 (;;)