2021-12-12 20:04:13 +00:00
|
|
|
// Copyright 2021 Dolphin Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#include "HRWrap.h"
|
|
|
|
|
2023-01-23 14:09:01 +00:00
|
|
|
#include <winrt/base.h>
|
2021-12-12 20:04:13 +00:00
|
|
|
|
|
|
|
namespace Common
|
|
|
|
{
|
|
|
|
std::string GetHResultMessage(HRESULT hr)
|
|
|
|
{
|
2023-01-23 14:09:01 +00:00
|
|
|
auto err = winrt::hresult_error(hr);
|
|
|
|
return winrt::to_string(err.message());
|
2021-12-12 20:04:13 +00:00
|
|
|
}
|
|
|
|
} // namespace Common
|