mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Allow "CD \" for UNC root path
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA.
|
||||
*
|
||||
* Heavy improvements by the DOSBox-X Team
|
||||
* With major works from joncampbell123 and Wengier
|
||||
*/
|
||||
|
||||
|
||||
@@ -1010,6 +1013,9 @@ bool localDrive::TestDir(const char * dir) {
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string temp_line=std::string(newdir);
|
||||
if(temp_line.size() > 4 && temp_line[0]=='\\' && temp_line[1]=='\\' && temp_line[2]!='\\' && std::count(temp_line.begin()+3, temp_line.end(), '\\')==1) strcat(newdir,"\\");
|
||||
|
||||
// Skip directory test, if "\"
|
||||
size_t len = strlen(newdir);
|
||||
if (len && (newdir[len-1]!='\\')) {
|
||||
|
Reference in New Issue
Block a user