Commit 704de609 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

wordpad: Don't try to use information that hasn't been initialized yet.

parent 91d57af6
......@@ -350,7 +350,7 @@ static void update_font_list(void)
fmt.cbSize = sizeof(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))
{
......
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