Fix exceptions while processing messages when the "Welcome to ReactOS" dialog is created.

svn path=/trunk/; revision=70192
This commit is contained in:
Eric Kohl 2015-11-28 21:11:11 +00:00
parent 3d0a8a174a
commit 9179de2560

View file

@ -210,7 +210,10 @@ EmptyWindowProc(
{
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 @@ GUIDisplaySASNotice(
MAKEINTRESOURCEW(IDD_NOTICE_DLG),
GetDesktopWindow(),
EmptyWindowProc,
(LPARAM)NULL);
(LPARAM)pgContext);
}
/* Get the text contained in a textbox. Allocates memory in pText