Commit 63956827 authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard

Wrong access on server handle was demanded (GENERIC_READ instead of

GENERIC_WRITE).
parent 879a6fe3
......@@ -1172,7 +1172,7 @@ BOOL32 WINAPI WriteFile( HANDLE32 hFile, LPCVOID buffer, DWORD bytesToWrite,
if (!bytesToWrite) return TRUE;
if ((req.handle = HANDLE_GetServerHandle( PROCESS_Current(), hFile,
K32OBJ_UNKNOWN, GENERIC_READ )) == -1)
K32OBJ_UNKNOWN, GENERIC_WRITE )) == -1)
return FALSE;
CLIENT_SendRequest( REQ_GET_WRITE_FD, -1, 1, &req, sizeof(req) );
CLIENT_WaitReply( NULL, &unix_handle, 0 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment