winex11.drv: Indirection level fix

Andrew Talbot andrew.talbot at talbotville.com
Fri Mar 21 10:30:01 CDT 2008


It seems that either "packet" should not be a WTPACKET **, or the first
parameter to the memcpy() should be *packet. Unable to find this function being
used anywhere, I guessed the former.

-- Andy.
---
Changelog:
    winex11.drv: Indirection level fix.

diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c
index 99cb6f4..47376c0 100644
--- a/dlls/winex11.drv/wintab.c
+++ b/dlls/winex11.drv/wintab.c
@@ -982,7 +982,7 @@ int X11DRV_AttachEventQueueToTablet(HWND hOwner)
 /***********************************************************************
  *		X11DRV_GetCurrentPacket (X11DRV.@)
  */
-int X11DRV_GetCurrentPacket(LPWTPACKET *packet)
+int X11DRV_GetCurrentPacket(LPWTPACKET packet)
 {
     memcpy(packet,&gMsgPacket,sizeof(WTPACKET));
     return 1;
@@ -1435,7 +1435,7 @@ int X11DRV_AttachEventQueueToTablet(HWND hOwner)
 /***********************************************************************
  *		GetCurrentPacket (X11DRV.@)
  */
-int X11DRV_GetCurrentPacket(LPWTPACKET *packet)
+int X11DRV_GetCurrentPacket(LPWTPACKET packet)
 {
     return 0;
 }



More information about the wine-patches mailing list