[ros-bugs] [Bug 4646] Wrong PostMessage and SendNotifyMessage behaviour

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Sat Nov 28 03:34:26 CET 2009


http://www.reactos.org/bugzilla/show_bug.cgi?id=4646





--- Comment #6 from jimtabor <james.tabor at reactos.org>  2009-11-28 03:34:26 CET ---
With UserSendNotifyMessage:

In this condition, we need CopyMsgToKernelMem if pti queue does not match the
window queue, then call UserPostMessage. But in this case again, MsqPostMessage
can be used instead.

      if(Window->MessageQueue != pti->MessageQueue)
      { // Send message w/o waiting for it.
         Result = UserPostMessage(hWnd, Msg, wParam, lParam);
      }
      else
      { // Handle message and callback.

In the case for callback, there is no need to call CopyMsgToKernelMem, so this
part of the patch is correct.

On the callback itself;
co_IntSendMessageTimeoutSingle still calls MsgMemorySize to setup the callback
for co_IntCallWindowProc. I need to look into this too.


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the Ros-bugs mailing list