Signed-off-by: Zebediah Figura z.figura12@gmail.com --- dlls/hal/hal.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/hal/hal.c b/dlls/hal/hal.c index 3e9779626e..6ef8765321 100644 --- a/dlls/hal/hal.c +++ b/dlls/hal/hal.c @@ -81,10 +81,11 @@ void WINAPI DECLSPEC_HIDDEN __regs_ExReleaseFastMutex( FAST_MUTEX *mutex ) }
DEFINE_FASTCALL1_ENTRYPOINT( ExTryToAcquireFastMutex ) -BOOLEAN WINAPI DECLSPEC_HIDDEN __regs_ExTryToAcquireFastMutex(PFAST_MUTEX FastMutex) +BOOLEAN WINAPI DECLSPEC_HIDDEN __regs_ExTryToAcquireFastMutex( FAST_MUTEX *mutex ) { - FIXME("(%p) stub\n", FastMutex); - return TRUE; + TRACE("mutex %p.\n", mutex); + + return (InterlockedCompareExchange( &mutex->Count, 0, 1 ) == 1); }
DEFINE_FASTCALL1_ENTRYPOINT( KfAcquireSpinLock )