Fix DOS drive-relative filename resolution
authorRobert Pengelly <robertapengelly@hotmail.com>
Sun, 18 Oct 2026 15:57:13 +0000 (16:57 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Sun, 18 Oct 2026 15:57:13 +0000 (16:57 +0100)
interrupts.c

index 896fbe2fbb3924d7eeb77143f80f513836641e4f..783d5385f03ac0b87ce0d1f6febcabd40db99131 100644 (file)
@@ -1460,7 +1460,7 @@ static void dos_resolve_path (const char *in, char *out, size_t out_sz) {
     
     dos_normalize_path (tmp);
     
-    absolute = in && (in[0] == '\\' || in[0] == '/' || (in[0] && in[1] == ':'));
+    absolute = in && (in[0] == '\\' || in[0] == '/' || (in[0] && in[1] == ':' && (in[2] == '\\' || in[2] == '/')));
     dos_rel[0] = '\0';
     
     if (!absolute && dos_current_dir[0] != '\0') {