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

This commit is contained in:
Michael Jung 2005-11-23 15:15:16 +01:00 committed by Alexandre Julliard
parent 2212d9484f
commit ae8a912605
1 changed files with 2 additions and 2 deletions

View File

@ -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;