Skip to content

Commit ab8448e

Browse files
committed
DiskIO (Windows): fix device name detection
1 parent 5493f41 commit ab8448e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/diskio/diskio_windows.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const char* ffDiskIOGetIoCounters(FFlist* result, FFDiskIOOptions* options)
3939
if (index != device->name.length)
4040
{
4141
ffStrbufAppendNS(&device->interconnect, index, device->name.chars); // SCSI
42-
ffStrbufSubstrAfter(&device->name, index + 1);
42+
ffStrbufSubstrAfter(&device->name, index);
4343
}
4444
ffStrbufSubstrBeforeLastC(&device->name, '\\');
4545
ffStrbufSubstrAfterFirstS(&device->name, "&Ven_");

0 commit comments

Comments
 (0)