kernel32: Swap incorrect use of buffers.

This commit is contained in:
Huw Davies 2007-07-11 12:34:48 +01:00 committed by Alexandre Julliard
parent 3f9632ca53
commit f2894533d5
1 changed files with 7 additions and 7 deletions

View File

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