diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2016-06-24 10:43:46 +0200 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2016-06-24 10:43:46 +0200 |
| commit | 3570c7f03a2aa90aa634f96c0af1969af610f14d (patch) | |
| tree | 4252e03c0e853ba7cffe022937698c854ad0eaa9 /Source/Core/Common/Misc.cpp | |
| parent | 2115e8a4a6814e32107b5205ff5c95bbd3c6e99c (diff) | |
Reformat all the things. Have fun with merge conflicts.
Diffstat (limited to 'Source/Core/Common/Misc.cpp')
| -rw-r--r-- | Source/Core/Common/Misc.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Source/Core/Common/Misc.cpp b/Source/Core/Common/Misc.cpp index 849fa78c75..870294092c 100644 --- a/Source/Core/Common/Misc.cpp +++ b/Source/Core/Common/Misc.cpp @@ -13,18 +13,17 @@ // This function might change the error code. std::string GetLastErrorMsg() { - const size_t buff_size = 256; - char err_str[buff_size]; + const size_t buff_size = 256; + char err_str[buff_size]; #ifdef _WIN32 - FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, GetLastError(), - MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - err_str, buff_size, nullptr); + FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, GetLastError(), + MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), err_str, buff_size, nullptr); #else - // Thread safe (XSI-compliant) - if (strerror_r(errno, err_str, buff_size)) - return ""; + // Thread safe (XSI-compliant) + if (strerror_r(errno, err_str, buff_size)) + return ""; #endif - return std::string(err_str); + return std::string(err_str); } |
