[ros-dev] [ros-diffs] [tkreuzer] 56478: [WIN32K] A pointer is not a handle.

James Tabor jimtabor.rosdev at gmail.com
Thu May 3 05:47:27 UTC 2012


This is wrong, please read co_IntGetPeekMessage,,,

@@ -1727,8 +1727,8 @@
  3: handle to the window whose messages are to be retrieved.
  */
       if ( ( !Window || // 1
-            ( Window == HWND_BOTTOM && CurrentMessage->Msg.hwnd ==
NULL ) || // 2
-            ( Window != HWND_BOTTOM && Window->head.h ==
CurrentMessage->Msg.hwnd ) ) && // 3
+            ( Window->head.h == HWND_BOTTOM &&
CurrentMessage->Msg.hwnd == NULL ) || // 2
+            ( Window->head.h != HWND_BOTTOM && Window->head.h ==
CurrentMessage->Msg.hwnd ) ) && // 3
             ( ( ( MsgFilterLow == 0 && MsgFilterHigh == 0 ) &&
CurrentMessage->QS_Flags & QSflags ) ||
               ( MsgFilterLow <= CurrentMessage->Msg.message &&
MsgFilterHigh >= CurrentMessage->Msg.message ) ) )
         {
@@ -1790,8 +1790,8 @@
  3: handle to the window whose messages are to be retrieved.
  */
       if ( ( !Window || // 1
-            ( Window == HWND_BOTTOM && CurrentMessage->Msg.hwnd ==
NULL ) || // 2
-            ( Window != HWND_BOTTOM && Window->head.h ==
CurrentMessage->Msg.hwnd ) ) && // 3
+            ( Window->head.h == HWND_BOTTOM &&
CurrentMessage->Msg.hwnd == NULL ) || // 2
+            ( Window->head.h != HWND_BOTTOM && Window->head.h ==
CurrentMessage->Msg.hwnd ) ) && // 3
             ( ( ( MsgFilterLow == 0 && MsgFilterHigh == 0 ) &&
CurrentMessage->QS_Flags & QSflags ) ||
               ( MsgFilterLow <= CurrentMessage->Msg.message &&
MsgFilterHigh >= CurrentMessage->Msg.message ) ) )
       {



More information about the Ros-dev mailing list