Commit ae8a9126 authored by Michael Jung's avatar Michael Jung Committed by Alexandre Julliard

Initialize OLE instead of just COM, in order to enable Drag & Drop.

parent 2212d948
......@@ -679,11 +679,11 @@ LPITEMIDLIST WINAPI SHBrowseForFolderW (LPBROWSEINFOW lpbi)
info.lpBrowseInfo = lpbi;
info.hwndTreeView = NULL;
hr = CoInitialize(NULL);
hr = OleInitialize(NULL);
r = DialogBoxParamW( shell32_hInstance, swBrowseTemplateName, lpbi->hwndOwner,
BrsFolderDlgProc, (LPARAM)&info );
if (SUCCEEDED(hr))
CoUninitialize();
OleUninitialize();
if (!r)
return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment