tests: Avoid InterlockedExchangeAdd() as it is not supported on Windows 95.
Francois Gouget
fgouget at free.fr
Sat Feb 9 17:30:28 CST 2008
---
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);
}
}
--
1.5.3.8
More information about the wine-patches
mailing list