mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1138807 - Treat user cancelling of HTTPHandlerPane as Success. r=jimm
This commit is contained in:
parent
9b1bec56da
commit
ad746928dd
@ -620,9 +620,13 @@ DynSHOpenWithDialog(HWND hwndParent, const OPENASINFO *poainfo)
|
|||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult rv =
|
nsresult rv;
|
||||||
SUCCEEDED(SHOpenWithDialogFn(hwndParent, poainfo)) ? NS_OK :
|
HRESULT hr = SHOpenWithDialogFn(hwndParent, poainfo);
|
||||||
NS_ERROR_FAILURE;
|
if (SUCCEEDED(hr) || (hr == HRESULT_FROM_WIN32(ERROR_CANCELLED))) {
|
||||||
|
rv = NS_OK;
|
||||||
|
} else {
|
||||||
|
rv = NS_ERROR_FAILURE;
|
||||||
|
}
|
||||||
FreeLibrary(shellDLL);
|
FreeLibrary(shellDLL);
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user