Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c73316db
Commit
c73316db
authored
Oct 08, 2001
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 08, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed copy&paste bug (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)
parent
bd3be7a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
file.c
files/file.c
+2
-2
file.c
server/file.c
+1
-0
No files found.
files/file.c
View file @
c73316db
...
...
@@ -219,8 +219,8 @@ int FILE_GetUnixHandleType( HANDLE handle, DWORD access, DWORD *type )
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 @@ static BOOL FILE_ReadFileEx(HANDLE hFile, LPVOID buffer, DWORD bytesToRead,
return
FALSE
;
}
fd
=
FILE_GetUnixHandle
(
hFile
,
GENERIC_
WRITE
);
fd
=
FILE_GetUnixHandle
(
hFile
,
GENERIC_
READ
);
if
(
fd
<
0
)
{
TRACE
(
"Couldn't get FD
\n
"
);
...
...
server/file.c
View file @
c73316db
...
...
@@ -495,6 +495,7 @@ DECL_HANDLER(get_handle_fd)
struct
object
*
obj
;
req
->
fd
=
-
1
;
req
->
type
=
FD_TYPE_INVALID
;
if
((
obj
=
get_handle_obj
(
current
->
process
,
req
->
handle
,
req
->
access
,
NULL
)))
{
int
fd
=
get_handle_fd
(
current
->
process
,
req
->
handle
,
req
->
access
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment