Huw Davies : kernel32: Swap incorrect use of buffers.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jul 12 08:32:27 CDT 2007


Module: wine
Branch: master
Commit: f2894533d561bb1c42872e54eef9599251e450d7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f2894533d561bb1c42872e54eef9599251e450d7

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Jul 11 12:34:48 2007 +0100

kernel32: Swap incorrect use of buffers.

---

 dlls/kernel32/sync.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/kernel32/sync.c b/dlls/kernel32/sync.c
index 07bd9b0..dd673dd 100644
--- a/dlls/kernel32/sync.c
+++ b/dlls/kernel32/sync.c
@@ -1376,25 +1376,25 @@ BOOL WINAPI DisconnectNamedPipe(HANDLE hPipe)
  *  should be done as a single operation in the wineserver or kernel
  */
 BOOL WINAPI TransactNamedPipe(
-    HANDLE handle, LPVOID lpInput, DWORD dwInputSize, LPVOID lpOutput,
-    DWORD dwOutputSize, LPDWORD lpBytesRead, LPOVERLAPPED lpOverlapped)
+    HANDLE handle, LPVOID write_buf, DWORD write_size, LPVOID read_buf,
+    DWORD read_size, LPDWORD bytes_read, LPOVERLAPPED overlapped)
 {
     BOOL r;
     DWORD count;
 
     TRACE("%p %p %d %p %d %p %p\n",
-          handle, lpInput, dwInputSize, lpOutput,
-          dwOutputSize, lpBytesRead, lpOverlapped);
+          handle, write_buf, write_size, read_buf,
+          read_size, bytes_read, overlapped);
 
-    if (lpOverlapped)
+    if (overlapped)
     {
         FIXME("Doesn't support overlapped operation as yet\n");
         return FALSE;
     }
 
-    r = WriteFile(handle, lpOutput, dwOutputSize, &count, NULL);
+    r = WriteFile(handle, write_buf, write_size, &count, NULL);
     if (r)
-        r = ReadFile(handle, lpInput, dwInputSize, lpBytesRead, NULL);
+        r = ReadFile(handle, read_buf, read_size, bytes_read, NULL);
 
     return r;
 }




More information about the wine-cvs mailing list