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

This commit is contained in:
Eric Pouech 2008-03-23 09:22:51 +01:00 committed by Alexandre Julliard
parent 91d57af637
commit 704de609e6
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{