diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-04-23 23:20:32 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-04-23 23:20:32 +0200 |
commit | 9cb88728511c314695731d92cb4ab16c8e3b051e (patch) | |
tree | 6503c19dec45a7dc39377de39a1ff625ea321fbf /source/cMakeDir.cpp | |
parent | Lapis gets generated (thanks, Fordship) (diff) | |
download | cuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.tar cuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.tar.gz cuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.tar.bz2 cuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.tar.lz cuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.tar.xz cuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.tar.zst cuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.zip |
Diffstat (limited to 'source/cMakeDir.cpp')
-rw-r--r-- | source/cMakeDir.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cMakeDir.cpp b/source/cMakeDir.cpp index 8c43a7d92..a28b3a088 100644 --- a/source/cMakeDir.cpp +++ b/source/cMakeDir.cpp @@ -7,16 +7,16 @@ -void cMakeDir::MakeDir( const char* a_Directory )
+void cMakeDir::MakeDir(const AString & a_Directory)
{
#ifdef _WIN32
SECURITY_ATTRIBUTES Attrib;
Attrib.nLength = sizeof(SECURITY_ATTRIBUTES);
Attrib.lpSecurityDescriptor = NULL;
Attrib.bInheritHandle = false;
- ::CreateDirectory(a_Directory, &Attrib);
+ ::CreateDirectory(a_Directory.c_str(), &Attrib);
#else
- mkdir(a_Directory, S_IRWXU | S_IRWXG | S_IRWXO);
+ mkdir(a_Directory.c_str(), S_IRWXU | S_IRWXG | S_IRWXO);
#endif
}
|