ntoskrnl.exe: Implement IoReleaseCancelSpinLock().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-01-24 22:56:21 -06:00 committed by Alexandre Julliard
parent b37c1d83e4
commit e834d38c77
4 changed files with 13 additions and 11 deletions

View File

@ -1,4 +1,5 @@
MODULE = hal.dll MODULE = hal.dll
IMPORTLIB = hal
C_SRCS = \ C_SRCS = \
hal.c hal.c

View File

@ -1,6 +1,6 @@
MODULE = ntoskrnl.exe MODULE = ntoskrnl.exe
IMPORTLIB = ntoskrnl IMPORTLIB = ntoskrnl
IMPORTS = advapi32 IMPORTS = advapi32 hal
DELAYIMPORTS = setupapi user32 DELAYIMPORTS = setupapi user32
C_SRCS = \ C_SRCS = \

View File

@ -785,16 +785,6 @@ void WINAPI IoAcquireCancelSpinLock(PKIRQL irql)
FIXME("(%p): stub\n", irql); FIXME("(%p): stub\n", irql);
} }
/***********************************************************************
* IoReleaseCancelSpinLock (NTOSKRNL.EXE.@)
*/
void WINAPI IoReleaseCancelSpinLock(KIRQL irql)
{
FIXME("(%u): stub\n", irql);
}
/*********************************************************************** /***********************************************************************
* IoAllocateDriverObjectExtension (NTOSKRNL.EXE.@) * IoAllocateDriverObjectExtension (NTOSKRNL.EXE.@)
*/ */

View File

@ -413,3 +413,14 @@ KIRQL WINAPI KeAcquireSpinLockRaiseToDpc( KSPIN_LOCK *lock )
return 0; return 0;
} }
#endif #endif
static KSPIN_LOCK cancel_lock;
/***********************************************************************
* IoReleaseCancelSpinLock (NTOSKRNL.EXE.@)
*/
void WINAPI IoReleaseCancelSpinLock( KIRQL irql )
{
TRACE("irql %u.\n", irql);
KeReleaseSpinLock( &cancel_lock, irql );
}