From 639568276edc5bf8975da883dd74fd1addde9dbe Mon Sep 17 00:00:00 2001 From: Juergen Schmied Date: Tue, 9 Feb 1999 14:17:35 +0000 Subject: [PATCH] Wrong access on server handle was demanded (GENERIC_READ instead of GENERIC_WRITE). --- files/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/file.c b/files/file.c index 72b3df4c95b..25c8113fafa 100644 --- a/files/file.c +++ b/files/file.c @@ -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 ); -- 2.11.4.GIT