summaryrefslogtreecommitdiff
path: root/Source/Core/Common/HRWrap.cpp
blob: 54fda4a89034ec7e0e5cdee6227d9f6d43507413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2021 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#include "HRWrap.h"

namespace Common
{
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