mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:21:51 +00:00
[SHELL32] Only hide a window when there is a window to hide
This commit is contained in:
parent
d0ba8fd4a3
commit
96e3c7bcc5
1 changed files with 2 additions and 1 deletions
|
@ -645,7 +645,8 @@ HRESULT CMenuDeskBar::_CloseBar()
|
||||||
if (FAILED_UNEXPECTEDLY(hr))
|
if (FAILED_UNEXPECTEDLY(hr))
|
||||||
return 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);
|
return UIActivateIO(FALSE, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue