Wrong access on server handle was demanded (GENERIC_READ instead of

GENERIC_WRITE).
This commit is contained in:
Juergen Schmied 1999-02-09 14:17:35 +00:00 committed by Alexandre Julliard
parent 879a6fe3a7
commit 639568276e

View File

@ -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 );