ieframe: Use BOOL instead of VARIANT_BOOL in on_commandstate_change().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b73f9d2e46
commit
2cebbfc5e5
|
@ -80,7 +80,7 @@ void abort_dochost_tasks(DocHost *This, task_proc_t proc)
|
|||
}
|
||||
}
|
||||
|
||||
void on_commandstate_change(DocHost *doc_host, LONG command, VARIANT_BOOL enable)
|
||||
void on_commandstate_change(DocHost *doc_host, LONG command, BOOL enable)
|
||||
{
|
||||
DISPPARAMS dispparams;
|
||||
VARIANTARG params[2];
|
||||
|
|
|
@ -278,7 +278,7 @@ HRESULT dochost_object_available(DocHost*,IUnknown*) DECLSPEC_HIDDEN;
|
|||
void set_doc_state(DocHost*,READYSTATE) DECLSPEC_HIDDEN;
|
||||
void deactivate_document(DocHost*) DECLSPEC_HIDDEN;
|
||||
void create_doc_view_hwnd(DocHost*) DECLSPEC_HIDDEN;
|
||||
void on_commandstate_change(DocHost*,LONG,VARIANT_BOOL) DECLSPEC_HIDDEN;
|
||||
void on_commandstate_change(DocHost*,LONG,BOOL) DECLSPEC_HIDDEN;
|
||||
void notify_download_state(DocHost*,BOOL) DECLSPEC_HIDDEN;
|
||||
void update_navigation_commands(DocHost *dochost) DECLSPEC_HIDDEN;
|
||||
|
||||
|
|
|
@ -885,8 +885,8 @@ static HRESULT navigate_bsc(DocHost *This, BindStatusCallback *bsc, IMoniker *mo
|
|||
}
|
||||
|
||||
notify_download_state(This, TRUE);
|
||||
on_commandstate_change(This, CSC_NAVIGATEBACK, VARIANT_FALSE);
|
||||
on_commandstate_change(This, CSC_NAVIGATEFORWARD, VARIANT_FALSE);
|
||||
on_commandstate_change(This, CSC_NAVIGATEBACK, FALSE);
|
||||
on_commandstate_change(This, CSC_NAVIGATEFORWARD, FALSE);
|
||||
|
||||
if(This->document)
|
||||
deactivate_document(This);
|
||||
|
|
|
@ -471,8 +471,8 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, LPOLECLIENTSITE
|
|||
release_client_site(This);
|
||||
|
||||
if(!pClientSite) {
|
||||
on_commandstate_change(&This->doc_host, CSC_NAVIGATEBACK, VARIANT_FALSE);
|
||||
on_commandstate_change(&This->doc_host, CSC_NAVIGATEFORWARD, VARIANT_FALSE);
|
||||
on_commandstate_change(&This->doc_host, CSC_NAVIGATEBACK, FALSE);
|
||||
on_commandstate_change(&This->doc_host, CSC_NAVIGATEFORWARD, FALSE);
|
||||
|
||||
if(This->doc_host.document)
|
||||
deactivate_document(&This->doc_host);
|
||||
|
|
Loading…
Reference in New Issue