diff --git a/dlls/user32/nonclient.c b/dlls/user32/nonclient.c index 5ca0a8df97e0bb1036ecf2d187fe5e16c6592f58..82a571dc68b4443673ca6f18c713cd8247ec7d2c 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 (;;)