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
af896103
Commit
af896103
authored
Aug 27, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add more tests for the InitOnce functions.
parent
3f4b06ed
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
sync.c
dlls/kernel32/tests/sync.c
+0
-0
om.c
dlls/ntdll/tests/om.c
+5
-5
No files found.
dlls/kernel32/tests/sync.c
View file @
af896103
This diff is collapsed.
Click to expand it.
dlls/ntdll/tests/om.c
View file @
af896103
...
...
@@ -855,7 +855,7 @@ static DWORD WINAPI keyed_event_thread( void *arg )
LARGE_INTEGER
timeout
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
str
;
int
i
;
ULONG_PTR
i
;
attr
.
Length
=
sizeof
(
attr
);
attr
.
RootDirectory
=
0
;
...
...
@@ -874,12 +874,12 @@ static DWORD WINAPI keyed_event_thread( void *arg )
status
=
pNtWaitForKeyedEvent
(
handle
,
(
void
*
)(
i
*
2
),
0
,
NULL
);
else
status
=
pNtReleaseKeyedEvent
(
handle
,
(
void
*
)(
i
*
2
),
0
,
NULL
);
ok
(
status
==
STATUS_SUCCESS
,
"%i: failed %x
\n
"
,
i
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"%
l
i: failed %x
\n
"
,
i
,
status
);
Sleep
(
20
-
i
);
}
status
=
pNtReleaseKeyedEvent
(
handle
,
(
void
*
)
0x1234
,
0
,
NULL
);
ok
(
status
==
STATUS_SUCCESS
,
"
%i: failed %x
\n
"
,
i
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"
NtReleaseKeyedEvent %x
\n
"
,
status
);
timeout
.
QuadPart
=
-
10000
;
status
=
pNtWaitForKeyedEvent
(
handle
,
(
void
*
)
0x5678
,
0
,
&
timeout
);
...
...
@@ -898,7 +898,7 @@ static void test_keyed_events(void)
HANDLE
handle
,
event
,
thread
;
NTSTATUS
status
;
LARGE_INTEGER
timeout
;
int
i
;
ULONG_PTR
i
;
if
(
!
pNtCreateKeyedEvent
)
{
...
...
@@ -953,7 +953,7 @@ static void test_keyed_events(void)
status
=
pNtReleaseKeyedEvent
(
handle
,
(
void
*
)(
i
*
2
),
0
,
NULL
);
else
status
=
pNtWaitForKeyedEvent
(
handle
,
(
void
*
)(
i
*
2
),
0
,
NULL
);
ok
(
status
==
STATUS_SUCCESS
,
"%i: failed %x
\n
"
,
i
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"%
l
i: failed %x
\n
"
,
i
,
status
);
Sleep
(
i
);
}
status
=
pNtWaitForKeyedEvent
(
handle
,
(
void
*
)
0x1234
,
0
,
&
timeout
);
...
...
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