Jacek Caban : mshtml: Get DISPID_AMBIENT_SILENT and DISPID_AMBIENT_OFFLINECONNECTED property in IPersistMoniker ::Load.
Module: wine Branch: master Commit: f09890eade58d93b62212a0f1c1047452e0746a6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f09890eade58d93b62212a0f1c... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Nov 2 17:30:27 2006 +0100 mshtml: Get DISPID_AMBIENT_SILENT and DISPID_AMBIENT_OFFLINECONNECTED property in IPersistMoniker::Load. --- dlls/mshtml/persist.c | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/dlls/mshtml/persist.c b/dlls/mshtml/persist.c index a52f015..7b35e96 100644 --- a/dlls/mshtml/persist.c +++ b/dlls/mshtml/persist.c @@ -30,6 +30,7 @@ #include "winbase.h" #include "winuser.h" #include "ole2.h" #include "shlguid.h" +#include "idispids.h" #include "wine/debug.h" #include "wine/unicode.h" @@ -219,6 +220,27 @@ static HRESULT WINAPI PersistMoniker_Loa } } + if(This->client) { + VARIANT silent, offline; + + hres = get_client_disp_property(This->client, DISPID_AMBIENT_SILENT, &silent); + if(SUCCEEDED(hres)) { + if(V_VT(&silent) != VT_BOOL) + WARN("V_VT(silent) = %d\n", V_VT(&silent)); + else if(V_BOOL(&silent)) + FIXME("silent == true\n"); + } + + hres = get_client_disp_property(This->client, + DISPID_AMBIENT_OFFLINEIFNOTCONNECTED, &offline); + if(SUCCEEDED(hres)) { + if(V_VT(&silent) != VT_BOOL) + WARN("V_VT(offline) = %d\n", V_VT(&silent)); + else if(V_BOOL(&silent)) + FIXME("offline == true\n"); + } + } + bscallback = create_bscallback(pimkName); task = mshtml_alloc(sizeof(task_t));
participants (1)
-
Alexandre Julliard