From ccf708751f89bc76e382040f6e1dcf407784e336 Mon Sep 17 00:00:00 2001 From: zilmar Date: Fri, 11 Oct 2024 07:09:03 +1030 Subject: [PATCH] Core: Fix up clang error --- Source/Common/path.cpp | 2 +- Source/Project64/UserInterface/MainMenu.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Common/path.cpp b/Source/Common/path.cpp index 881ab8cb8..364f7d931 100644 --- a/Source/Common/path.cpp +++ b/Source/Common/path.cpp @@ -1494,7 +1494,7 @@ bool CPath::DirectoryCreate(bool bCreateIntermediates /*= TRUE*/) WriteTrace(TracePath, TraceDebug, "Create %s", PathText.c_str()); bSuccess = ::CreateDirectory(stdstr(PathText).ToUTF16().c_str(), nullptr) != 0; #else - GetDirectory(PathText);7 + GetDirectory(PathText); StripTrailingBackslash(PathText); WriteTrace(TracePath, TraceDebug, "Create %s", PathText.c_str()); bSuccess = mkdir(PathText.c_str(), S_IRWXU) == 0; diff --git a/Source/Project64/UserInterface/MainMenu.cpp b/Source/Project64/UserInterface/MainMenu.cpp index fb085abf1..b4db107f1 100644 --- a/Source/Project64/UserInterface/MainMenu.cpp +++ b/Source/Project64/UserInterface/MainMenu.cpp @@ -230,7 +230,7 @@ void CMainMenu::OnSaveAs(HWND hWnd) memset(&openfilename, 0, sizeof(openfilename)); 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.hwndOwner = (HWND)hWnd;