In OS/2 change current drive before changing current directory.

This commit is contained in:
2021-04-05 21:51:56 +01:00
parent 7c8582bde4
commit 7626ea03f8
9 changed files with 127 additions and 0 deletions

View File

@@ -45,6 +45,17 @@ void ExtendedAttributes(const char* path)
HFILE handle;
char message[300];
EAOP eap;
USHORT driveNo = path[0] - '@';
if(driveNo > 32) driveNo -= 32;
rc = DosSelectDisk(driveNo);
if(rc)
{
log_write("Cannot change to specified drive, not continuing.\n");
return;
}
drivePath[0] = path[0];
drivePath[1] = ':';