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
b9c3e931
Commit
b9c3e931
authored
Aug 10, 2009
by
Mike Kaplinskiy
Committed by
Alexandre Julliard
Aug 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix NtWriteFile checks.
parent
780aff0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
file.c
dlls/ntdll/tests/file.c
+4
-3
No files found.
dlls/ntdll/tests/file.c
View file @
b9c3e931
...
...
@@ -390,8 +390,8 @@ static void read_file_test(void)
iosb
.
Information
=
0xdeadbeef
;
offset
.
QuadPart
=
0
;
ResetEvent
(
event
);
pNtWriteFile
(
handle
,
event
,
apc
,
&
apc_count
,
&
iosb
,
text
,
strlen
(
text
),
&
offset
,
NULL
);
ok
(
status
==
STATUS_PENDING
,
"wrong status %x
\n
"
,
status
);
status
=
pNtWriteFile
(
handle
,
event
,
apc
,
&
apc_count
,
&
iosb
,
text
,
strlen
(
text
),
&
offset
,
NULL
);
ok
(
status
==
STATUS_
SUCCESS
||
status
==
STATUS_
PENDING
,
"wrong status %x
\n
"
,
status
);
ok
(
U
(
iosb
).
Status
==
STATUS_SUCCESS
,
"wrong status %x
\n
"
,
U
(
iosb
).
Status
);
ok
(
iosb
.
Information
==
strlen
(
text
),
"wrong info %lu
\n
"
,
iosb
.
Information
);
ok
(
is_signaled
(
event
),
"event is signaled
\n
"
);
...
...
@@ -448,8 +448,9 @@ static void read_file_test(void)
U
(
iosb
).
Status
=
0xdeadbabe
;
iosb
.
Information
=
0xdeadbeef
;
offset
.
QuadPart
=
0
;
pNtWriteFile
(
handle
,
event
,
apc
,
&
apc_count
,
&
iosb
,
text
,
strlen
(
text
),
&
offset
,
NULL
);
status
=
pNtWriteFile
(
handle
,
event
,
apc
,
&
apc_count
,
&
iosb
,
text
,
strlen
(
text
),
&
offset
,
NULL
);
ok
(
status
==
STATUS_END_OF_FILE
||
status
==
STATUS_SUCCESS
||
status
==
STATUS_PENDING
,
/* vista */
"wrong status %x
\n
"
,
status
);
ok
(
U
(
iosb
).
Status
==
STATUS_SUCCESS
,
"wrong status %x
\n
"
,
U
(
iosb
).
Status
);
...
...
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