From 897f11d33178f1c5b591ba1a516e79ec8834055e Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Fri, 7 May 2010 17:16:41 -0500 Subject: [PATCH] user32: Don't use DLGTEMPLATE's ExStyle when creating dialogs. --- dlls/user32/dialog.c | 1 + dlls/user32/tests/dialog.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/user32/dialog.c b/dlls/user32/dialog.c index 79f5182c788..af241a202e3 100644 --- a/dlls/user32/dialog.c +++ b/dlls/user32/dialog.c @@ -498,6 +498,7 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate, if (!dlgTemplate) return 0; dlgTemplate = DIALOG_ParseTemplate32( dlgTemplate, &template ); + template.exStyle = 0; /* exstyle is ignored */ /* Load menu */ diff --git a/dlls/user32/tests/dialog.c b/dlls/user32/tests/dialog.c index d18ba0e73b1..b5d6271171c 100644 --- a/dlls/user32/tests/dialog.c +++ b/dlls/user32/tests/dialog.c @@ -1061,7 +1061,7 @@ static void test_MessageBoxFontTest(void) 0x01,0x00, /* Version */ 0xff,0xff, /* Extended template marker */ 0x00,0x00,0x00,0x00, /* Context Help ID */ - 0x00,0x00,0x00,0x00, /* Extended style */ + 0x40,0x00,0x00,0x00, /* Extended style (WM_EX_MDICHILD) */ 0xc0,0x00,0xc8,0x80, /* Style (WS_SYSMENU|WS_CAPTION|WS_POPUP|DS_SETFONT|DS_MODALFRAME) */ 0x01,0x00, /* Control count */ 0x00,0x00, /* X */ -- 2.11.4.GIT