From c6ee2c4019b3f95e69c06ae55bf0df8f02d0e566 Mon Sep 17 00:00:00 2001 From: Andrew Knight Date: Wed, 19 Feb 2014 11:26:24 +0200 Subject: [PATCH] CoreCon: fix message output Some HRESULTs use 0x973 as the origin, so adding that to the error formatter corrects some error messages that would otherwise come across as "??". Change-Id: I1d8520088c37cda954a94b3bcd0d15504b7a0757 Reviewed-by: Joerg Bornemann --- src/shared/corecon/corecon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/corecon/corecon.cpp b/src/shared/corecon/corecon.cpp index 558e8b1..9af5f0e 100644 --- a/src/shared/corecon/corecon.cpp +++ b/src/shared/corecon/corecon.cpp @@ -344,7 +344,7 @@ QString CoreConServer::formatError(HRESULT hr) const wchar_t error[1024]; HMODULE module = 0; DWORD origin = HRESULT_FACILITY(hr); - if (origin == 0x974) + if (origin == 0x973 || origin == 0x974) module = d->langModule; if (module) LoadString(module, HRESULT_CODE(hr), error, sizeof(error)/sizeof(wchar_t)); -- 2.7.4