From d3214188d584c8067a7ec43f145e04c47366f10b Mon Sep 17 00:00:00 2001 From: mjk Date: Fri, 19 Mar 2021 21:48:26 +0000 Subject: [PATCH] use lower-case 0x prefix for hresult code formatting everywhere --- plugins/windows-notification/api/src/shortcutcreator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/windows-notification/api/src/shortcutcreator.cpp b/plugins/windows-notification/api/src/shortcutcreator.cpp index 0412769c..d407046f 100644 --- a/plugins/windows-notification/api/src/shortcutcreator.cpp +++ b/plugins/windows-notification/api/src/shortcutcreator.cpp @@ -59,7 +59,7 @@ namespace { #define checked(func, args) \ if (const auto hr = ((func)args); FAILED(hr)) \ { \ - g_warning("%s%s failed: hresult %#08" PRIX32, \ + g_warning("%s%s failed: hresult 0x%08" PRIX32, \ #func, #args, static_cast(hr)); \ winrt::throw_hresult(hr); \ } @@ -76,7 +76,7 @@ struct property ~property() { if (const auto hr = ::PropVariantClear(&var); FAILED(hr)) - g_critical("PropVariantClear failed: hresult %#08" PRIX32, + g_critical("PropVariantClear failed: hresult 0x%08" PRIX32, static_cast(hr)); }