diff options
author | Wengier <wengierwu@yahoo.com> | 2022-09-19 03:18:45 +0300 |
---|---|---|
committer | Wengier <wengierwu@yahoo.com> | 2022-09-19 03:18:45 +0300 |
commit | 5d2d6d51255240554e2c19db33ad5327af40d5a8 (patch) | |
tree | 30c132549533d9f62040dc30d12aa702a45696dc | |
parent | 51e9e1db67278380147b46a62494639958d7a302 (diff) |
Tries to use Y: as temporary path for pipingww/moresort
-rw-r--r-- | src/shell/shell.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shell/shell.cpp b/src/shell/shell.cpp index baeadf299..7eacb1bfa 100644 --- a/src/shell/shell.cpp +++ b/src/shell/shell.cpp @@ -273,11 +273,13 @@ bool get_pipe_status(const char *out_file, OPEN_READWRITE, DOS_ATTR_ARCHIVE, 0x12, &dummy, &dummy2); if (pipe_file && (failed_pipe || !status) && - (Drives[0] || Drives[2]) && !strchr(pipe_tempfile, '\\')) { + (Drives[0] || Drives[2] || Drives[24]) && + !strchr(pipe_tempfile, '\\')) { // Insert a drive prefix into the pipe filename path. // Note that the safe_strcpy truncates excess to prevent // writing beyond pipe_tempfile's fixed size. - const std::string drive_prefix = Drives[2] ? "c:\\" : "a:\\"; + const std::string drive_prefix = + Drives[2] ? "c:\\" : (Drives[0] ? "a:\\" : "y:\\"); const std::string pipe_full_path = drive_prefix + pipe_tempfile; safe_strcpy(pipe_tempfile, pipe_full_path.c_str()); |