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>
This commit is contained in:
Sebastian Lackner 2015-10-20 21:55:41 +02:00 committed by Alexandre Julliard
parent 5bbdcaaa16
commit 646888ec79
1 changed files with 2 additions and 3 deletions

View File

@ -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" );