mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
Windows: log more descriptive errors
This commit is contained in:
parent
8409979dc5
commit
92ae57c9ee
8 changed files with 28 additions and 10 deletions
|
|
@ -54,9 +54,9 @@ LOG_CHANNEL(perf_log, "PERF");
|
|||
namespace utils
|
||||
{
|
||||
#ifdef _WIN32
|
||||
std::string pdh_error(PDH_STATUS status)
|
||||
fmt::win_error pdh_error(PDH_STATUS status)
|
||||
{
|
||||
return fmt::win_error_to_string(status, LoadLibrary(L"pdh.dll"));
|
||||
return fmt::win_error{static_cast<unsigned long>(status), LoadLibrary(L"pdh.dll")};
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue