ntoskrnl.exe: Implement IoAcquireRemoveLockEx().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
afe444f75a
commit
2a92951769
|
@ -3050,19 +3050,6 @@ BOOLEAN WINAPI IoSetThreadHardErrorMode(BOOLEAN EnableHardErrors)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/*****************************************************
|
||||
* IoAcquireRemoveLockEx (NTOSKRNL.EXE.@)
|
||||
*/
|
||||
|
||||
NTSTATUS WINAPI IoAcquireRemoveLockEx(PIO_REMOVE_LOCK lock, PVOID tag,
|
||||
LPCSTR file, ULONG line, ULONG lock_size)
|
||||
{
|
||||
FIXME("(%p, %p, %s, %u, %u): stub\n", lock, tag, debugstr_a(file), line, lock_size);
|
||||
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************
|
||||
* DllMain
|
||||
*/
|
||||
|
|
|
@ -1209,3 +1209,18 @@ void WINAPI IoInitializeRemoveLockEx( IO_REMOVE_LOCK *lock, ULONG tag,
|
|||
lock->Common.Removed = FALSE;
|
||||
lock->Common.IoCount = 0;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* IoAcquireRemoveLockEx (NTOSKRNL.EXE.@)
|
||||
*/
|
||||
NTSTATUS WINAPI IoAcquireRemoveLockEx( IO_REMOVE_LOCK *lock, void *tag,
|
||||
const char *file, ULONG line, ULONG size )
|
||||
{
|
||||
TRACE("lock %p, tag %p, file %s, line %u, size %u.\n", lock, tag, debugstr_a(file), line, size);
|
||||
|
||||
if (lock->Common.Removed)
|
||||
return STATUS_DELETE_PENDING;
|
||||
|
||||
InterlockedIncrement( &lock->Common.IoCount );
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
|
|
@ -1565,6 +1565,7 @@ void WINAPI ExReleaseResourceForThreadLite(ERESOURCE*,ERESOURCE_THREAD);
|
|||
ULONG WINAPI ExSetTimerResolution(ULONG,BOOLEAN);
|
||||
|
||||
void WINAPI IoAcquireCancelSpinLock(KIRQL*);
|
||||
NTSTATUS WINAPI IoAcquireRemoveLockEx(IO_REMOVE_LOCK*,void*,const char*,ULONG, ULONG);
|
||||
NTSTATUS WINAPI IoAllocateDriverObjectExtension(PDRIVER_OBJECT,PVOID,ULONG,PVOID*);
|
||||
PVOID WINAPI IoAllocateErrorLogEntry(PVOID,UCHAR);
|
||||
PIRP WINAPI IoAllocateIrp(CCHAR,BOOLEAN);
|
||||
|
|
Loading…
Reference in New Issue