Kaydet (Commit) 45d196c0 authored tarafından Eike Rathke's avatar Eike Rathke

corrected Windows lt_atomic_int_dec_and_test()

check pre-decremented value for zero

Change-Id: Ib2289cb6064941db2072b2dfbd6ad5f03bcff7aa
üst b0050ee6
......@@ -74,7 +74,7 @@
+{
+ lt_return_val_if_fail (v != NULL, FALSE);
+
+ return 1 == InterlockedExchangeAdd((LONG*)v, -1) - 1;
+ return 0 == (InterlockedExchangeAdd((LONG*)v, -1) - 1);
+}
+
+
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment