Nikolay Sivov : comctl32/edit: Fix class style mask.
Alexandre Julliard
julliard at winehq.org
Mon Feb 5 16:48:26 CST 2018
Module: wine
Branch: master
Commit: 73cd9809f3fd979f8c3a5fc4fb67af380b85fc06
URL: https://source.winehq.org/git/wine.git/?a=commit;h=73cd9809f3fd979f8c3a5fc4fb67af380b85fc06
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Feb 5 00:30:10 2018 +0300
comctl32/edit: Fix class style mask.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/edit.c | 2 +-
dlls/comctl32/tests/misc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/edit.c b/dlls/comctl32/edit.c
index a01b75b..9f065f6 100644
--- a/dlls/comctl32/edit.c
+++ b/dlls/comctl32/edit.c
@@ -5007,7 +5007,7 @@ void EDIT_Register(void)
WNDCLASSW wndClass;
memset(&wndClass, 0, sizeof(wndClass));
- wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS;
+ wndClass.style = CS_PARENTDC | CS_GLOBALCLASS | CS_DBLCLKS;
wndClass.lpfnWndProc = EDIT_WindowProc;
wndClass.cbClsExtra = 0;
#ifdef __i386__
diff --git a/dlls/comctl32/tests/misc.c b/dlls/comctl32/tests/misc.c
index 46bb431..bef92b8 100644
--- a/dlls/comctl32/tests/misc.c
+++ b/dlls/comctl32/tests/misc.c
@@ -345,7 +345,7 @@ static void check_class( const char *name, int must_exist, UINT style, UINT igno
if (GetClassInfoA( 0, name, &wc ))
{
-todo_wine
+todo_wine_if(strcmp(name, "Edit"))
ok( !(~wc.style & style & ~ignore), "System class %s is missing bits %x (%08x/%08x)\n",
name, ~wc.style & style, wc.style, style );
ok( !(wc.style & ~style), "System class %s has extra bits %x (%08x/%08x)\n",
More information about the wine-cvs
mailing list