mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[SHELL32] Only hide a window when there is a window to hide
This commit is contained in:
@@ -645,7 +645,8 @@ HRESULT CMenuDeskBar::_CloseBar()
|
||||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
return hr;
|
||||
|
||||
SetWindowPos(NULL, 0, 0, 0, 0, SWP_HIDEWINDOW | SWP_NOACTIVATE | SWP_NOMOVE);
|
||||
if (m_hWnd)
|
||||
SetWindowPos(NULL, 0, 0, 0, 0, SWP_HIDEWINDOW | SWP_NOACTIVATE | SWP_NOMOVE);
|
||||
|
||||
return UIActivateIO(FALSE, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user