Revision | 29475 (tree) |
---|---|
Time | 2022-11-16 02:44:34 |
Author | stefankueng |
return GUID_NULL as the canonical uid
@@ -219,7 +219,7 @@ | ||
219 | 219 | HRESULT __stdcall CExplorerCommand::GetCanonicalName(GUID *pguidCommandName) |
220 | 220 | { |
221 | 221 | CTraceToOutputDebugString::Instance()(__FUNCTION__); |
222 | - *pguidCommandName = __uuidof(this); | |
222 | + *pguidCommandName = GUID_NULL; | |
223 | 223 | return S_OK; |
224 | 224 | } |
225 | 225 |
@@ -228,7 +228,7 @@ | ||
228 | 228 | CTraceToOutputDebugString::Instance()(__FUNCTION__ L": title: %s\n", m_title.c_str()); |
229 | 229 | *pCmdState = ECS_ENABLED; |
230 | 230 | if (m_title.empty()) |
231 | - return E_FAIL; | |
231 | + *pCmdState = ECS_DISABLED; | |
232 | 232 | return S_OK; |
233 | 233 | } |
234 | 234 |
@@ -278,7 +278,7 @@ | ||
278 | 278 | { |
279 | 279 | CTraceToOutputDebugString::Instance()(__FUNCTION__ L": title: %s\n", m_title.c_str()); |
280 | 280 | if (m_subItems.empty()) |
281 | - return E_INVALIDARG; | |
281 | + return E_NOTIMPL; | |
282 | 282 | *ppEnum = new CExplorerCommandEnum(m_subItems); |
283 | 283 | (*ppEnum)->AddRef(); |
284 | 284 | return S_OK; |