From dbdbd2208d67758d078154d1f149d12343e9ce7f Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Mon, 11 Oct 2004 16:13:48 +0000 Subject: [PATCH] Bug 257746 nsWindow::StandardWindowCreate should return failure when it can't create a window patch by Chris Thomas (CTho) r=ere sr=roc --- widget/src/windows/nsWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {