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>
(cherry picked from commit adda27cdb8
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
9c0dfffe3f
commit
c7ae2d5d22
|
@ -671,8 +671,11 @@ static LRESULT CALLBACK explorer_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, L
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
{
|
{
|
||||||
case WM_DESTROY:
|
case WM_DESTROY:
|
||||||
IShellWindows_Revoke(info->sw, info->sw_cookie);
|
if(info->sw)
|
||||||
IShellWindows_Release(info->sw);
|
{
|
||||||
|
IShellWindows_Revoke(info->sw, info->sw_cookie);
|
||||||
|
IShellWindows_Release(info->sw);
|
||||||
|
}
|
||||||
|
|
||||||
IExplorerBrowser_Unadvise(browser,info->advise_cookie);
|
IExplorerBrowser_Unadvise(browser,info->advise_cookie);
|
||||||
IExplorerBrowser_Destroy(browser);
|
IExplorerBrowser_Destroy(browser);
|
||||||
|
|
Loading…
Reference in New Issue