Skip to content

Commit bd77b9b

Browse files
committed
bugfix: findfirst: a device can not be a volume label so don't match if looking for volume label
1 parent 5d83f21 commit bd77b9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/dosfns.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ COUNT DosFindFirst(UCOUNT attr, BYTE FAR * name)
10851085

10861086
if (rc & IS_NETWORK)
10871087
rc = network_redirector_fp(REM_FINDFIRST, current_ldt);
1088-
else if (rc & IS_DEVICE)
1088+
else if (rc & IS_DEVICE && !(attr & D_VOLID)) /* DEVICE can't be a volume label */
10891089
{
10901090
const char *p;
10911091
COUNT i;

0 commit comments

Comments
 (0)