projects
/
dosemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42c03d9
)
Fix DOS drive-relative filename resolution
author
Robert Pengelly
<robertapengelly@hotmail.com>
Sun, 18 Oct 2026 15:57:13 +0000
(16:57 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Sun, 18 Oct 2026 15:57:13 +0000
(16:57 +0100)
interrupts.c
patch
|
blob
|
history
diff --git
a/interrupts.c
b/interrupts.c
index 896fbe2fbb3924d7eeb77143f80f513836641e4f..783d5385f03ac0b87ce0d1f6febcabd40db99131 100644
(file)
--- 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') {