Author: ekohl Date: Sat Nov 28 21:11:11 2015 New Revision: 70192
URL: http://svn.reactos.org/svn/reactos?rev=70192&view=rev Log: [MSGINA] Fix exceptions while processing messages when the "Welcome to ReactOS" dialog is created.
Modified: trunk/reactos/dll/win32/msgina/gui.c
Modified: trunk/reactos/dll/win32/msgina/gui.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/gui.c?rev=... ============================================================================== --- trunk/reactos/dll/win32/msgina/gui.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/msgina/gui.c [iso-8859-1] Sat Nov 28 21:11:11 2015 @@ -210,7 +210,10 @@ { case WM_INITDIALOG: { + pgContext = (PGINA_CONTEXT)lParam; pgContext->hBitmap = LoadImage(hDllInstance, MAKEINTRESOURCE(IDI_ROSLOGO), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); + SetWindowLongPtr(hwndDlg, GWL_USERDATA, (LONG_PTR)pgContext); + return TRUE; } case WM_PAINT: { @@ -245,7 +248,7 @@ MAKEINTRESOURCEW(IDD_NOTICE_DLG), GetDesktopWindow(), EmptyWindowProc, - (LPARAM)NULL); + (LPARAM)pgContext); }
/* Get the text contained in a textbox. Allocates memory in pText