Eric Pouech : wordpad: Remove unneeded output messages.
Module: wine Branch: master Commit: 3c878a55724b2bd2553752c9678b99d9297f2c0a URL: https://gitlab.winehq.org/wine/wine/-/commit/3c878a55724b2bd2553752c9678b99d... Author: Eric Pouech <epouech(a)codeweavers.com> Date: Fri Nov 10 18:08:42 2023 +0100 wordpad: Remove unneeded output messages. Signed-off-by: Eric Pouech <epouech(a)codeweavers.com> --- programs/wordpad/wordpad.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c index 042cc04f4ad..b357ef7d6b8 100644 --- a/programs/wordpad/wordpad.c +++ b/programs/wordpad/wordpad.c @@ -2011,12 +2011,7 @@ static LRESULT OnCreate( HWND hWnd ) |ES_WANTRETURN|WS_VSCROLL|ES_NOHIDESEL|WS_HSCROLL, 0, 0, 1000, 100, hWnd, (HMENU)IDC_EDITOR, hInstance, NULL); - if (!hEditorWnd) - { - fprintf(stderr, "Error code %lu\n", GetLastError()); - return -1; - } - assert(hEditorWnd); + if (!hEditorWnd) return -1; setup_richedit_olecallback(hEditorWnd); SetFocus(hEditorWnd);
participants (1)
-
Alexandre Julliard