Initialize OLE instead of COM only in order to enable Drag and Drop.

oldstable
Michael Jung 2005-11-23 15:14:25 +01:00 committed by Alexandre Julliard
parent 22a238363e
commit 2212d9484f
1 changed files with 2 additions and 2 deletions

View File

@ -283,7 +283,7 @@ static BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos)
}
/* Some shell namespace extensions depend on COM being initialized. */
hr = CoInitialize(NULL);
hr = OleInitialize(NULL);
lRes = DialogBoxIndirectParamA(COMDLG32_hInstance,
(LPDLGTEMPLATEA) template,
@ -291,7 +291,7 @@ static BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos)
FileOpenDlgProc95,
(LPARAM) fodInfos);
if (SUCCEEDED(hr))
CoUninitialize();
OleUninitialize();
/* Unable to create the dialog */
if( lRes == -1)