File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,9 @@ std::wstring GetModuleDir(HMODULE hMod /*= nullptr*/)
127
127
return GetParentDirectory (GetModulePath (hMod));
128
128
}
129
129
130
- class ExplorerCommandBase : public RuntimeClass <RuntimeClassFlags<WinRtClassicComMix | InhibitRoOriginateError>, IExplorerCommand, IObjectWithSite>
130
+ // note: for the top context menu, 'ClassicCom' is required since 'WinRtClassicComMix' will lead to
131
+ // IOleWindow->GetWindow(&hWnd) to return a null hwnd.
132
+ class ExplorerCommandBase : public RuntimeClass <RuntimeClassFlags<ClassicCom | InhibitRoOriginateError>, IExplorerCommand, IObjectWithSite>
131
133
{
132
134
public:
133
135
virtual const wchar_t * Title (IShellItemArray* items) = 0;
@@ -291,9 +293,9 @@ class __declspec(uuid("3C557AFF-6181-4BBC-937D-E2FE8844DD49")) GrepWinExplorerCo
291
293
}
292
294
}
293
295
294
- path = L" /searchpath:\" " + path + L" \" " ;
296
+ path = L" /searchpath:\" " + path + L" \" " ;
295
297
296
- // try to launch the exe with the explorer instance:
298
+ // try to launch the exe with the explorer instance:
297
299
// this avoids that the exe is started with the identity of this dll,
298
300
// starting it as if it was started the normal way.
299
301
bool execSucceeded = false ;
You can’t perform that action at this time.
0 commit comments