Skip to content

Commit

Permalink
Windows: better error code when IOCTL_STORAGE_QUERY_PROPERTY type is …
Browse files Browse the repository at this point in the history
…not supported
  • Loading branch information
idrassi committed Aug 8, 2015
1 parent f9c3bcd commit 0cf2885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Driver/Ntdriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ NTSTATUS ProcessVolumeDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION
STORAGE_QUERY_TYPE type = pStoragePropQuery->QueryType;

/* return error if an unsupported type is encountered */
Irp->IoStatus.Status = STATUS_INVALID_PARAMETER;
Irp->IoStatus.Status = STATUS_INVALID_DEVICE_REQUEST;
Irp->IoStatus.Information = 0;

if (type == PropertyExistsQuery)
Expand Down

0 comments on commit 0cf2885

Please sign in to comment.