From bcc1450ba930d991e9569d05810aa4aada68869d Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 26 Oct 2011 13:07:39 +0000 Subject: 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 --- source/cMakeDir.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cMakeDir.cpp') diff --git a/source/cMakeDir.cpp b/source/cMakeDir.cpp index a4d62afdd..60817d5aa 100644 --- a/source/cMakeDir.cpp +++ b/source/cMakeDir.cpp @@ -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 } \ No newline at end of file -- cgit v1.2.3