From 110dc260d0af411fc0b62fbcd0063f361e376247 Mon Sep 17 00:00:00 2001 From: Mark Street Date: Wed, 25 Oct 2023 22:00:59 +0100 Subject: [PATCH] update comment --- dll/ole32.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dll/ole32.cpp b/dll/ole32.cpp index 9d81416..6963104 100644 --- a/dll/ole32.cpp +++ b/dll/ole32.cpp @@ -20,11 +20,10 @@ namespace ole32 { const GUID *riid, void **ppv ) { - // when license.dat is missing: - // rclsid = CLSID_ShellLink (0x21401), riid = IID_IShellLinkA (0x214ee) - // and then it crashes with a null pointer deref DEBUG_LOG("CoCreateInstance 0x%x %p %d 0x%x %p\n", rclsid->Data1, pUnkOuter, dwClsContext, riid->Data1, *ppv); *ppv = 0; + // E_POINTER is returned when ppv is NULL, which isn't true here, but returning 1 results + // in a segfault with mwcceppc.exe when is told to include directories that do not exist. return 0x80004003; // E_POINTER } }