diff --git a/widget/src/windows/nsWindow.cpp b/widget/src/windows/nsWindow.cpp index 97340406205..dbd158425c6 100644 --- a/widget/src/windows/nsWindow.cpp +++ b/widget/src/windows/nsWindow.cpp @@ -1518,8 +1518,8 @@ nsWindow::StandardWindowCreate(nsIWidget *aParent, NULL); } - VERIFY(mWnd); - + if (!mWnd) + return NS_ERROR_FAILURE; /*mNativeDragTarget = new nsNativeDragTarget(this); if (NULL != mNativeDragTarget) {