wordpad: Don't try to use information that hasn't been initialized yet.
This commit is contained in:
parent
91d57af637
commit
704de609e6
|
@ -350,7 +350,7 @@ static void update_font_list(void)
|
||||||
fmt.cbSize = sizeof(fmt);
|
fmt.cbSize = sizeof(fmt);
|
||||||
|
|
||||||
SendMessageW(hEditorWnd, EM_GETCHARFORMAT, SCF_SELECTION, (LPARAM)&fmt);
|
SendMessageW(hEditorWnd, EM_GETCHARFORMAT, SCF_SELECTION, (LPARAM)&fmt);
|
||||||
SendMessageW(hFontListEdit, WM_GETTEXT, MAX_PATH, (LPARAM)fontName);
|
if (!SendMessageW(hFontListEdit, WM_GETTEXT, MAX_PATH, (LPARAM)fontName)) return;
|
||||||
|
|
||||||
if(lstrcmpW(fontName, fmt.szFaceName))
|
if(lstrcmpW(fontName, fmt.szFaceName))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue