From bd77b9b3e46c8c6ee595f82f3a9af688be5c7412 Mon Sep 17 00:00:00 2001 From: Kenneth J Davis Date: Wed, 1 Jul 2026 05:37:27 -0400 Subject: [PATCH] bugfix: findfirst: a device can not be a volume label so don't match if looking for volume label --- kernel/dosfns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/dosfns.c b/kernel/dosfns.c index 4fdf69cd..312cbfa1 100644 --- a/kernel/dosfns.c +++ b/kernel/dosfns.c @@ -1085,7 +1085,7 @@ COUNT DosFindFirst(UCOUNT attr, BYTE FAR * name) if (rc & IS_NETWORK) rc = network_redirector_fp(REM_FINDFIRST, current_ldt); - else if (rc & IS_DEVICE) + else if (rc & IS_DEVICE && !(attr & D_VOLID)) /* DEVICE can't be a volume label */ { const char *p; COUNT i;