Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
c47c74e5
Commit
c47c74e5
authored
Jan 23, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Don't initialize Information of passed OVERLAPPED struct in ReadFile.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d5cd34c7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
file.c
dlls/kernel32/file.c
+1
-1
pipe.c
dlls/kernel32/tests/pipe.c
+0
-2
No files found.
dlls/kernel32/file.c
View file @
c47c74e5
...
@@ -442,8 +442,8 @@ BOOL WINAPI ReadFile( HANDLE hFile, LPVOID buffer, DWORD bytesToRead,
...
@@ -442,8 +442,8 @@ BOOL WINAPI ReadFile( HANDLE hFile, LPVOID buffer, DWORD bytesToRead,
io_status
=
(
PIO_STATUS_BLOCK
)
overlapped
;
io_status
=
(
PIO_STATUS_BLOCK
)
overlapped
;
if
(((
ULONG_PTR
)
hEvent
&
1
)
==
0
)
cvalue
=
overlapped
;
if
(((
ULONG_PTR
)
hEvent
&
1
)
==
0
)
cvalue
=
overlapped
;
}
}
else
io_status
->
Information
=
0
;
io_status
->
u
.
Status
=
STATUS_PENDING
;
io_status
->
u
.
Status
=
STATUS_PENDING
;
io_status
->
Information
=
0
;
status
=
NtReadFile
(
hFile
,
hEvent
,
NULL
,
cvalue
,
io_status
,
buffer
,
bytesToRead
,
poffset
,
NULL
);
status
=
NtReadFile
(
hFile
,
hEvent
,
NULL
,
cvalue
,
io_status
,
buffer
,
bytesToRead
,
poffset
,
NULL
);
...
...
dlls/kernel32/tests/pipe.c
View file @
c47c74e5
...
@@ -755,7 +755,6 @@ static void test_ReadFile(void)
...
@@ -755,7 +755,6 @@ static void test_ReadFile(void)
ok
(
!
res
&&
GetLastError
()
==
ERROR_PIPE_NOT_CONNECTED
,
"ReadFile returned %x(%u)
\n
"
,
res
,
GetLastError
());
ok
(
!
res
&&
GetLastError
()
==
ERROR_PIPE_NOT_CONNECTED
,
"ReadFile returned %x(%u)
\n
"
,
res
,
GetLastError
());
ok
(
size
==
0
,
"size = %u
\n
"
,
size
);
ok
(
size
==
0
,
"size = %u
\n
"
,
size
);
ok
(
overlapped
.
Internal
==
STATUS_PENDING
,
"Internal = %lx
\n
"
,
overlapped
.
Internal
);
ok
(
overlapped
.
Internal
==
STATUS_PENDING
,
"Internal = %lx
\n
"
,
overlapped
.
Internal
);
todo_wine
ok
(
overlapped
.
InternalHigh
==
0xdeadbeef
,
"InternalHigh = %lx
\n
"
,
overlapped
.
InternalHigh
);
ok
(
overlapped
.
InternalHigh
==
0xdeadbeef
,
"InternalHigh = %lx
\n
"
,
overlapped
.
InternalHigh
);
CloseHandle
(
server
);
CloseHandle
(
server
);
...
@@ -2628,7 +2627,6 @@ static void test_readfileex_pending(void)
...
@@ -2628,7 +2627,6 @@ static void test_readfileex_pending(void)
ok
(
GetLastError
()
==
ERROR_IO_PENDING
,
"expected ERROR_IO_PENDING, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_IO_PENDING
,
"expected ERROR_IO_PENDING, got %d
\n
"
,
GetLastError
());
ok
(
num_bytes
==
0
,
"bytes %u
\n
"
,
num_bytes
);
ok
(
num_bytes
==
0
,
"bytes %u
\n
"
,
num_bytes
);
ok
((
NTSTATUS
)
overlapped
.
Internal
==
STATUS_PENDING
,
"expected STATUS_PENDING, got %#lx
\n
"
,
overlapped
.
Internal
);
ok
((
NTSTATUS
)
overlapped
.
Internal
==
STATUS_PENDING
,
"expected STATUS_PENDING, got %#lx
\n
"
,
overlapped
.
Internal
);
todo_wine
ok
(
overlapped
.
InternalHigh
==
-
1
,
"expected -1, got %lu
\n
"
,
overlapped
.
InternalHigh
);
ok
(
overlapped
.
InternalHigh
==
-
1
,
"expected -1, got %lu
\n
"
,
overlapped
.
InternalHigh
);
wait
=
WaitForSingleObject
(
event
,
100
);
wait
=
WaitForSingleObject
(
event
,
100
);
...
...
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