summaryrefslogtreecommitdiff
path: root/Source/Core/Common/HRWrap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/HRWrap.cpp')
-rw-r--r--Source/Core/Common/HRWrap.cpp6
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