1
0

Fixed bug in cMakeDir where it would only create directories named "world"

The user input thread now properly stops when the server restarts or stops

git-svn-id: http://mc-server.googlecode.com/svn/trunk@13 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
faketruth
2011-10-26 13:07:39 +00:00
parent 459554201b
commit bcc1450ba9
3 changed files with 16 additions and 34 deletions

View File

@@ -17,8 +17,8 @@ void cMakeDir::MakeDir( const char* a_Directory )
Attrib.nLength = sizeof(SECURITY_ATTRIBUTES);
Attrib.lpSecurityDescriptor = NULL;
Attrib.bInheritHandle = false;
::CreateDirectory("world", &Attrib);
::CreateDirectory(a_Directory, &Attrib);
#else
mkdir("world", S_IRWXU | S_IRWXG | S_IRWXO);
mkdir(a_Directory, S_IRWXU | S_IRWXG | S_IRWXO);
#endif
}