mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
[FLOPPY]
- Validate the handle type - Fix a bug that broke file system remounting after a media change svn path=/trunk/; revision=52247
This commit is contained in:
parent
e15164f46a
commit
96ba16073d
3 changed files with 3 additions and 3 deletions
|
@ -1189,7 +1189,7 @@ DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
|
|||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
if(ObReferenceObjectByHandle(ThreadHandle, STANDARD_RIGHTS_ALL, NULL, KernelMode, &QueueThreadObject, NULL) != STATUS_SUCCESS)
|
||||
if(ObReferenceObjectByHandle(ThreadHandle, STANDARD_RIGHTS_ALL, PsThreadType, KernelMode, &QueueThreadObject, NULL) != STATUS_SUCCESS)
|
||||
{
|
||||
WARN_(FLOPPY, "Unable to reference returned thread handle; failing init\n");
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
|
|
|
@ -126,7 +126,7 @@ DeviceIoctlPassive(PDRIVE_INFO DriveInfo, PIRP Irp)
|
|||
* Therefore if we see one below in the switch, we can return STATUS_SUCCESS
|
||||
* immediately.
|
||||
*/
|
||||
if(DriveInfo->DeviceObject->Flags & DO_VERIFY_VOLUME && !(DriveInfo->DeviceObject->Flags & SL_OVERRIDE_VERIFY_VOLUME))
|
||||
if(DriveInfo->DeviceObject->Flags & DO_VERIFY_VOLUME && !(Stack->Flags & SL_OVERRIDE_VERIFY_VOLUME))
|
||||
{
|
||||
INFO_(FLOPPY, "DeviceIoctl(): completing with STATUS_VERIFY_REQUIRED\n");
|
||||
Irp->IoStatus.Status = STATUS_VERIFY_REQUIRED;
|
||||
|
|
|
@ -454,7 +454,7 @@ ReadWritePassive(PDRIVE_INFO DriveInfo, PIRP Irp)
|
|||
* Check to see if the volume needs to be verified. If so,
|
||||
* we can get out of here quickly.
|
||||
*/
|
||||
if(DeviceObject->Flags & DO_VERIFY_VOLUME && !(DeviceObject->Flags & SL_OVERRIDE_VERIFY_VOLUME))
|
||||
if(DeviceObject->Flags & DO_VERIFY_VOLUME && !(Stack->Flags & SL_OVERRIDE_VERIFY_VOLUME))
|
||||
{
|
||||
INFO_(FLOPPY, "ReadWritePassive(): DO_VERIFY_VOLUME set; Completing with STATUS_VERIFY_REQUIRED\n");
|
||||
Irp->IoStatus.Status = STATUS_VERIFY_REQUIRED;
|
||||
|
|
Loading…
Reference in a new issue