Module: wine Branch: master Commit: 2c6cba8eefe4505eecbab37e72b09c7ad5af5773 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2c6cba8eefe4505eecbab37e72...
Author: Francois Gouget fgouget@free.fr Date: Sun Feb 10 00:30:28 2008 +0100
tests: Avoid InterlockedExchangeAdd() as it is not supported on Windows 95.
---
include/wine/test.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/include/wine/test.h b/include/wine/test.h index 32850ce..72cd84c 100644 --- a/include/wine/test.h +++ b/include/wine/test.h @@ -354,7 +354,8 @@ void winetest_wait_child_process( HANDLE process ) { fprintf( stdout, "%s: %u failures in child process\n", current_test->name, exit_code ); - InterlockedExchangeAdd( &failures, exit_code ); + while (exit_code-- > 0) + InterlockedIncrement(&failures); } }