[Fwd: file fixes]
eric pouech
eric.pouech at wanadoo.fr
Sat Oct 6 16:05:24 CDT 2001
resending...
-------- Original Message --------
Subject: file fixes
Date: Sat, 06 Oct 2001 11:55:49 +0200
From: eric pouech <eric.pouech at wanadoo.fr>
To: Wine Patches <wine-patches at winehq.com>
this patch fixes two issues
- (I assume) one evilish copy&paste (GENERIC_WRITE instead of
GENERIC_READ)
- when getting the type of a handle, it has to be done even if no fd is
attached to it (console for example)
A+
--
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle
-------------- next part --------------
Index: files/file.c
===================================================================
RCS file: /usr/share/cvs/cvsroot/wine/wine/files/file.c,v
retrieving revision 1.112
diff -u -r1.112 file.c
--- files/file.c 2001/10/04 16:18:15 1.112
+++ files/file.c 2001/10/06 09:53:05
@@ -219,8 +219,8 @@
if (!(ret = SERVER_CALL_ERR()))
{
fd = req->fd;
- if (type) *type = req->type;
}
+ if (type) *type = req->type;
}
SERVER_END_REQ;
if (ret) return -1;
@@ -1378,7 +1378,7 @@
return FALSE;
}
- fd = FILE_GetUnixHandle( hFile, GENERIC_WRITE );
+ fd = FILE_GetUnixHandle( hFile, GENERIC_READ );
if(fd<0)
{
TRACE("Couldn't get FD\n");
More information about the wine-patches
mailing list