diff options
Diffstat (limited to 'Source/Core/Common/HRWrap.cpp')
| -rw-r--r-- | Source/Core/Common/HRWrap.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/Common/HRWrap.cpp b/Source/Core/Common/HRWrap.cpp index d815078fec..54fda4a890 100644 --- a/Source/Core/Common/HRWrap.cpp +++ b/Source/Core/Common/HRWrap.cpp @@ -3,8 +3,6 @@ #include "HRWrap.h" -#include <winrt/base.h> - namespace Common { std::string GetHResultMessage(HRESULT hr) @@ -12,4 +10,8 @@ std::string GetHResultMessage(HRESULT hr) auto err = winrt::hresult_error(hr); return winrt::to_string(err.message()); } +std::string GetHResultMessage(const winrt::hresult& hr) +{ + return GetHResultMessage(hr.value); +} } // namespace Common |
