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
ed714d09
Commit
ed714d09
authored
Apr 24, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Apr 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix a test that fails in win2k3.
parent
2f97a71e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
sync.c
dlls/kernel32/tests/sync.c
+7
-1
No files found.
dlls/kernel32/tests/sync.c
View file @
ed714d09
...
...
@@ -370,11 +370,17 @@ static void test_iocp_callback(void)
ret
=
DeleteFileA
(
filename
);
ok
(
ret
,
"DeleteFileA: error %d
\n
"
,
GetLastError
());
/* win2k3 requires the Flags parameter to be zero */
SetLastError
(
0xdeadbeef
);
hFile
=
CreateFileA
(
filename
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_FLAG_RANDOM_ACCESS
|
FILE_FLAG_OVERLAPPED
,
0
);
ok
(
hFile
!=
INVALID_HANDLE_VALUE
,
"CreateFileA: error %d
\n
"
,
GetLastError
());
retb
=
p_BindIoCompletionCallback
(
hFile
,
iocp_callback
,
12345
);
ok
(
retb
==
TRUE
,
"BindIoCompletionCallback failed with Flags != 0
\n
"
);
if
(
!
retb
)
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
else
ok
(
retb
==
TRUE
,
"BindIoCompletionCallback failed with Flags != 0
\n
"
);
ret
=
CloseHandle
(
hFile
);
ok
(
ret
,
"CloseHandle: error %d
\n
"
,
GetLastError
());
ret
=
DeleteFileA
(
filename
);
...
...
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