mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:33:10 +00:00
[DISK] Disable IsFloppyDevice check.
It wrongly marks USB flash drives as a floppy device
This commit is contained in:
parent
b7de5870e6
commit
fa530aee92
1 changed files with 2 additions and 0 deletions
|
@ -969,12 +969,14 @@ Return Value:
|
||||||
// IsFloppyDevice also checks for write cache enabled.
|
// IsFloppyDevice also checks for write cache enabled.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (IsFloppyDevice(deviceObject) && deviceObject->Characteristics & FILE_REMOVABLE_MEDIA &&
|
if (IsFloppyDevice(deviceObject) && deviceObject->Characteristics & FILE_REMOVABLE_MEDIA &&
|
||||||
(((PINQUIRYDATA)LunInfo->InquiryData)->DeviceType == DIRECT_ACCESS_DEVICE)) {
|
(((PINQUIRYDATA)LunInfo->InquiryData)->DeviceType == DIRECT_ACCESS_DEVICE)) {
|
||||||
|
|
||||||
status = STATUS_NO_SUCH_DEVICE;
|
status = STATUS_NO_SUCH_DEVICE;
|
||||||
goto CreateDiskDeviceObjectsExit;
|
goto CreateDiskDeviceObjectsExit;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
DisableWriteCache(deviceObject,LunInfo);
|
DisableWriteCache(deviceObject,LunInfo);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue