From 61df0dc23c80b5b37459a453fed8c589fec5635b Mon Sep 17 00:00:00 2001 From: "hewitt%netscape.com" Date: Fri, 4 Jan 2002 01:04:13 +0000 Subject: [PATCH] 115757 - null check for win2k, r=bryner, sr=hyatt --- gfx/src/windows/nsNativeThemeWin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/src/windows/nsNativeThemeWin.cpp b/gfx/src/windows/nsNativeThemeWin.cpp index 3c1742d0cf02..f7d4bb8c1a08 100644 --- a/gfx/src/windows/nsNativeThemeWin.cpp +++ b/gfx/src/windows/nsNativeThemeWin.cpp @@ -169,6 +169,9 @@ static void GetNativeRect(const nsRect& aSrc, RECT& aDst) HANDLE nsNativeThemeWin::GetTheme(PRUint8 aWidgetType) { + if (!mThemeDLL) + return NULL; + switch (aWidgetType) { case NS_THEME_BUTTON: case NS_THEME_RADIO: