[ros-diffs] [jimtabor] 44332: - [Win32k] Use PostMessage to send broadcast messages to the queues. co_IntPostOrSendMessage does not support it.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Mon Nov 30 20:21:27 CET 2009


Author: jimtabor
Date: Mon Nov 30 20:21:27 2009
New Revision: 44332

URL: http://svn.reactos.org/svn/reactos?rev=44332&view=rev
Log:
- [Win32k] Use PostMessage to send broadcast messages to the queues. co_IntPostOrSendMessage does not support it.

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/class.c
    trunk/reactos/subsystems/win32/win32k/ntuser/focus.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/class.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/class.c?rev=44332&r1=44331&r2=44332&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/class.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/class.c [iso-8859-1] Mon Nov 30 20:21:27 2009
@@ -628,7 +628,7 @@
         {
             ASSERT(Class->pclsBase == Class);
 
-            DPRINT("IntDereferenceClass 0x%x\n", Class);
+            DPRINT1("IntDereferenceClass 0x%x\n", Class);
             /* check if there are clones of the class on other desktops,
                link the first clone in if possible. If there are no clones
                then leave the class on the desktop heap. It will get moved
@@ -666,7 +666,7 @@
         }
         else
         {
-            DPRINT("IntDereferenceClass1 0x%x\n", Class);
+            DPRINT1("IntDereferenceClass1 0x%x\n", Class);
 
             /* locate the cloned class and unlink it */
             PrevLink = &BaseClass->pclsClone;
@@ -1154,7 +1154,7 @@
                              &pi->pclsPrivateList,
                              Link);
         if (Class != NULL)
-        {
+        {  DPRINT1("Step 1: 0x%x\n",Class );
             goto FoundClass;
         }
 
@@ -1165,7 +1165,7 @@
                              &pi->pclsPublicList,
                              Link);
         if (Class != NULL)
-        {
+        { DPRINT1("Step 2: 0x%x 0x%x\n",Class, Class->hModule);
             goto FoundClass;
         }
 
@@ -1175,7 +1175,7 @@
                              &pi->pclsPrivateList,
                              Link);
         if (Class != NULL)
-        {
+        { DPRINT1("Step 3: 0x%x\n",Class );
             goto FoundClass;
         }
 
@@ -1188,7 +1188,7 @@
         {
             SetLastWin32Error(ERROR_CLASS_DOES_NOT_EXIST);
             return (RTL_ATOM)0;
-        }
+        }else{DPRINT1("Step 4: 0x%x\n",Class );}
 
 FoundClass:
         *BaseClass = Class;
@@ -1294,7 +1294,7 @@
 
     pi = GetW32ProcessInfo();
 
-    DPRINT("UserUnregisterClass(%wZ, 0x%x)\n", ClassName, hInstance);
+    DPRINT1("UserUnregisterClass(%wZ, 0x%x)\n", ClassName, hInstance);
 
     /* NOTE: Accessing the buffer in ClassName may raise an exception! */
     ClassAtom = IntGetClassAtom(ClassName,
@@ -1326,8 +1326,8 @@
 
     if (NT_SUCCESS(IntDeregisterClassAtom(Class->atomClassName)))
     {
-        DPRINT("Class 0x%x\n", Class);
-        DPRINT("UserUnregisterClass: Good Exit!\n");
+        DPRINT1("Class 0x%x\n", Class);
+        DPRINT1("UserUnregisterClass: Good Exit!\n");
         /* finally free the resources */
         IntDestroyClass(Class);
         return TRUE;
@@ -2402,6 +2402,7 @@
 
    if (Ret)
    {
+      DPRINT1("GetClassInfo(%wZ, 0x%x)\n", ClassName, hInstance);
       ClassAtom = IntGetClassAtom( &SafeClassName,
                                     hInstance,
                                     ppi,

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/focus.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/focus.c?rev=44332&r1=44331&r2=44332&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/focus.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/focus.c [iso-8859-1] Mon Nov 30 20:21:27 2009
@@ -77,8 +77,10 @@
       /* Send palette messages */
       if (co_IntPostOrSendMessage(hWnd, WM_QUERYNEWPALETTE, 0, 0))
       {
-         co_IntPostOrSendMessage(HWND_BROADCAST, WM_PALETTEISCHANGING,
-                                 (WPARAM)hWnd, 0);
+         UserPostMessage( HWND_BROADCAST,
+                          WM_PALETTEISCHANGING,
+                         (WPARAM)hWnd,
+                          0);
       }
 
       if (UserGetWindow(hWnd, GW_HWNDPREV) != NULL)




More information about the Ros-diffs mailing list