https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f095ff418b3279a761278…
commit f095ff418b3279a7612789aca053ac1096b77c0a
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sun Dec 13 16:24:58 2020 +0100
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sun Dec 13 16:24:58 2020 +0100
[SCSIPORT] Append the missing "SCSI <device type> Device" string to
the device description
---
drivers/storage/port/scsiport/pdo.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/storage/port/scsiport/pdo.c b/drivers/storage/port/scsiport/pdo.c
index 09c4249d37c..3f2bd697309 100644
--- a/drivers/storage/port/scsiport/pdo.c
+++ b/drivers/storage/port/scsiport/pdo.c
@@ -173,7 +173,7 @@ PdoHandleQueryDeviceText(
PIO_STACK_LOCATION IoStack;
UINT32 Offset = 0;
PINQUIRYDATA InquiryData;
- CHAR LocalBuffer[40];
+ CHAR LocalBuffer[64];
ANSI_STRING AnsiString;
UNICODE_STRING DeviceDescription;
@@ -200,6 +200,9 @@ PdoHandleQueryDeviceText(
sizeof(InquiryData->ProductId),
' ',
TRUE);
+ Offset += sprintf(&LocalBuffer[Offset],
+ " SCSI %s Device",
+ GetDeviceType(InquiryData));
LocalBuffer[Offset++] = '\0';
RtlInitAnsiString(&AnsiString, (PCSZ)&LocalBuffer);