We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9958c7 commit 0aa2e82Copy full SHA for 0aa2e82
dll/win32/browseui/shellfind/CFindFolder.cpp
@@ -455,6 +455,8 @@ DWORD WINAPI CFindFolder::SearchThreadProc(LPVOID lpParameter)
455
{
456
_SearchData *data = static_cast<_SearchData*>(lpParameter);
457
458
+ HRESULT hrCoInit = CoInitializeEx(NULL, COINIT_MULTITHREADED);
459
+
460
data->pFindFolder->NotifyConnections(DISPID_SEARCHSTART);
461
462
UINT uTotalFound = RecursiveFind(data->szPath, data);
@@ -469,6 +471,9 @@ DWORD WINAPI CFindFolder::SearchThreadProc(LPVOID lpParameter)
469
471
CloseHandle(data->hStopEvent);
470
472
delete data;
473
474
+ if (SUCCEEDED(hrCoInit))
475
+ CoUninitialize();
476
477
return 0;
478
}
479
0 commit comments