uxtheme Prevent segfault if no theme is set
Vitaliy Margolen
wine-patch at kievinfo.com
Sat Jan 24 12:28:05 CST 2004
Vitaliy Margolen
changelog:
- Prevent segfault if no theme is set
-------------- next part --------------
Index: dlls/uxtheme/msstyles.c
===================================================================
RCS file: /home/wine/wine/dlls/uxtheme/msstyles.c,v
retrieving revision 1.4
diff -u -r1.4 msstyles.c
--- dlls/uxtheme/msstyles.c 23 Jan 2004 04:34:02 -0000 1.4
+++ dlls/uxtheme/msstyles.c 24 Jan 2004 18:23:58 -0000
@@ -215,7 +215,8 @@
if(tfActiveTheme)
MSSTYLES_CloseThemeFile(tfActiveTheme);
tfActiveTheme = tf;
- tfActiveTheme->dwRefCount++;
+ if (tfActiveTheme)
+ tfActiveTheme->dwRefCount++;
return S_OK;
}
More information about the wine-patches
mailing list