explorer: Only try to destroy the IShellWindows object if it exists.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52494 Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
045f50a78a
commit
adda27cdb8
|
@ -671,8 +671,11 @@ static LRESULT CALLBACK explorer_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, L
|
|||
switch(uMsg)
|
||||
{
|
||||
case WM_DESTROY:
|
||||
if(info->sw)
|
||||
{
|
||||
IShellWindows_Revoke(info->sw, info->sw_cookie);
|
||||
IShellWindows_Release(info->sw);
|
||||
}
|
||||
|
||||
IExplorerBrowser_Unadvise(browser,info->advise_cookie);
|
||||
IExplorerBrowser_Destroy(browser);
|
||||
|
|
Loading…
Reference in New Issue