Commit a3b58e9d authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

Prevent segfault if no theme is set.

parent 347b7bbd
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment