summaryrefslogtreecommitdiff
path: root/plugins/ShellExt/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-29 19:53:35 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-29 19:53:35 +0000
commitc5f30ade3d3f2a9a3ba3952230a7f625f81b93ca (patch)
tree3d1a2bb8fc3894e056c521745af44843f46213d1 /plugins/ShellExt/src
parent40bf3c21dbdb8ff8aebdb8ca65b835fa0b63f1d1 (diff)
using Windows core to format UUIDs
git-svn-id: http://svn.miranda-ng.org/main/trunk@5885 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ShellExt/src')
-rw-r--r--plugins/ShellExt/src/shlcom.cpp14
1 files changed, 10 insertions, 4 deletions
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;
}