Prevent segfault if no theme is set.
This commit is contained in:
parent
347b7bbd51
commit
a3b58e9d30
|
@ -215,7 +215,8 @@ HRESULT MSSTYLES_SetActiveTheme(PTHEME_FILE tf)
|
|||
if(tfActiveTheme)
|
||||
MSSTYLES_CloseThemeFile(tfActiveTheme);
|
||||
tfActiveTheme = tf;
|
||||
tfActiveTheme->dwRefCount++;
|
||||
if (tfActiveTheme)
|
||||
tfActiveTheme->dwRefCount++;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue