fixed bug in makedir
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@196
This commit is contained in:
parent
57bd6890f5
commit
067304c30a
1 changed files with 2 additions and 1 deletions
|
@ -184,7 +184,8 @@ bool localDrive::MakeDir(char * dir) {
|
|||
#else
|
||||
int temp=mkdir(newdir,0700);
|
||||
#endif
|
||||
return (temp==0);
|
||||
// if dir already exists, return success too.
|
||||
return (temp==0) || ((temp!=0) && (errno==EEXIST));
|
||||
}
|
||||
|
||||
bool localDrive::RemoveDir(char * dir) {
|
||||
|
|
Loading…
Add table
Reference in a new issue