Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion rom/dos/packethelper.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ BOOL getpacketinfo(struct DosLibrary *DOSBase, CONST_STRPTR name, struct PacketH
phs->name = bstrname;
return TRUE;
} else { /* ":" */
BSTR bstrname = C2BSTR(name);
/* Strip the volume/assign specifier before handing the name to the filesystem handler. */
CONST_STRPTR filename = strchr(name, ':') + 1;
BSTR bstrname = C2BSTR(filename);
struct DevProc *dvp = NULL;
if ((dvp = GetDeviceProc(name, dvp))) {
phs->name = bstrname;
Expand All @@ -46,6 +48,7 @@ BOOL getpacketinfo(struct DosLibrary *DOSBase, CONST_STRPTR name, struct PacketH
phs->dp = dvp;
return TRUE;
}
FREEC2BSTR(bstrname);
}
return FALSE;
}
Expand Down