ntoskrnl.exe: Implement IoReleaseCancelSpinLock().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
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
IMPORTLIB = hal
C_SRCS = \
hal.c

View File

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

View File

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

View File

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