1
0
Fork 0

fixed bug in makedir

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@196
This commit is contained in:
Ulf Wohlers 2002-08-20 09:58:31 +00:00
parent 57bd6890f5
commit 067304c30a

View file

@ -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) {