Core: Fix up clang error
This commit is contained in:
parent
0d95a0cd7f
commit
ccf708751f
|
@ -1494,7 +1494,7 @@ bool CPath::DirectoryCreate(bool bCreateIntermediates /*= TRUE*/)
|
||||||
WriteTrace(TracePath, TraceDebug, "Create %s", PathText.c_str());
|
WriteTrace(TracePath, TraceDebug, "Create %s", PathText.c_str());
|
||||||
bSuccess = ::CreateDirectory(stdstr(PathText).ToUTF16().c_str(), nullptr) != 0;
|
bSuccess = ::CreateDirectory(stdstr(PathText).ToUTF16().c_str(), nullptr) != 0;
|
||||||
#else
|
#else
|
||||||
GetDirectory(PathText);7
|
GetDirectory(PathText);
|
||||||
StripTrailingBackslash(PathText);
|
StripTrailingBackslash(PathText);
|
||||||
WriteTrace(TracePath, TraceDebug, "Create %s", PathText.c_str());
|
WriteTrace(TracePath, TraceDebug, "Create %s", PathText.c_str());
|
||||||
bSuccess = mkdir(PathText.c_str(), S_IRWXU) == 0;
|
bSuccess = mkdir(PathText.c_str(), S_IRWXU) == 0;
|
||||||
|
|
|
@ -230,7 +230,7 @@ void CMainMenu::OnSaveAs(HWND hWnd)
|
||||||
memset(&openfilename, 0, sizeof(openfilename));
|
memset(&openfilename, 0, sizeof(openfilename));
|
||||||
|
|
||||||
UISettingsLoadStringVal(Directory_LastSave, Directory, sizeof(Directory));
|
UISettingsLoadStringVal(Directory_LastSave, Directory, sizeof(Directory));
|
||||||
std::wstring InitialDirectory = stdstr((const char *)(CPath(Directory,"").NormalizePath(CPath(CPath::MODULE_DIRECTORY)))).ToUTF16();
|
std::wstring InitialDirectory = stdstr((const char *)(CPath(Directory, "").NormalizePath(CPath(CPath::MODULE_DIRECTORY)))).ToUTF16();
|
||||||
|
|
||||||
openfilename.lStructSize = sizeof(openfilename);
|
openfilename.lStructSize = sizeof(openfilename);
|
||||||
openfilename.hwndOwner = (HWND)hWnd;
|
openfilename.hwndOwner = (HWND)hWnd;
|
||||||
|
|
Loading…
Reference in New Issue