mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 489045 - nsXULWindow::GetParentNativeWindow crashes if GetParentWidget returns null. r=roc
This commit is contained in:
parent
1db2aff813
commit
635704a6bc
@ -742,8 +742,10 @@ NS_IMETHODIMP nsXULWindow::GetParentNativeWindow(nativeWindow* aParentNativeWind
|
||||
nsCOMPtr<nsIWidget> parentWidget;
|
||||
NS_ENSURE_SUCCESS(GetParentWidget(getter_AddRefs(parentWidget)), NS_ERROR_FAILURE);
|
||||
|
||||
*aParentNativeWindow = parentWidget->GetNativeData(NS_NATIVE_WIDGET);
|
||||
|
||||
if (parentWidget) {
|
||||
*aParentNativeWindow = parentWidget->GetNativeData(NS_NATIVE_WIDGET);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user