Restore F_USERNUM
@@ -512,13 +512,13 @@ uint8 _ccp_ext(void) {
if (curUser) { // If current user not = 0
_RamWrite(CmdFCB, 0x00); // look on current drive user 0
found = !_ccp_bdos(F_OPEN, CmdFCB); // and try again
- if (!found) {
- _RamWrite(CmdFCB, drive); // restore previous drive
- _ccp_bdos(F_USERNUM, curUser); // restore to previous user
}
}
}
}
+ if (!found) {
+ _RamWrite(CmdFCB, drive); // restore previous drive
+ _ccp_bdos(F_USERNUM, curUser); // restore to previous user
}
//if .COM not found then look for a .SUB file
@@ -543,13 +543,13 @@ uint8 _ccp_ext(void) {
if (curUser) { // If current user not = 0
_RamWrite(CmdFCB, 0x00); // look on current drive user 0
found = !_ccp_bdos(F_OPEN, CmdFCB); // and try again
- if (!found) {
- _RamWrite(CmdFCB, drive); // restore previous drive
- _ccp_bdos(F_USERNUM, curUser); // restore to previous user
}
}
}
}
+ if (!found) {
+ _RamWrite(CmdFCB, drive); // restore previous drive
+ _ccp_bdos(F_USERNUM, curUser); // restore to previous user
}
if (found) {
