Files
dolphin/Source/Core/Common/HRWrap.cpp
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
377 B
C++
Raw Normal View History

2021-12-12 12:04:13 -08:00
// 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());
2021-12-12 12:04:13 -08:00
}
2023-06-11 21:51:49 -05:00
std::string GetHResultMessage(const winrt::hresult& hr)
{
return GetHResultMessage(hr.value);
}
2021-12-12 12:04:13 -08:00
} // namespace Common