mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 18:35:39 +00:00
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);
|
||||
|
||||
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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue