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
33c5d44d
Commit
33c5d44d
authored
Sep 11, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix the BindIoCompletionCallback test on Vista.
parent
f0bf098e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
sync.c
dlls/kernel32/tests/sync.c
+3
-11
No files found.
dlls/kernel32/tests/sync.c
View file @
33c5d44d
...
...
@@ -512,16 +512,6 @@ static void test_iocp_callback(void)
ret
=
DeleteFileA
(
filename
);
ok
(
ret
,
"DeleteFileA: error %d
\n
"
,
GetLastError
());
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
,
NULL
,
0
);
ok
(
retb
==
TRUE
,
"BindIoCompletionCallback failed with a NULL callback(first time set)
\n
"
);
ret
=
CloseHandle
(
hFile
);
ok
(
ret
,
"CloseHandle: error %d
\n
"
,
GetLastError
());
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
,
...
...
@@ -540,7 +530,9 @@ static void test_iocp_callback(void)
retb
=
p_BindIoCompletionCallback
(
NULL
,
iocp_callback
,
0
);
ok
(
retb
==
FALSE
,
"BindIoCompletionCallback succeeded on a NULL file
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"Last error is %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
/* vista */
"Last error is %d
\n
"
,
GetLastError
());
}
static
void
CALLBACK
timer_queue_cb1
(
PVOID
p
,
BOOLEAN
timedOut
)
...
...
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