Module: wine Branch: master Commit: 704de609e63944cd88a62fcf0a3aecfa51073b06 URL: http://source.winehq.org/git/wine.git/?a=commit;h=704de609e63944cd88a62fcf0a...
Author: Eric Pouech eric.pouech@orange.fr Date: Sun Mar 23 09:22:51 2008 +0100
wordpad: Don't try to use information that hasn't been initialized yet.
---
programs/wordpad/wordpad.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c index 7ef5548..2df6ea7 100644 --- a/programs/wordpad/wordpad.c +++ b/programs/wordpad/wordpad.c @@ -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)) {