CoreCon: fix message output
authorAndrew Knight <andrew.knight@digia.com>
Wed, 19 Feb 2014 09:26:24 +0000 (11:26 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 19 Feb 2014 15:19:56 +0000 (16:19 +0100)
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 <joerg.bornemann@digia.com>
src/shared/corecon/corecon.cpp

index 558e8b1..9af5f0e 100644 (file)
@@ -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));