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
646888ec
Commit
646888ec
authored
Oct 20, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Oct 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Remove unnecessary busy loop (PVS-Studio).
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5bbdcaaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
thread.c
dlls/kernel32/tests/thread.c
+2
-3
No files found.
dlls/kernel32/tests/thread.c
View file @
646888ec
...
...
@@ -227,9 +227,8 @@ static DWORD WINAPI threadFunc1(LPVOID p)
/* Double check that all threads really did run by validating that
they have all written to the shared memory. There should be no race
here, since all threads were synchronized after the write.*/
for
(
i
=
0
;
i
<
NUM_THREADS
;
i
++
)
{
while
(
tstruct
->
threadmem
[
i
]
==
0
)
;
}
for
(
i
=
0
;
i
<
NUM_THREADS
;
i
++
)
ok
(
tstruct
->
threadmem
[
i
]
!=
0
,
"expected threadmem[%d] != 0
\n
"
,
i
);
/* lstrlenA contains an exception handler so this makes sure exceptions work in threads */
ok
(
lstrlenA
(
(
char
*
)
0xdeadbeef
)
==
0
,
"lstrlenA: unexpected success
\n
"
);
...
...
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