Commit 01593894 authored by Alexandre Julliard's avatar Alexandre Julliard

browseui: Make sure that common controls are loaded before creating the dialog.

parent cdaf3c00
MODULE = browseui.dll
IMPORTS = uuid ole32 user32 advapi32
IMPORTS = uuid ole32 comctl32 user32 advapi32
EXTRADEFS = -DCOM_NO_WINDOWS_H
C_SRCS = \
......
......@@ -304,6 +304,7 @@ static ULONG WINAPI ProgressDialog_Release(IProgressDialog *iface)
static HRESULT WINAPI ProgressDialog_StartProgressDialog(IProgressDialog *iface, HWND hwndParent, IUnknown *punkEnableModeless, DWORD dwFlags, LPCVOID reserved)
{
static const INITCOMMONCONTROLSEX init = { sizeof(init), ICC_ANIMATE_CLASS };
ProgressDialog *This = impl_from_IProgressDialog(iface);
struct create_params params;
HANDLE hThread;
......@@ -316,6 +317,8 @@ static HRESULT WINAPI ProgressDialog_StartProgressDialog(IProgressDialog *iface,
if (dwFlags & PROGDLG_NOTIME)
FIXME("Flags PROGDLG_NOTIME not supported\n");
InitCommonControlsEx( &init );
EnterCriticalSection(&This->cs);
if (This->hwnd)
......
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