user32: Don't send the menu clicks if we can't retrieve the item rect.

Huw Davies huw at
Mon Jul 21 08:50:10 CDT 2008

Fixes Valgrind warnings like:
 Syscall param write(buf) points to uninitialised byte(s)
    at  (within /lib/
    by  wine_server_call (server.c:327)
    by  queue_raw_mouse_message (mouse.c:266)
    by  X11DRV_send_mouse_input (mouse.c:331)
    by  X11DRV_SendInput (event.c:1360)
    by  SendInput (input.c:150)
    by  click_menu (menu.c:1723)
    by  test_menu_input_thread (menu.c:1745)
    by  ??? (thread.c:128)
    by  call_thread_func (thread.c:383)
    by  start_thread (thread.c:443)
    by  start_thread (in /lib/tls/i686/cmov/
    by  clone (in /lib/tls/i686/cmov/
 dlls/user32/tests/menu.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: e48ca7d90559f8cd62a2a65ef32ae45f364b3769.diff
Type: text/x-patch
Size: 1073 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list