From: Robert Pengelly Date: Sun, 18 Oct 2026 15:57:13 +0000 (+0100) Subject: Fix DOS drive-relative filename resolution X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=aaf1737c6d5aa85b35cfe67be7b72be93a926e91;p=dosemu.git Fix DOS drive-relative filename resolution --- diff --git a/interrupts.c b/interrupts.c index 896fbe2..783d538 100644 --- a/interrupts.c +++ b/interrupts.c @@ -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') {