Commit adda27cd authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

explorer: Only try to destroy the IShellWindows object if it exists.

parent 045f50a7
......@@ -671,8 +671,11 @@ static LRESULT CALLBACK explorer_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, L
switch(uMsg)
{
case WM_DESTROY:
IShellWindows_Revoke(info->sw, info->sw_cookie);
IShellWindows_Release(info->sw);
if(info->sw)
{
IShellWindows_Revoke(info->sw, info->sw_cookie);
IShellWindows_Release(info->sw);
}
IExplorerBrowser_Unadvise(browser,info->advise_cookie);
IExplorerBrowser_Destroy(browser);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment