From ba7b59ca12e0fe442f0816d81bd9ccfa992f4f2b Mon Sep 17 00:00:00 2001 From: Vladimir Vukicevic Date: Wed, 1 Oct 2008 02:03:32 -0400 Subject: [PATCH] Fix crash with transparent windows caused by bug 418454 r=robarnold --- widget/src/windows/nsWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/widget/src/windows/nsWindow.cpp b/widget/src/windows/nsWindow.cpp index 9f2f085a270..9bfee0e4ddf 100644 --- a/widget/src/windows/nsWindow.cpp +++ b/widget/src/windows/nsWindow.cpp @@ -5865,6 +5865,8 @@ PRBool nsWindow::OnPaint(HDC aDC) #ifdef MOZ_XUL nsRefPtr targetSurface; if (eTransparencyTransparent == mTransparencyMode) { + if (mTransparentSurface == nsnull) + SetupTranslucentWindowMemoryBitmap(mTransparencyMode); targetSurface = mTransparentSurface; } else { targetSurface = new gfxWindowsSurface(hDC);