Windows 2000 support, part 1
This commit is contained in:
parent
f5a6a9ed6c
commit
1ec49d3557
7 changed files with 30 additions and 11 deletions
|
|
@ -96,7 +96,7 @@ bool dirExists(const char* what) {
|
|||
|
||||
bool makeDir(const char* path) {
|
||||
#ifdef _WIN32
|
||||
return (SHCreateDirectory(NULL,utf8To16(path).c_str())==ERROR_SUCCESS);
|
||||
return (SHCreateDirectoryExW(NULL,utf8To16(path).c_str(),NULL)==ERROR_SUCCESS);
|
||||
#else
|
||||
return (mkdir(path,0755)==0);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue