[UI] Log unsuccessful SPDA result as unsigned.

[UI] Log unsuccessful SetProcessDpiAwareness result as unsigned.
This commit is contained in:
gibbed 2021-05-01 17:23:00 -05:00 committed by Rick Gibbed
parent 653931ec8f
commit 46ee68eb1d
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,8 @@ bool Win32Window::OnCreate() {
auto spda = (decltype(&SetProcessDpiAwareness))SetProcessDpiAwareness_;
auto res = spda(PROCESS_PER_MONITOR_DPI_AWARE);
if (res != S_OK) {
XELOGW("Failed to set process DPI awareness. (code = 0x{:08X})", res);
XELOGW("Failed to set process DPI awareness. (code = 0x{:08X})",
static_cast<uint32_t>(res));
}
}