From 605dfe80e7261cd2ee213cff8179eab597acb169 Mon Sep 17 00:00:00 2001 From: BreadFish64 Date: Sat, 9 Mar 2019 19:15:35 -0600 Subject: [PATCH] appease clang format --- src/common/file_util.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index e5f8eb8990..62a9a5b95c 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -543,11 +543,12 @@ std::string GetCurrentDir() { // Get the current working directory (getcwd uses malloc) #ifdef _WIN32 wchar_t* dir; - if (!(dir = _wgetcwd(nullptr, 0))) { + if (!(dir = _wgetcwd(nullptr, 0))) #else char* dir; - if (!(dir = getcwd(nullptr, 0))) { + if (!(dir = getcwd(nullptr, 0))) #endif + { LOG_ERROR(Common_Filesystem, "GetCurrentDirectory failed: {}", GetLastErrorMsg()); return nullptr; }