Author: ros-arm-bringup
Date: Sun Jul 12 14:45:33 2009
New Revision: 41924
URL:
http://svn.reactos.org/svn/reactos?rev=41924&view=rev
Log:
Use portable ExInterlockedWhatever instead of non-portable Exf* function... the headers
will do the right thing based on the arch
Modified:
trunk/reactos/ntoskrnl/ex/uuid.c
Modified: trunk/reactos/ntoskrnl/ex/uuid.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/uuid.c?rev=419…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/uuid.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/uuid.c [iso-8859-1] Sun Jul 12 14:45:33 2009
@@ -239,9 +239,10 @@
PrevLuid = LuidValue;
NewLuid = RtlLargeIntegerAdd(PrevLuid,
LuidIncrement);
- } while(ExfInterlockedCompareExchange64(&LuidValue.QuadPart,
- &NewLuid.QuadPart,
- &PrevLuid.QuadPart) !=
PrevLuid.QuadPart);
+ } while(ExInterlockedCompareExchange64(&LuidValue.QuadPart,
+ &NewLuid.QuadPart,
+ &PrevLuid.QuadPart,
+ NULL) != PrevLuid.QuadPart);
LocallyUniqueId->LowPart = NewLuid.u.LowPart;
LocallyUniqueId->HighPart = NewLuid.u.HighPart;