user32: In a DLGTEMPLATEEX resource dialog version goes before signature.
Dmitry Timoshkov
dmitry at codeweavers.com
Tue Feb 9 05:06:21 CST 2010
This is just a cosmetic patch, comctl32 property sheet dialog paser
names and treats the DLGTEMPLATEEX members correctly.
---
dlls/user32/dialog.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/dialog.c b/dlls/user32/dialog.c
index 13aebe0..d95746b 100644
--- a/dlls/user32/dialog.c
+++ b/dlls/user32/dialog.c
@@ -349,10 +349,10 @@ static LPCSTR DIALOG_ParseTemplate32( LPCSTR template, DLG_TEMPLATE * result )
WORD signature;
WORD dlgver;
- signature = GET_WORD(p); p++;
dlgver = GET_WORD(p); p++;
+ signature = GET_WORD(p); p++;
- if (signature == 1 && dlgver == 0xffff) /* DIALOGEX resource */
+ if (dlgver == 1 && signature == 0xffff) /* DIALOGEX resource */
{
result->dialogEx = TRUE;
result->helpId = GET_DWORD(p); p += 2;
--
1.6.6
More information about the wine-patches
mailing list