Skip to content

Commit 8df6409

Browse files
committed
DiskIO (Windows): better device name detection
1 parent 5c5c66d commit 8df6409

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/detection/diskio/diskio_windows.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ const char* ffDiskIOGetIoCounters(FFlist* result, FFDiskIOOptions* options)
3838
uint32_t index = ffStrbufFirstIndexC(&device->name, '\\');
3939
if (index != device->name.length)
4040
ffStrbufAppendNS(&device->type, index, device->name.chars); // SCSI
41-
ffStrbufSubstrAfterFirstS(&device->name, "&Prod_");
4241
ffStrbufSubstrBeforeLastC(&device->name, '\\');
42+
ffStrbufSubstrAfterFirstS(&device->name, "&Ven_");
43+
ffStrbufRemoveS(&device->name, "&Prod");
4344
ffStrbufReplaceAllC(&device->name, '_', ' ');
4445
}
4546
else

0 commit comments

Comments
 (0)