Qian Hong : atl100: Fixed register class types in AtlAxWinInit.

Alexandre Julliard julliard at winehq.org
Mon Mar 25 14:19:39 CDT 2013


Module: wine
Branch: master
Commit: ed62fcb70085c8228e2ad16953dc66a16bde73d6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ed62fcb70085c8228e2ad16953dc66a16bde73d6

Author: Qian Hong <qhong at codeweavers.com>
Date:   Fri Mar 15 22:14:01 2013 +0800

atl100: Fixed register class types in AtlAxWinInit.

---

 dlls/atl100/atl_ax.c    |    2 +-
 dlls/atl100/tests/atl.c |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/atl100/atl_ax.c b/dlls/atl100/atl_ax.c
index cdefbea..319b3e8 100644
--- a/dlls/atl100/atl_ax.c
+++ b/dlls/atl100/atl_ax.c
@@ -95,7 +95,7 @@ BOOL WINAPI AtlAxWinInit(void)
         return FALSE;
 
     wcex.cbSize        = sizeof(wcex);
-    wcex.style         = 0;
+    wcex.style         = CS_GLOBALCLASS | CS_DBLCLKS;
     wcex.cbClsExtra    = 0;
     wcex.cbWndExtra    = 0;
     wcex.hInstance     = GetModuleHandleW( NULL );
diff --git a/dlls/atl100/tests/atl.c b/dlls/atl100/tests/atl.c
index 76fa9c4..1304ac1 100644
--- a/dlls/atl100/tests/atl.c
+++ b/dlls/atl100/tests/atl.c
@@ -583,11 +583,13 @@ static void test_ax_win(void)
     wcex.cbSize = sizeof(wcex);
     ret = GetClassInfoExW(hinstance, AtlAxWin100, &wcex);
     ok(ret, "AtlAxWin100 has not registered\n");
+    ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style);
 
     memset(&wcex, 0, sizeof(wcex));
     wcex.cbSize = sizeof(wcex);
     ret = GetClassInfoExW(hinstance, AtlAxWinLic100, &wcex);
     ok(ret, "AtlAxWinLic100 has not registered\n");
+    ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style);
 }
 
 START_TEST(atl)




More information about the wine-cvs mailing list