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 ) ) )
{