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
72f3fa9e
Commit
72f3fa9e
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 WriteFile.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
84ae4b93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
file.c
dlls/kernel32/file.c
+1
-1
pipe.c
dlls/kernel32/tests/pipe.c
+8
-0
No files found.
dlls/kernel32/file.c
View file @
72f3fa9e
...
...
@@ -565,8 +565,8 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
piosb
=
(
PIO_STATUS_BLOCK
)
overlapped
;
if
(((
ULONG_PTR
)
hEvent
&
1
)
==
0
)
cvalue
=
overlapped
;
}
else
piosb
->
Information
=
0
;
piosb
->
u
.
Status
=
STATUS_PENDING
;
piosb
->
Information
=
0
;
status
=
NtWriteFile
(
hFile
,
hEvent
,
NULL
,
cvalue
,
piosb
,
buffer
,
bytesToWrite
,
poffset
,
NULL
);
...
...
dlls/kernel32/tests/pipe.c
View file @
72f3fa9e
...
...
@@ -757,6 +757,14 @@ static void test_ReadFile(void)
ok
(
overlapped
.
Internal
==
STATUS_PENDING
,
"Internal = %lx
\n
"
,
overlapped
.
Internal
);
ok
(
overlapped
.
InternalHigh
==
0xdeadbeef
,
"InternalHigh = %lx
\n
"
,
overlapped
.
InternalHigh
);
memset
(
&
overlapped
,
0
,
sizeof
(
overlapped
));
overlapped
.
InternalHigh
=
0xdeadbeef
;
res
=
WriteFile
(
server
,
buf
,
1
,
&
size
,
&
overlapped
);
ok
(
!
res
&&
GetLastError
()
==
ERROR_PIPE_NOT_CONNECTED
,
"ReadFile returned %x(%u)
\n
"
,
res
,
GetLastError
());
ok
(
size
==
0
,
"size = %u
\n
"
,
size
);
ok
(
overlapped
.
Internal
==
STATUS_PENDING
,
"Internal = %lx
\n
"
,
overlapped
.
Internal
);
ok
(
overlapped
.
InternalHigh
==
0xdeadbeef
,
"InternalHigh = %lx
\n
"
,
overlapped
.
InternalHigh
);
CloseHandle
(
server
);
CloseHandle
(
client
);
}
...
...
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