mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 08:54:40 +00:00
- Make file lock and unlock operations succeed without doing actual locking (enough to make some apps work even if they don't have proper locking). DPRINT1s are inserted, so that this is not going to be forgotten.
svn path=/trunk/; revision=30424
This commit is contained in:
parent
629a6c0368
commit
845f7f54d2
|
@ -77,8 +77,34 @@ FsRtlPrivateLock(IN PFILE_LOCK FileLock,
|
||||||
IN PVOID Context OPTIONAL,
|
IN PVOID Context OPTIONAL,
|
||||||
IN BOOLEAN AlreadySynchronized)
|
IN BOOLEAN AlreadySynchronized)
|
||||||
{
|
{
|
||||||
KEBUGCHECK(0);
|
NTSTATUS Status;
|
||||||
return FALSE;
|
|
||||||
|
DPRINT1("FsRtlPrivateLock() is stubplemented!\n");
|
||||||
|
|
||||||
|
/* Initialize the lock, if necessary */
|
||||||
|
if (!FileLock->LockInformation)
|
||||||
|
{
|
||||||
|
DPRINT("LockInformation is uninitialized!\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Assume all is cool, and lock is set */
|
||||||
|
IoStatus->Status = STATUS_SUCCESS;
|
||||||
|
|
||||||
|
if (Irp)
|
||||||
|
{
|
||||||
|
/* Complete the request */
|
||||||
|
FsRtlCompleteLockIrpReal(FileLock->CompleteLockIrpRoutine,
|
||||||
|
Context,
|
||||||
|
Irp,
|
||||||
|
IoStatus->Status,
|
||||||
|
&Status,
|
||||||
|
FileObject);
|
||||||
|
|
||||||
|
/* Update the status */
|
||||||
|
IoStatus->Status = Status;
|
||||||
|
}
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -151,8 +177,9 @@ FsRtlFastUnlockSingle(IN PFILE_LOCK FileLock,
|
||||||
IN PVOID Context OPTIONAL,
|
IN PVOID Context OPTIONAL,
|
||||||
IN BOOLEAN AlreadySynchronized)
|
IN BOOLEAN AlreadySynchronized)
|
||||||
{
|
{
|
||||||
KEBUGCHECK(0);
|
DPRINT1("FsRtlFastUnlockSingle() is stubplemented!\n");
|
||||||
return STATUS_UNSUCCESSFUL;
|
|
||||||
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue