Francois Gouget : tests: Avoid InterlockedExchangeAdd() as it is not supported on Windows 95.
Alexandre Julliard
julliard at winehq.org
Mon Feb 11 14:19:27 CST 2008
Module: wine
Branch: master
Commit: 2c6cba8eefe4505eecbab37e72b09c7ad5af5773
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2c6cba8eefe4505eecbab37e72b09c7ad5af5773
Author: Francois Gouget <fgouget at 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);
}
}
More information about the wine-cvs
mailing list