Commit 908fa3eb authored by Alexandre Julliard's avatar Alexandre Julliard

comdlg32: Correctly initialize the item dialog structure.

parent 9b2dd2db
...@@ -4597,7 +4597,7 @@ static HRESULT FileDialog_constructor(IUnknown *pUnkOuter, REFIID riid, void **p ...@@ -4597,7 +4597,7 @@ static HRESULT FileDialog_constructor(IUnknown *pUnkOuter, REFIID riid, void **p
if(pUnkOuter) if(pUnkOuter)
return CLASS_E_NOAGGREGATION; return CLASS_E_NOAGGREGATION;
fdimpl = HeapAlloc(GetProcessHeap(), 0, sizeof(FileDialogImpl)); fdimpl = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(FileDialogImpl));
if(!fdimpl) if(!fdimpl)
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
...@@ -4628,27 +4628,7 @@ static HRESULT FileDialog_constructor(IUnknown *pUnkOuter, REFIID riid, void **p ...@@ -4628,27 +4628,7 @@ static HRESULT FileDialog_constructor(IUnknown *pUnkOuter, REFIID riid, void **p
fdimpl->custom_okbutton = StrDupW(buf); fdimpl->custom_okbutton = StrDupW(buf);
} }
fdimpl->filterspecs = NULL;
fdimpl->filterspec_count = 0;
fdimpl->filetypeindex = 0;
fdimpl->psia_selection = fdimpl->psia_results = NULL;
fdimpl->psi_setfolder = fdimpl->psi_folder = NULL;
list_init(&fdimpl->events_clients); list_init(&fdimpl->events_clients);
fdimpl->events_next_cookie = 0;
fdimpl->dlg_hwnd = NULL;
fdimpl->peb = NULL;
fdimpl->set_filename = NULL;
fdimpl->default_ext = NULL;
fdimpl->custom_cancelbutton = fdimpl->custom_filenamelabel = NULL;
fdimpl->client_guid = GUID_NULL;
fdimpl->hmenu_opendropdown = NULL;
fdimpl->hfont_opendropdown = NULL;
/* FIXME: The default folder setting should be restored for the /* FIXME: The default folder setting should be restored for the
* application if it was previously set. */ * application if it was previously set. */
......
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