From c5f30ade3d3f2a9a3ba3952230a7f625f81b93ca Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 29 Aug 2013 19:53:35 +0000 Subject: using Windows core to format UUIDs git-svn-id: http://svn.miranda-ng.org/main/trunk@5885 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ShellExt/src/shlcom.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'plugins/ShellExt') diff --git a/plugins/ShellExt/src/shlcom.cpp b/plugins/ShellExt/src/shlcom.cpp index c2a0e0d8f1..7f37daedd2 100644 --- a/plugins/ShellExt/src/shlcom.cpp +++ b/plugins/ShellExt/src/shlcom.cpp @@ -2,6 +2,8 @@ #include "shlcom.h" #include "shlicons.h" +#pragma comment(lib, "rpcrt4.lib") + static bool VistaOrLater; struct SHLCOM @@ -605,8 +607,10 @@ HRESULT TShlComRec::QueryInterface(REFIID riid, void **ppvObject) } *ppvObject = NULL; - logA("TShlComRec[%p] failed as {%08x-%04x-%04x-%08x%08x}\n", - riid.Data1, riid.Data2, riid.Data3, &riid.Data4[0], &riid.Data4[4]); + RPC_CSTR szGuid; + UuidToStringA(&riid, &szGuid); + logA("TShlComRec[%p] failed as {%s}\n", this, szGuid); + RpcStringFreeA(&szGuid); return CLASS_E_CLASSNOTAVAILABLE; } @@ -1534,8 +1538,10 @@ STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) } *ppv = NULL; - logA("DllGetClassObject {%08x-%04x-%04x-%08x%08x} failed\n", - rclsid.Data1, rclsid.Data2, rclsid.Data3, &rclsid.Data4[0], &rclsid.Data4[4]); + RPC_CSTR szGuid; + UuidToStringA(&riid, &szGuid); + logA("DllGetClassObject {%08x-%04x-%04x-%08x%08x} failed\n", szGuid); + RpcStringFreeA(&szGuid); return CLASS_E_CLASSNOTAVAILABLE; } -- cgit v1.2.3