Signed-off-by: Eric Pouech eric.pouech@gmail.com
--- dlls/mshtml/tests/Makefile.in | 1 dlls/mshtml/tests/activex.c | 216 ++-- dlls/mshtml/tests/dom.c | 1880 ++++++++++++++++++------------------ dlls/mshtml/tests/events.c | 450 ++++----- dlls/mshtml/tests/htmldoc.c | 852 ++++++++-------- dlls/mshtml/tests/htmllocation.c | 48 - dlls/mshtml/tests/misc.c | 40 - dlls/mshtml/tests/protocol.c | 304 +++--- dlls/mshtml/tests/script.c | 336 +++--- dlls/mshtml/tests/style.c | 1302 ++++++++++++------------- dlls/mshtml/tests/xmlhttprequest.c | 216 ++-- 11 files changed, 2822 insertions(+), 2823 deletions(-)
diff --git a/dlls/mshtml/tests/Makefile.in b/dlls/mshtml/tests/Makefile.in index 395a484118f..fac78316986 100644 --- a/dlls/mshtml/tests/Makefile.in +++ b/dlls/mshtml/tests/Makefile.in @@ -1,4 +1,3 @@ -EXTRADEFS = -DWINE_NO_LONG_TYPES TESTDLL = mshtml.dll IMPORTS = ole32 oleaut32 wininet user32 urlmon gdi32 advapi32 C_SRCS = \ diff --git a/dlls/mshtml/tests/activex.c b/dlls/mshtml/tests/activex.c index 23e4b00cac0..df4038d655c 100644 --- a/dlls/mshtml/tests/activex.c +++ b/dlls/mshtml/tests/activex.c @@ -189,7 +189,7 @@ static void _test_ifaces(unsigned line, IUnknown *iface, REFIID *iids)
for(piid = iids; *piid; piid++) { hres = IUnknown_QueryInterface(iface, *piid, (void**)&unk); - ok_(__FILE__,line) (hres == S_OK, "Could not get %s interface: %08x\n", wine_dbgstr_guid(*piid), hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get %s interface: %08lx\n", wine_dbgstr_guid(*piid), hres); if(SUCCEEDED(hres)) IUnknown_Release(unk); } @@ -208,10 +208,10 @@ static void set_plugin_readystate(READYSTATE state) plugin_readystate = state;
hres = IOleClientSite_QueryInterface(client_site, &IID_IPropertyNotifySink, (void**)&prop_notif); - ok(hres == S_OK, "Could not get IPropertyNotifySink iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IPropertyNotifySink iface: %08lx\n", hres);
hres = IPropertyNotifySink_OnChanged(prop_notif, DISPID_READYSTATE); - ok(hres == S_OK, "OnChanged(DISPID_READYSTATE) failed: %08x\n", hres); + ok(hres == S_OK, "OnChanged(DISPID_READYSTATE) failed: %08lx\n", hres);
IPropertyNotifySink_Release(prop_notif); } @@ -223,14 +223,14 @@ static void test_mon_displayname(IMoniker *mon, const WCHAR *exname, const WCHAR HRESULT hres;
hres = IMoniker_GetDisplayName(mon, NULL, NULL, &display_name); - ok(hres == S_OK, "GetDisplayName failed: %08x\n", hres); + ok(hres == S_OK, "GetDisplayName failed: %08lx\n", hres); ok(!lstrcmpW(display_name, exname) || broken(broken_name && !lstrcmpW(display_name, broken_name)), "display_name = %s\n", wine_dbgstr_w(display_name)); CoTaskMemFree(display_name);
hres = IMoniker_IsSystemMoniker(mon, &mksys); - ok(hres == S_OK, "IsSystemMoniker failed: %08x\n", hres); - ok(mksys == MKSYS_URLMONIKER, "mksys = %d\n", mksys); + ok(hres == S_OK, "IsSystemMoniker failed: %08lx\n", hres); + ok(mksys == MKSYS_URLMONIKER, "mksys = %ld\n", mksys); }
static LRESULT WINAPI plugin_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) @@ -314,13 +314,13 @@ static HRESULT WINAPI ConnectionPoint_Advise(IConnectionPoint *iface, IUnknown * CHECK_EXPECT(Advise);
hres = IUnknown_QueryInterface(pUnkSink, &IID_IDispatch, (void**)&sink_disp); - ok(hres == S_OK, "Could not get IDispatch iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDispatch iface: %08lx\n", hres);
hres = IUnknown_QueryInterface(pUnkSink, &IID_IDispatchEx, (void**)&dispex); - ok(hres == E_NOINTERFACE, "QueryInterface(IID_IDispatchEx) returned: %08x\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface(IID_IDispatchEx) returned: %08lx\n", hres);
hres = IUnknown_QueryInterface(pUnkSink, &DIID_DispActiveXTest, (void**)&ax_test); - ok(hres == S_OK, "Could not get DispActiveXTest iface: %08x\n", hres); + ok(hres == S_OK, "Could not get DispActiveXTest iface: %08lx\n", hres); DispActiveXTest_Release(ax_test);
*pdwCookie = 0xdeadbeef; @@ -331,7 +331,7 @@ static HRESULT WINAPI ConnectionPoint_Unadvise(IConnectionPoint *iface, DWORD dw { CHECK_EXPECT(Unadvise);
- ok(dwCookie == 0xdeadbeef, "dwCookie = %x\n", dwCookie); + ok(dwCookie == 0xdeadbeef, "dwCookie = %lx\n", dwCookie);
if(sink_disp) { IDispatch_Release(sink_disp); @@ -396,7 +396,7 @@ static HRESULT WINAPI OleControl_OnAmbientPropertyChange(IOleControl *iface, DIS CHECK_EXPECT2(OnAmbientPropertyChange_UNKNOWN); break; default: - ok(0, "unexpected call %d\n", dispID); + ok(0, "unexpected call %ld\n", dispID); }
return S_OK; @@ -443,15 +443,15 @@ static HRESULT WINAPI QuickActivate_QuickActivate(IQuickActivate *iface, QACONTA CHECK_EXPECT(QuickActivate);
ok(container != NULL, "container == NULL\n"); - ok(container->cbSize == sizeof(*container), "container->cbSize = %d\n", container->cbSize); + ok(container->cbSize == sizeof(*container), "container->cbSize = %ld\n", container->cbSize); ok(container->pClientSite != NULL, "container->pClientSite == NULL\n"); ok(container->pAdviseSink != NULL, "container->pAdviseSink == NULL\n"); ok(container->pPropertyNotifySink != NULL, "container->pPropertyNotifySink == NULL\n"); ok(!container->pUnkEventSink, "container->pUnkEventSink != NULL\n"); ok(container->dwAmbientFlags == (QACONTAINER_SUPPORTSMNEMONICS|QACONTAINER_MESSAGEREFLECT|QACONTAINER_USERMODE), - "container->dwAmbientFlags = %x\n", container->dwAmbientFlags); + "container->dwAmbientFlags = %lx\n", container->dwAmbientFlags); if(have_container) - ok(!container->colorFore, "container->colorFore = %d\n", container->colorFore); /* FIXME */ + ok(!container->colorFore, "container->colorFore = %ld\n", container->colorFore); /* FIXME */ todo_wine ok(container->colorBack, "container->colorBack == 0\n"); /* FIXME */ if(have_container) @@ -460,20 +460,20 @@ static HRESULT WINAPI QuickActivate_QuickActivate(IQuickActivate *iface, QACONTA ok(!container->pFont, "container->pFont = %p\n", container->pFont); todo_wine ok(container->pUndoMgr != NULL, "container->pUndoMgr == NULL\n"); - ok(!container->dwAppearance, "container->dwAppearance = %x\n", container->dwAppearance); + ok(!container->dwAppearance, "container->dwAppearance = %lx\n", container->dwAppearance); if(have_container) - ok(!container->lcid, "container->lcid = %x\n", container->lcid); + ok(!container->lcid, "container->lcid = %lx\n", container->lcid); ok(!container->hpal, "container->hpal = %p\n", container->hpal); ok(!container->pBindHost, "container->pBindHost != NULL\n"); ok(!container->pOleControlSite, "container->pOleControlSite != NULL\n"); ok(!container->pServiceProvider, "container->pServiceProvider != NULL\n");
- ok(control->cbSize == sizeof(*control), "control->cbSize = %d\n", control->cbSize); - ok(!control->dwMiscStatus, "control->dwMiscStatus = %x\n", control->dwMiscStatus); - ok(!control->dwViewStatus, "control->dwViewStatus = %x\n", control->dwViewStatus); - ok(!control->dwEventCookie, "control->dwEventCookie = %x\n", control->dwEventCookie); - ok(!control->dwPropNotifyCookie, "control->dwPropNotifyCookie = %x\n", control->dwPropNotifyCookie); - ok(!control->dwPointerActivationPolicy, "control->dwPointerActivationPolicy = %x\n", control->dwPointerActivationPolicy); + ok(control->cbSize == sizeof(*control), "control->cbSize = %ld\n", control->cbSize); + ok(!control->dwMiscStatus, "control->dwMiscStatus = %lx\n", control->dwMiscStatus); + ok(!control->dwViewStatus, "control->dwViewStatus = %lx\n", control->dwViewStatus); + ok(!control->dwEventCookie, "control->dwEventCookie = %lx\n", control->dwEventCookie); + ok(!control->dwPropNotifyCookie, "control->dwPropNotifyCookie = %lx\n", control->dwPropNotifyCookie); + ok(!control->dwPointerActivationPolicy, "control->dwPointerActivationPolicy = %lx\n", control->dwPointerActivationPolicy);
ok(iface_cmp((IUnknown*)container->pClientSite, (IUnknown*)container->pAdviseSink), "container->pClientSite != container->pAdviseSink\n"); @@ -570,20 +570,20 @@ static HRESULT WINAPI PersistPropertyBag_Load(IPersistPropertyBag *face, IProper
V_VT(&v) = VT_BSTR; hres = IPropertyBag_Read(pPropBag, param_nameW, &v, NULL); - ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(hres == S_OK, "Read failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(&v) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"param_value"), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
V_VT(&v) = VT_I4; V_I4(&v) = 0xdeadbeef; hres = IPropertyBag_Read(pPropBag, param_nameW, &v, NULL); - ok(hres == DISP_E_TYPEMISMATCH, "Read failed: %08x, expected DISP_E_TYPEMISMATCH\n", hres); + ok(hres == DISP_E_TYPEMISMATCH, "Read failed: %08lx, expected DISP_E_TYPEMISMATCH\n", hres); ok(V_VT(&v) == VT_I4, "V_VT(&v) = %d\n", V_VT(&v)); - ok(V_I4(&v) == 0xdeadbeef, "V_I4(v) = %x\n", V_I4(&v)); + ok(V_I4(&v) == 0xdeadbeef, "V_I4(v) = %lx\n", V_I4(&v));
V_VT(&v) = VT_BSTR; hres = IPropertyBag_Read(pPropBag, num_paramW, &v, NULL); - ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(hres == S_OK, "Read failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(&v) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"3"), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v))); SysFreeString(V_BSTR(&v)); @@ -591,27 +591,27 @@ static HRESULT WINAPI PersistPropertyBag_Load(IPersistPropertyBag *face, IProper V_VT(&v) = VT_I4; V_I4(&v) = 0xdeadbeef; hres = IPropertyBag_Read(pPropBag, num_paramW, &v, NULL); - ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(hres == S_OK, "Read failed: %08lx\n", hres); ok(V_VT(&v) == VT_I4, "V_VT(&v) = %d\n", V_VT(&v)); - ok(V_I4(&v) == 3, "V_I4(v) = %x\n", V_I4(&v)); + ok(V_I4(&v) == 3, "V_I4(v) = %lx\n", V_I4(&v));
V_VT(&v) = VT_BSTR; V_BSTR(&v) = (BSTR)0xdeadbeef; hres = IPropertyBag_Read(pPropBag, no_paramW, &v, NULL); - ok(hres == E_INVALIDARG, "Read failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "Read failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(&v) = %d\n", V_VT(&v)); ok(V_BSTR(&v) == (BSTR)0xdeadbeef, "V_BSTR(v) = %p\n", V_BSTR(&v));
set_plugin_readystate(READYSTATE_INTERACTIVE);
hres = IOleClientSite_QueryInterface(client_site, &IID_IBindHost, (void**)&bind_host); - ok(hres == S_OK, "Could not get IBindHost iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IBindHost iface: %08lx\n", hres);
hres = IOleClientSite_QueryInterface(client_site, &IID_IServiceProvider, (void**)&sp); - ok(hres == S_OK, "Could not get IServiceProvider iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IServiceProvider iface: %08lx\n", hres);
hres = IServiceProvider_QueryService(sp, &SID_SBindHost, &IID_IBindHost, (void**)&bind_host2); - ok(hres == S_OK, "QueryService(SID_SBindHost) failed: %08x\n", hres); + ok(hres == S_OK, "QueryService(SID_SBindHost) failed: %08lx\n", hres); IServiceProvider_Release(sp);
ok(iface_cmp((IUnknown*)bind_host, (IUnknown*)bind_host2), "bind_host != bind_host2\n"); @@ -619,7 +619,7 @@ static HRESULT WINAPI PersistPropertyBag_Load(IPersistPropertyBag *face, IProper
mon = NULL; hres = IBindHost_CreateMoniker(bind_host, test_swfW, NULL, &mon, 0); - ok(hres == S_OK, "CreateMoniker failed: %08x\n", hres); + ok(hres == S_OK, "CreateMoniker failed: %08lx\n", hres); ok(mon != NULL, "mon == NULL\n"); test_mon_displayname(mon, L"about:test.swf", L"about:blanktest.swf"); IMoniker_Release(mon); @@ -628,7 +628,7 @@ static HRESULT WINAPI PersistPropertyBag_Load(IPersistPropertyBag *face, IProper
mon = NULL; hres = IOleClientSite_GetMoniker(client_site, OLEGETMONIKER_ONLYIFTHERE, OLEWHICHMK_CONTAINER, &mon); - ok(hres == S_OK, "GetMoniker failed: %08x\n", hres); + ok(hres == S_OK, "GetMoniker failed: %08lx\n", hres); ok(mon != NULL, "mon == NULL\n"); test_mon_displayname(mon, L"about:blank", NULL); IMoniker_Release(mon); @@ -782,7 +782,7 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID dispIdMember, REF */ return S_OK; default: - ok(0, "unexpected call %d\n", dispIdMember); + ok(0, "unexpected call %ld\n", dispIdMember); }
return E_NOTIMPL; @@ -927,8 +927,8 @@ static HRESULT WINAPI ViewObjectEx_SetAdvise(IViewObjectEx *iface, DWORD aspects { CHECK_EXPECT(SetAdvise);
- ok(aspects == DVASPECT_CONTENT, "aspects = %x\n", aspects); - ok(!advf, "advf = %x\n", advf); + ok(aspects == DVASPECT_CONTENT, "aspects = %lx\n", aspects); + ok(!advf, "advf = %lx\n", advf); ok(pAdvSink != NULL, "pAdvSink = NULL\n");
return S_OK; @@ -1046,7 +1046,7 @@ static HRESULT WINAPI OleObject_Close(IOleObject *iface, DWORD dwSaveOption) { CHECK_EXPECT(Close);
- ok(dwSaveOption == OLECLOSE_NOSAVE, "dwSaveOption = %d\n", dwSaveOption); + ok(dwSaveOption == OLECLOSE_NOSAVE, "dwSaveOption = %ld\n", dwSaveOption); return S_OK; }
@@ -1089,34 +1089,34 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, LPMSG lpms
CHECK_EXPECT(DoVerb);
- ok(iVerb == OLEIVERB_INPLACEACTIVATE, "iVerb = %d\n", iVerb); + ok(iVerb == OLEIVERB_INPLACEACTIVATE, "iVerb = %ld\n", iVerb); ok(!lpmsg, "lpmsg != NULL\n"); ok(pActiveSite != NULL, "pActiveSite == NULL\n"); - ok(!lindex, "lindex = %d\n", lindex); + ok(!lindex, "lindex = %ld\n", lindex); ok(hwndParent != NULL, "hwndParent == NULL\n"); ok(lprcPosRect != NULL, "lprcPosRect == NULL\n");
hres = IOleClientSite_QueryInterface(pActiveSite, &IID_IOleInPlaceSiteEx, (void**)&ip_site); - ok(hres == S_OK, "Could not get IOleInPlaceSiteEx iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IOleInPlaceSiteEx iface: %08lx\n", hres);
hres = IOleInPlaceSiteEx_CanInPlaceActivate(ip_site); - ok(hres == S_OK, "CanInPlaceActivate failed: %08x\n", hres); + ok(hres == S_OK, "CanInPlaceActivate failed: %08lx\n", hres);
SET_EXPECT(InPlaceObject_GetWindow); no_redraw = 0xdeadbeef; hres = IOleInPlaceSiteEx_OnInPlaceActivateEx(ip_site, &no_redraw, 0); - ok(hres == S_OK, "InPlaceActivateEx failed: %08x\n", hres); + ok(hres == S_OK, "InPlaceActivateEx failed: %08lx\n", hres); ok(!no_redraw, "no_redraw = %x\n", no_redraw); CHECK_CALLED(InPlaceObject_GetWindow);
no_redraw = 0xdeadbeef; hres = IOleInPlaceSiteEx_OnInPlaceActivateEx(ip_site, &no_redraw, 0); - ok(hres == S_OK, "InPlaceActivateEx failed: %08x\n", hres); + ok(hres == S_OK, "InPlaceActivateEx failed: %08lx\n", hres); ok(no_redraw == 0xdeadbeef, "no_redraw = %x\n", no_redraw);
hwnd = NULL; hres = IOleInPlaceSiteEx_GetWindow(ip_site, &hwnd); - ok(hres == S_OK, "GetWindow failed: %08x\n", hres); + ok(hres == S_OK, "GetWindow failed: %08lx\n", hres); ok(hwnd != NULL, "hwnd == NULL\n"); ok(hwnd == hwndParent, "hwnd != hwndParent\n");
@@ -1126,7 +1126,7 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, LPMSG lpms ip_uiwindow = NULL; frame_info.cb = sizeof(OLEINPLACEFRAMEINFO); hres = IOleInPlaceSiteEx_GetWindowContext(ip_site, &ip_frame, &ip_uiwindow, &pos_rect, &clip_rect, &frame_info); - ok(hres == S_OK, "GetWindowContext failed: %08x\n", hres); + ok(hres == S_OK, "GetWindowContext failed: %08lx\n", hres); ok(ip_frame != NULL, "ip_frame == NULL\n"); ok(ip_uiwindow != NULL, "ip_uiwindow == NULL\n"); ok((IOleInPlaceUIWindow*)ip_frame != ip_uiwindow, "ip_frame == ip_uiwindow\n"); @@ -1146,7 +1146,7 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, LPMSG lpms IOleInPlaceSiteEx_Release(ip_site);
hres = IOleClientSite_ShowObject(client_site); - ok(hres == S_OK, "ShowObject failed: %08x\n", hres); + ok(hres == S_OK, "ShowObject failed: %08lx\n", hres);
SET_EXPECT(InPlaceObject_GetWindow); SET_EXPECT(SetObjectRects); @@ -1217,7 +1217,7 @@ static HRESULT WINAPI OleObject_EnumAdvise(IOleObject *iface, IEnumSTATDATA **pp static HRESULT WINAPI OleObject_GetMiscStatus(IOleObject *iface, DWORD dwAspect, DWORD *pdwStatus) { CHECK_EXPECT(GetMiscStatus); - ok(dwAspect == DVASPECT_CONTENT, "dwAspect = %d\n", dwAspect); + ok(dwAspect == DVASPECT_CONTENT, "dwAspect = %ld\n", dwAspect); ok(pdwStatus != NULL, "pdwStatus == NULL\n"); *pdwStatus = OLEMISC_SETCLIENTSITEFIRST|OLEMISC_ACTIVATEWHENVISIBLE |OLEMISC_INSIDEOUT|OLEMISC_CANTLINKINSIDE|OLEMISC_RECOMPOSEONRESIZE; @@ -1301,10 +1301,10 @@ static HRESULT WINAPI OleInPlaceObject_InPlaceDeactivate(IOleInPlaceObjectWindow CHECK_EXPECT(InPlaceDeactivate);
hres = IOleClientSite_QueryInterface(client_site, &IID_IOleInPlaceSite, (void**)&ip_site); - ok(hres == S_OK, "Could not get IOleInPlaceSite iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IOleInPlaceSite iface: %08lx\n", hres);
hres = IOleInPlaceSite_OnInPlaceDeactivate(ip_site); - ok(hres == S_OK, "OnInPlaceDeactivate failed: %08x\n", hres); + ok(hres == S_OK, "OnInPlaceDeactivate failed: %08lx\n", hres);
IOleInPlaceSite_Release(ip_site); return S_OK; @@ -1520,9 +1520,9 @@ static void test_elem_dispex(IDispatchEx *dispex) hres = IDispatchEx_GetDispID(dispex, str, 0, &id); CHECK_CALLED(GetIDsOfNames_scriptprop); SysFreeString(str); - ok(hres == S_OK, "GetDispID failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID failed: %08lx\n", hres); todo_wine - ok(id == DISPID_SCRIPTPROP, "id = %d\n", id); + ok(id == DISPID_SCRIPTPROP, "id = %ld\n", id);
SET_EXPECT(Invoke_SECURITYCTX); SET_EXPECT(Invoke_SCRIPTPROP); @@ -1530,9 +1530,9 @@ static void test_elem_dispex(IDispatchEx *dispex) memset(&ei, 0, sizeof(ei)); V_VT(&v) = VT_EMPTY; hres = IDispatchEx_InvokeEx(dispex, id, LOCALE_NEUTRAL, DISPATCH_PROPERTYGET, &dp, &v, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&v) == VT_I4, "V_VT(v) = %d\n", V_VT(&v)); - ok(V_I4(&v) == 4, "V_I4(v) = %d\n", V_I4(&v)); + ok(V_I4(&v) == 4, "V_I4(v) = %ld\n", V_I4(&v)); CHECK_CALLED(Invoke_SECURITYCTX); CHECK_CALLED(Invoke_SCRIPTPROP); } @@ -1550,7 +1550,7 @@ static void test_iface_wrapping(IHTMLObjectElement *elem) SET_EXPECT(wrapped_Release); unk = (void*)0xdeadbeef; hres = IHTMLObjectElement_QueryInterface(elem, &IID_ITestActiveX, (void**)&unk); - ok(hres == S_OK, "QueryInterface(IID_ITestActiveX failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_ITestActiveX failed: %08lx\n", hres); CHECK_CALLED(QI_ITestActiveX); CHECK_CALLED(wrapped_AddRef); CHECK_CALLED(wrapped_Release); @@ -1568,17 +1568,17 @@ static void test_iface_wrapping(IHTMLObjectElement *elem)
SET_EXPECT(wrapped_func); hres = ((HRESULT (WINAPI*)(IUnknown*,int,double))vtbl[63])(unk, 10, 32.0); - ok(hres == S_OK, "wrapped_func returned %08x\n", hres); + ok(hres == S_OK, "wrapped_func returned %08lx\n", hres); CHECK_CALLED(wrapped_func);
hres = IUnknown_QueryInterface(unk, &IID_IHTMLObjectElement, (void**)&elem2); - ok(hres == S_OK, "Could not get IHTMLObjectElement from wrapped iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLObjectElement from wrapped iface: %08lx\n", hres); ok(iface_cmp((IUnknown*)elem2, (IUnknown*)elem), "elem2 != elem\n"); IHTMLObjectElement_Release(elem2);
SET_EXPECT(wrapped_Release); ref = IUnknown_Release(unk); - ok(!ref, "ref=%d\n", ref); + ok(!ref, "ref=%ld\n", ref); CHECK_CALLED(wrapped_Release);
SET_EXPECT(QI_ITestActiveX); @@ -1586,7 +1586,7 @@ static void test_iface_wrapping(IHTMLObjectElement *elem) SET_EXPECT(wrapped_Release); unk = (void*)0xdeadbeef; hres = IHTMLObjectElement_QueryInterface(elem, &IID_ITestActiveX, (void**)&unk2); - ok(hres == S_OK, "QueryInterface(IID_ITestActiveX failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_ITestActiveX failed: %08lx\n", hres); CHECK_CALLED(QI_ITestActiveX); CHECK_CALLED(wrapped_AddRef); CHECK_CALLED(wrapped_Release); @@ -1595,7 +1595,7 @@ static void test_iface_wrapping(IHTMLObjectElement *elem)
SET_EXPECT(wrapped_Release); ref = IUnknown_Release(unk2); - ok(!ref, "ref=%d\n", ref); + ok(!ref, "ref=%ld\n", ref); CHECK_CALLED(wrapped_Release); }
@@ -1611,41 +1611,41 @@ static void test_object_elem(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3); - ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08lx\n", hres);
str = SysAllocString(L"objid"); elem = (void*)0xdeadbeef; hres = IHTMLDocument3_getElementById(doc3, str, &elem); IHTMLDocument3_Release(doc3); SysFreeString(str); - ok(hres == S_OK, "getElementById failed: %08x\n", hres); + ok(hres == S_OK, "getElementById failed: %08lx\n", hres); ok(elem != NULL, "elem == NULL\n");
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLObjectElement, (void**)&objelem); IHTMLElement_Release(elem); - ok(hres == S_OK, "Could not get IHTMLObjectElement iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLObjectElement iface: %08lx\n", hres);
SET_EXPECT(Invoke_SECURITYCTX); hres = IHTMLObjectElement_get_object(objelem, &disp); - ok(hres == S_OK, "get_object failed: %08x\n", hres); + ok(hres == S_OK, "get_object failed: %08lx\n", hres); ok(disp == &Dispatch, "disp != Dispatch\n"); CHECK_CALLED(Invoke_SECURITYCTX);
hres = IHTMLObjectElement_QueryInterface(objelem, &IID_IDispatchEx, (void**)&dispex); - ok(hres == S_OK, "QueryInterface failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface failed: %08lx\n", hres); test_elem_dispex(dispex); IDispatchEx_Release(dispex);
test_iface_wrapping(objelem);
hres = IHTMLObjectElement_get_width(objelem, &v); - ok(hres == S_OK, "get_width failed: %08x\n", hres); + ok(hres == S_OK, "get_width failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(width) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"300"), "V_BSTR(width) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLObjectElement_get_height(objelem, &v); - ok(hres == S_OK, "get_height failed: %08x\n", hres); + ok(hres == S_OK, "get_height failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(height) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"200"), "V_BSTR(height) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -1655,12 +1655,12 @@ static void test_object_elem(IHTMLDocument2 *doc) SET_EXPECT(OnAmbientPropertyChange_UNKNOWN); SET_EXPECT(Invoke_ENABLED); hres = IHTMLObjectElement_put_width(objelem, v); - ok(hres == S_OK, "put_width failed: %08x\n", hres); + ok(hres == S_OK, "put_width failed: %08lx\n", hres); CHECK_CALLED(OnAmbientPropertyChange_UNKNOWN); CLEAR_CALLED(Invoke_ENABLED); /* Not called on IE10 */
hres = IHTMLObjectElement_get_width(objelem, &v); - ok(hres == S_OK, "get_width failed: %08x\n", hres); + ok(hres == S_OK, "get_width failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(width) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"400"), "V_BSTR(width) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -1670,12 +1670,12 @@ static void test_object_elem(IHTMLDocument2 *doc) SET_EXPECT(OnAmbientPropertyChange_UNKNOWN); SET_EXPECT(Invoke_ENABLED); hres = IHTMLObjectElement_put_height(objelem, v); - ok(hres == S_OK, "put_height failed: %08x\n", hres); + ok(hres == S_OK, "put_height failed: %08lx\n", hres); CHECK_CALLED(OnAmbientPropertyChange_UNKNOWN); CLEAR_CALLED(Invoke_ENABLED); /* Not called on IE10 */
hres = IHTMLObjectElement_get_height(objelem, &v); - ok(hres == S_OK, "get_height failed: %08x\n", hres); + ok(hres == S_OK, "get_height failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(height) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"250"), "V_BSTR(height) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -1694,31 +1694,31 @@ static void test_container(IHTMLDocument2 *doc_obj)
container = NULL; hres = IOleClientSite_GetContainer(client_site, &container); - ok(hres == S_OK, "GetContainer failed: %08x\n", hres); + ok(hres == S_OK, "GetContainer failed: %08lx\n", hres); ok(container != NULL, "container == NULL\n");
hres = IHTMLDocument2_get_parentWindow(doc_obj, &parent_window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres); ok(parent_window != NULL, "parentWindow == NULL\n");
hres = IHTMLWindow2_get_document(parent_window, &doc); - ok(hres == S_OK, "get_document failed: %08x\n", hres); + ok(hres == S_OK, "get_document failed: %08lx\n", hres); ok(doc != NULL, "doc == NULL\n"); ok(iface_cmp((IUnknown*)doc, (IUnknown*)container), "container != doc\n"); IHTMLDocument2_Release(doc);
hres = IOleClientSite_QueryInterface(client_site, &IID_IServiceProvider, (void**)&serv_prov); - ok(hres == S_OK, "Could not get IServiceProvider iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IServiceProvider iface: %08lx\n", hres);
hres = IServiceProvider_QueryService(serv_prov, &IID_IHTMLWindow2, &IID_IHTMLWindow2, (void**)&html_window); - ok(hres == S_OK, "Could not get IHTMLWindow2 service: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLWindow2 service: %08lx\n", hres); todo_wine ok(!iface_cmp((IUnknown*)html_window, (IUnknown*)parent_window), "html_window != parent_window\n"); IHTMLWindow2_Release(html_window);
SET_EXPECT(QueryService_TestActiveX); hres = IServiceProvider_QueryService(serv_prov, &CLSID_TestActiveX, &IID_IUnknown, (void**)&unk); - ok(hres == S_OK, "QueryService(CLSID_TestActiveX) failed: %08x\n", hres); + ok(hres == S_OK, "QueryService(CLSID_TestActiveX) failed: %08lx\n", hres); ok(unk == (IUnknown*)&OleObject, "unexpected unk %p\n", unk); CHECK_CALLED(QueryService_TestActiveX); IUnknown_Release(unk); @@ -1735,11 +1735,11 @@ static void test_ui_activate(void) HRESULT hres;
hres = IOleClientSite_QueryInterface(client_site, &IID_IOleInPlaceSite, (void**)&ip_site); - ok(hres == S_OK, "Could not get IOleInPlaceSite iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IOleInPlaceSite iface: %08lx\n", hres);
SET_EXPECT(Invoke_ENABLED); hres = IOleInPlaceSite_OnUIActivate(ip_site); - ok(hres == S_OK, "OnUIActivate failed: %08x\n", hres); + ok(hres == S_OK, "OnUIActivate failed: %08lx\n", hres); CLEAR_CALLED(Invoke_ENABLED); /* Not called on IE10 */
IOleInPlaceSite_Release(ip_site); @@ -2075,23 +2075,23 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum HRESULT hres;
hres = IOleDocumentView_QueryInterface(pViewToActivate, &IID_IOleDocument, (void**)&document); - ok(hres == S_OK, "could not get IOleDocument: %08x\n", hres); + ok(hres == S_OK, "could not get IOleDocument: %08lx\n", hres);
hres = IOleDocument_CreateView(document, &InPlaceSite, NULL, 0, &view); IOleDocument_Release(document); - ok(hres == S_OK, "CreateView failed: %08x\n", hres); + ok(hres == S_OK, "CreateView failed: %08lx\n", hres);
hres = IOleDocumentView_SetInPlaceSite(view, &InPlaceSite); - ok(hres == S_OK, "SetInPlaceSite failed: %08x\n", hres); + ok(hres == S_OK, "SetInPlaceSite failed: %08lx\n", hres);
hres = IOleDocumentView_UIActivate(view, TRUE); - ok(hres == S_OK, "UIActivate failed: %08x\n", hres); + ok(hres == S_OK, "UIActivate failed: %08lx\n", hres);
hres = IOleDocumentView_SetRect(view, &rect); - ok(hres == S_OK, "SetRect failed: %08x\n", hres); + ok(hres == S_OK, "SetRect failed: %08lx\n", hres);
hres = IOleDocumentView_Show(view, TRUE); - ok(hres == S_OK, "Show failed: %08x\n", hres); + ok(hres == S_OK, "Show failed: %08lx\n", hres);
return S_OK; } @@ -2194,7 +2194,7 @@ static HRESULT WINAPI PropertyNotifySink_OnChanged(IPropertyNotifySink *iface, D static const WCHAR completeW[] = {'c','o','m','p','l','e','t','e',0};
hres = IHTMLDocument2_get_readyState(notif_doc, &state); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres);
if(!lstrcmpW(state, completeW)) doc_complete = TRUE; @@ -2236,10 +2236,10 @@ static void doc_load_string(IHTMLDocument2 *doc, const char *str) mem = GlobalAlloc(0, len); memcpy(mem, str, len); hr = CreateStreamOnHGlobal(mem, TRUE, &stream); - ok(hr == S_OK, "Failed to create a stream, hr %#x.\n", hr); + ok(hr == S_OK, "Failed to create a stream, hr %#lx.\n", hr);
hr = IHTMLDocument2_QueryInterface(doc, &IID_IPersistStreamInit, (void**)&init); - ok(hr == S_OK, "Failed to get IPersistStreamInit, hr %#x.\n", hr); + ok(hr == S_OK, "Failed to get IPersistStreamInit, hr %#lx.\n", hr);
IPersistStreamInit_Load(init, stream); IPersistStreamInit_Release(init); @@ -2254,15 +2254,15 @@ static void do_advise(IUnknown *unk, REFIID riid, IUnknown *unk_advise) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IConnectionPointContainer, (void**)&container); - ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08lx\n", hres);
hres = IConnectionPointContainer_FindConnectionPoint(container, riid, &cp); IConnectionPointContainer_Release(container); - ok(hres == S_OK, "FindConnectionPoint failed: %08x\n", hres); + ok(hres == S_OK, "FindConnectionPoint failed: %08lx\n", hres);
hres = IConnectionPoint_Advise(cp, unk_advise, &cookie); IConnectionPoint_Release(cp); - ok(hres == S_OK, "Advise failed: %08x\n", hres); + ok(hres == S_OK, "Advise failed: %08lx\n", hres); }
static void set_client_site(IHTMLDocument2 *doc, BOOL set) @@ -2279,19 +2279,19 @@ static void set_client_site(IHTMLDocument2 *doc, BOOL set) }
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleObject, (void**)&oleobj); - ok(hres == S_OK, "Could not et IOleObject: %08x\n", hres); + ok(hres == S_OK, "Could not et IOleObject: %08lx\n", hres);
hres = IOleObject_SetClientSite(oleobj, set ? &ClientSite : NULL); - ok(hres == S_OK, "SetClientSite failed: %08x\n", hres); + ok(hres == S_OK, "SetClientSite failed: %08lx\n", hres);
if(set) { IHlinkTarget *hlink;
hres = IOleObject_QueryInterface(oleobj, &IID_IHlinkTarget, (void**)&hlink); - ok(hres == S_OK, "Could not get IHlinkTarget iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHlinkTarget iface: %08lx\n", hres);
hres = IHlinkTarget_Navigate(hlink, 0, NULL); - ok(hres == S_OK, "Navgate failed: %08x\n", hres); + ok(hres == S_OK, "Navgate failed: %08lx\n", hres);
IHlinkTarget_Release(hlink); } @@ -2305,7 +2305,7 @@ static IHTMLDocument2 *create_document(void)
hres = CoCreateInstance(&CLSID_HTMLDocument, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER, &IID_IHTMLDocument2, (void**)&doc); - ok(hres == S_OK, "CoCreateInstance failed: %08x\n", hres); + ok(hres == S_OK, "CoCreateInstance failed: %08lx\n", hres);
return doc; } @@ -2334,7 +2334,7 @@ static void release_doc(IHTMLDocument2 *doc)
set_client_site(doc, FALSE); ref = IHTMLDocument2_Release(doc); - ok(!ref || broken(ref == 1) /* Vista */, "ref = %d\n", ref); + ok(!ref || broken(ref == 1) /* Vista */, "ref = %ld\n", ref);
if(client_site) { IOleClientSite_Release(client_site); @@ -2346,7 +2346,7 @@ static void release_doc(IHTMLDocument2 *doc) plugin_hwnd = NULL; }
- ok(!activex_refcnt, "activex_refcnt = %d\n", activex_refcnt); + ok(!activex_refcnt, "activex_refcnt = %ld\n", activex_refcnt); }
static void init_test(int behavior) @@ -2367,7 +2367,7 @@ static void test_event_call(void)
V_VT(&res) = VT_EMPTY; hres = IDispatch_Invoke(sink_disp, 1, &IID_NULL, 0, DISPATCH_METHOD, &dp, &res, &ei, NULL); - ok(hres == S_OK, "Invoke failed: %08x\n", hres); + ok(hres == S_OK, "Invoke failed: %08lx\n", hres); ok(V_VT(&res) == VT_I4 && V_I4(&res) == 6, "unexpected result\n");
V_VT(args) = VT_I4; @@ -2377,12 +2377,12 @@ static void test_event_call(void) dp.cArgs = 2; V_VT(&res) = VT_EMPTY; hres = IDispatch_Invoke(sink_disp, 2, &IID_NULL, 0, DISPATCH_METHOD, &dp, &res, &ei, NULL); - ok(hres == S_OK, "Invoke failed: %08x\n", hres); - ok(V_VT(&res) == VT_I4 && V_I4(&res) == 7, "unexpected result: %d\n", V_I4(&res)); + ok(hres == S_OK, "Invoke failed: %08lx\n", hres); + ok(V_VT(&res) == VT_I4 && V_I4(&res) == 7, "unexpected result: %ld\n", V_I4(&res));
V_VT(&res) = VT_ERROR; hres = IDispatch_Invoke(sink_disp, 10, &IID_NULL, 0, DISPATCH_METHOD, &dp, &res, &ei, NULL); - ok(hres == S_OK, "Invoke failed: %08x\n", hres); + ok(hres == S_OK, "Invoke failed: %08lx\n", hres); ok(V_VT(&res) == VT_EMPTY, "V_VT(res) = %d\n", V_VT(&res)); }
@@ -2592,13 +2592,13 @@ static void test_exec_script(IHTMLDocument2 *doc, const WCHAR *codew, const WCHA HRESULT hres;
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres);
code = SysAllocString(codew); lang = SysAllocString(langw);
hres = IHTMLWindow2_execScript(window, code, lang, &v); - ok(hres == S_OK, "execScript failed: %08x\n", hres); + ok(hres == S_OK, "execScript failed: %08lx\n", hres); SysFreeString(lang); VariantClear(&v);
@@ -2684,13 +2684,13 @@ static void load_typelib(void) GetModuleFileNameW(NULL, path, MAX_PATH);
hres = LoadTypeLib(path, &typelib); - ok(hres == S_OK, "LoadTypeLib failed: %08x\n", hres); + ok(hres == S_OK, "LoadTypeLib failed: %08lx\n", hres);
hres = ITypeLib_GetTypeInfoOfGuid(typelib, &DIID_DispActiveXTest, &actxtest_typeinfo); - ok(hres == S_OK, "GetTypeInfoOfGuid(DIID_DispActiveXTest) failed: %08x\n", hres); + ok(hres == S_OK, "GetTypeInfoOfGuid(DIID_DispActiveXTest) failed: %08lx\n", hres);
hres = ITypeLib_GetTypeInfoOfGuid(typelib, &CLSID_ActiveXTest, &class_typeinfo); - ok(hres == S_OK, "GetTypeInfoOfGuid(CLSID_ActiveXTest) failed: %08x\n", hres); + ok(hres == S_OK, "GetTypeInfoOfGuid(CLSID_ActiveXTest) failed: %08lx\n", hres);
ITypeLib_Release(typelib); } @@ -2738,7 +2738,7 @@ static BOOL register_activex(void)
hres = CoRegisterClassObject(&CLSID_TestActiveX, (IUnknown*)&activex_cf, CLSCTX_INPROC_SERVER, REGCLS_MULTIPLEUSE, ®id); - ok(hres == S_OK, "Could not register control: %08x\n", hres); + ok(hres == S_OK, "Could not register control: %08lx\n", hres);
return TRUE; } diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 0c065a2da7e..b66073f632a 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -592,7 +592,7 @@ static IHTMLDocument2 *create_document(void)
hres = CoCreateInstance(&CLSID_HTMLDocument, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER, &IID_IHTMLDocument2, (void**)&doc); - ok(hres == S_OK, "CoCreateInstance failed: %08x\n", hres); + ok(hres == S_OK, "CoCreateInstance failed: %08lx\n", hres); if(FAILED(hres)) return NULL;
@@ -614,7 +614,7 @@ static IDispatchEx *_get_dispex_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IDispatchEx, (void**)&dispex); - ok_(__FILE__,line) (hres == S_OK, "Could not get IDispatchEx: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IDispatchEx: %08lx\n", hres); return dispex; }
@@ -627,7 +627,7 @@ static void _test_ifaces(unsigned line, IUnknown *iface, REFIID *iids)
for(piid = iids; *piid; piid++) { hres = IUnknown_QueryInterface(iface, *piid, (void**)&unk); - ok_(__FILE__,line) (hres == S_OK, "Could not get %s interface: %08x\n", wine_dbgstr_guid(*piid), hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get %s interface: %08lx\n", wine_dbgstr_guid(*piid), hres); if(SUCCEEDED(hres)) IUnknown_Release(unk); } @@ -641,7 +641,7 @@ static void _test_no_iface(unsigned line, IUnknown *iface, REFIID iid)
unk = (void*)0xdeadbeef; hres = IUnknown_QueryInterface(iface, iid, (void**)&unk); - ok_(__FILE__,line)(hres == E_NOINTERFACE, "hres = %08x, expected E_NOINTERFACE\n", hres); + ok_(__FILE__,line)(hres == E_NOINTERFACE, "hres = %08lx, expected E_NOINTERFACE\n", hres); ok_(__FILE__,line)(!unk, "unk = %p\n", unk); }
@@ -656,17 +656,17 @@ static BOOL _test_get_dispid(unsigned line, IUnknown *unk, IID *iid)
ticnt = 0xdeadbeef; hres = IDispatchEx_GetTypeInfoCount(dispex, &ticnt); - ok_(__FILE__,line) (hres == S_OK, "GetTypeInfoCount failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "GetTypeInfoCount failed: %08lx\n", hres); ok_(__FILE__,line) (ticnt == 1, "ticnt=%u\n", ticnt);
hres = IDispatchEx_GetTypeInfo(dispex, 0, 0, &typeinfo); - ok_(__FILE__,line) (hres == S_OK, "GetTypeInfo failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "GetTypeInfo failed: %08lx\n", hres);
if(SUCCEEDED(hres)) { TYPEATTR *type_attr;
hres = ITypeInfo_GetTypeAttr(typeinfo, &type_attr); - ok_(__FILE__,line) (hres == S_OK, "GetTypeAttr failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "GetTypeAttr failed: %08lx\n", hres); if(hres == S_OK) { *iid = type_attr->guid; ret = TRUE; @@ -691,7 +691,7 @@ static void _test_disp_value(unsigned line, IUnknown *unk, const WCHAR *val)
hres = IDispatchEx_InvokeEx(dispex, DISPID_VALUE, 0, DISPATCH_PROPERTYGET, &dp, &var, &ei, NULL); IDispatchEx_Release(dispex); - ok_(__FILE__,line)(hres == S_OK, "InvokeEx(DISPID_VALUE) returned: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "InvokeEx(DISPID_VALUE) returned: %08lx\n", hres);
ok_(__FILE__,line)(V_VT(&var) == VT_BSTR, "V_VT(value) = %d\n", V_VT(&var)); ok_(__FILE__,line)(!lstrcmpW(V_BSTR(&var), val), "value = %s, expected %s\n", wine_dbgstr_w(V_BSTR(&var)), wine_dbgstr_w(val)); @@ -709,12 +709,12 @@ static void _test_class_info(unsigned line, IUnknown *unk, const CLSID *clsid) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IProvideClassInfo2, (void**)&classinfo); - ok_(__FILE__,line)(hres == S_OK, "Could not get IProvideClassInfo2 interface: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Could not get IProvideClassInfo2 interface: %08lx\n", hres); if(FAILED(hres)) return;
hres = IProvideClassInfo2_GetClassInfo(classinfo, &typeinfo); - ok_(__FILE__,line)(hres == S_OK, "Could not get ITypeInfo interface: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Could not get ITypeInfo interface: %08lx\n", hres); if(FAILED(hres)) { IProvideClassInfo2_Release(classinfo); @@ -722,7 +722,7 @@ static void _test_class_info(unsigned line, IUnknown *unk, const CLSID *clsid) }
hres = ITypeInfo_GetTypeAttr(typeinfo, &type_attr); - ok_(__FILE__,line)(hres == S_OK, "GetTypeAttr failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "GetTypeAttr failed: %08lx\n", hres); if(SUCCEEDED(hres)) { ok_(__FILE__,line)(IsEqualGUID(&type_attr->guid, clsid), @@ -737,13 +737,13 @@ static void _test_class_info(unsigned line, IUnknown *unk, const CLSID *clsid)
hres = IUnknown_QueryInterface(unk, &IID_IProvideMultipleClassInfo, (void**)&multiple_classinfo); if(IsEqualGUID(clsid, &CLSID_HTMLXMLHttpRequest)) { - ok_(__FILE__,line)(hres == E_NOINTERFACE, "Could not get IProvideClassInfo2 interface: %08x\n", hres); + ok_(__FILE__,line)(hres == E_NOINTERFACE, "Could not get IProvideClassInfo2 interface: %08lx\n", hres); }else { - ok_(__FILE__,line)(hres == S_OK, "Could not get IProvideClassInfo2 interface: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Could not get IProvideClassInfo2 interface: %08lx\n", hres);
hres = IProvideMultipleClassInfo_GetMultiTypeInfoCount(multiple_classinfo, &count); - ok_(__FILE__,line)(hres == S_OK, "GetMultiTypeInfoCount failed: %08x\n", hres); - ok_(__FILE__,line)(count > 0, "count = %u\n", count); + ok_(__FILE__,line)(hres == S_OK, "GetMultiTypeInfoCount failed: %08lx\n", hres); + ok_(__FILE__,line)(count > 0, "count = %lu\n", count);
IProvideMultipleClassInfo_Release(multiple_classinfo); } @@ -804,11 +804,11 @@ static void _set_dispex_value(unsigned line, IUnknown *unk, const WCHAR *name, V str = SysAllocString(name); hres = IDispatchEx_GetDispID(dispex, str, fdexNameEnsure|fdexNameCaseInsensitive, &id); SysFreeString(str); - ok_(__FILE__,line)(hres == S_OK, "GetDispID failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "GetDispID failed: %08lx\n", hres);
memset(&ei, 0, sizeof(ei)); hres = IDispatchEx_InvokeEx(dispex, id, LOCALE_NEUTRAL, INVOKE_PROPERTYPUT, &dp, NULL, &ei, NULL); - ok_(__FILE__,line)(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "InvokeEx failed: %08lx\n", hres);
}
@@ -819,7 +819,7 @@ static IHTMLElement *_get_elem_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLElement, (void**)&elem); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement: %08lx\n", hres); return elem; }
@@ -830,7 +830,7 @@ static IHTMLElement2 *_get_elem2_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLElement2, (void**)&elem); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement2: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement2: %08lx\n", hres); return elem; }
@@ -841,7 +841,7 @@ static IHTMLElement3 *_get_elem3_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLElement3, (void**)&elem); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement3: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement3: %08lx\n", hres); return elem; }
@@ -852,7 +852,7 @@ static IHTMLElement4 *_get_elem4_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLElement4, (void**)&elem); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement4: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement4: %08lx\n", hres); return elem; }
@@ -863,7 +863,7 @@ static IHTMLDocument3 *_get_doc3_iface(unsigned line, IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDocument3 interface: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDocument3 interface: %08lx\n", hres);
return doc3; } @@ -875,7 +875,7 @@ static IHTMLDOMNode *_get_node_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLDOMNode, (void**)&node); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDOMNode: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDOMNode: %08lx\n", hres); return node; }
@@ -886,7 +886,7 @@ static IHTMLDOMNode2 *_get_node2_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLDOMNode2, (void**)&node); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDOMNode2: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDOMNode2: %08lx\n", hres); return node; }
@@ -897,7 +897,7 @@ static IHTMLDocument5 *_get_htmldoc5_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLDocument5, (void**)&doc); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDocument5: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDocument5: %08lx\n", hres); return doc; }
@@ -908,7 +908,7 @@ static IHTMLImgElement *_get_img_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLImgElement, (void**)&img); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLImgElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLImgElement: %08lx\n", hres); return img; }
@@ -919,7 +919,7 @@ static IHTMLAnchorElement *_get_anchor_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLAnchorElement, (void**)&anchor); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLAnchorElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLAnchorElement: %08lx\n", hres); return anchor; }
@@ -930,7 +930,7 @@ static IHTMLAreaElement *_get_area_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLAreaElement, (void**)&area); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLAreaElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLAreaElement: %08lx\n", hres); return area; }
@@ -941,7 +941,7 @@ static IHTMLTextAreaElement *_get_textarea_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLTextAreaElement, (void**)&textarea); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLTextAreaElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLTextAreaElement: %08lx\n", hres); return textarea; }
@@ -952,7 +952,7 @@ static IHTMLSelectElement *_get_select_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLSelectElement, (void**)&select); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLSelectElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLSelectElement: %08lx\n", hres); return select; }
@@ -963,7 +963,7 @@ static IHTMLOptionElement *_get_option_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLOptionElement, (void**)&option); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLOptionElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLOptionElement: %08lx\n", hres); return option; }
@@ -974,7 +974,7 @@ static IHTMLFormElement *_get_form_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLFormElement, (void**)&form); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLFormElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLFormElement: %08lx\n", hres); return form; }
@@ -985,7 +985,7 @@ static IHTMLDOMTextNode *_get_text_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLDOMTextNode, (void**)&text); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDOMTextNode: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDOMTextNode: %08lx\n", hres); return text; }
@@ -996,7 +996,7 @@ static IHTMLDOMTextNode2 *_get_text2_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLDOMTextNode2, (void**)&text2); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDOMTextNode2: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDOMTextNode2: %08lx\n", hres); return text2; }
@@ -1007,7 +1007,7 @@ static IHTMLCommentElement *_get_comment_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLCommentElement, (void**)&comment); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLCommentElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLCommentElement: %08lx\n", hres); return comment; }
@@ -1018,7 +1018,7 @@ static IHTMLObjectElement *_get_object_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLObjectElement, (void**)&obj); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLObjectElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLObjectElement: %08lx\n", hres); return obj; }
@@ -1029,7 +1029,7 @@ static IHTMLStyleElement *_get_style_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLStyleElement, (void**)&obj); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLStyleElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLStyleElement: %08lx\n", hres); return obj; }
@@ -1040,7 +1040,7 @@ static IHTMLMetaElement *_get_metaelem_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLMetaElement, (void**)&ret); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLMetaElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLMetaElement: %08lx\n", hres); return ret; }
@@ -1051,7 +1051,7 @@ static IHTMLLinkElement *_get_link_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLLinkElement, (void**)&ret); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLLinkElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLLinkElement: %08lx\n", hres); return ret; }
@@ -1062,7 +1062,7 @@ static IHTMLIFrameElement2 *_get_iframe2_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLIFrameElement2, (void**)&ret); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLIFrameElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLIFrameElement: %08lx\n", hres); return ret; }
@@ -1073,7 +1073,7 @@ static IHTMLButtonElement *_get_button_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLButtonElement, (void**)&ret); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLButtonElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLButtonElement: %08lx\n", hres); return ret; }
@@ -1084,7 +1084,7 @@ static IHTMLLabelElement *_get_label_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLLabelElement, (void**)&ret); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLLabelElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLLabelElement: %08lx\n", hres); return ret; }
@@ -1095,7 +1095,7 @@ static IHTMLDOMAttribute2 *_get_attr2_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLDOMAttribute2, (void**)&ret); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDOMAttribute2: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDOMAttribute2: %08lx\n", hres); return ret; }
@@ -1108,14 +1108,14 @@ static void _test_node_name(unsigned line, IUnknown *unk, const WCHAR *exname) HRESULT hres;
hres = IHTMLDOMNode_get_nodeName(node, &name); - ok_(__FILE__, line) (hres == S_OK, "get_nodeName failed: %08x\n", hres); + ok_(__FILE__, line) (hres == S_OK, "get_nodeName failed: %08lx\n", hres); ok_(__FILE__, line) (!lstrcmpW(name, exname), "got name: %s, expected %s\n", wine_dbgstr_w(name), wine_dbgstr_w(exname)); SysFreeString(name);
hres = IHTMLDOMNode_QueryInterface(node, &IID_IHTMLElement6, (void**)&elem); if(SUCCEEDED(hres)) { hres = IHTMLElement6_get_nodeName(elem, &name); - ok_(__FILE__, line) (hres == S_OK, "(elem) get_nodeName failed: %08x\n", hres); + ok_(__FILE__, line) (hres == S_OK, "(elem) get_nodeName failed: %08lx\n", hres); ok_(__FILE__, line) (!lstrcmpW(name, exname), "(elem) got name: %s, expected %s\n", wine_dbgstr_w(name), wine_dbgstr_w(exname)); SysFreeString(name); @@ -1135,12 +1135,12 @@ static IHTMLDocument2 *_get_owner_doc(unsigned line, IUnknown *unk)
hres = IHTMLDOMNode2_get_ownerDocument(node, &disp); IHTMLDOMNode2_Release(node); - ok_(__FILE__,line)(hres == S_OK, "get_ownerDocument failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_ownerDocument failed: %08lx\n", hres);
if(disp) { hres = IDispatch_QueryInterface(disp, &IID_IHTMLDocument2, (void**)&doc); IDispatch_Release(disp); - ok_(__FILE__,line)(hres == S_OK, "Could not get IHTMLDocument2 iface: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Could not get IHTMLDocument2 iface: %08lx\n", hres); }
return doc; @@ -1154,7 +1154,7 @@ static IHTMLWindow2 *_get_doc_window(unsigned line, IHTMLDocument2 *doc)
window = NULL; hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok_(__FILE__,line)(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_parentWindow failed: %08lx\n", hres); ok_(__FILE__,line)(window != NULL, "window == NULL\n");
return window; @@ -1169,7 +1169,7 @@ static IHTMLDOMNode *_clone_node(unsigned line, IUnknown *unk, VARIANT_BOOL deep
hres = IHTMLDOMNode_cloneNode(node, deep, &ret); IHTMLDOMNode_Release(node); - ok_(__FILE__,line)(hres == S_OK, "cloneNode failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "cloneNode failed: %08lx\n", hres); ok_(__FILE__,line)(ret != NULL, "ret == NULL\n");
return ret; @@ -1185,14 +1185,14 @@ static void _test_elem_tag(unsigned line, IUnknown *unk, const WCHAR *extag) HRESULT hres;
hres = IHTMLElement_get_tagName(elem, &tag); - ok_(__FILE__, line) (hres == S_OK, "get_tagName failed: %08x\n", hres); + ok_(__FILE__, line) (hres == S_OK, "get_tagName failed: %08lx\n", hres); ok_(__FILE__, line) (!lstrcmpW(tag, extag), "got tag: %s, expected %s\n", wine_dbgstr_w(tag), wine_dbgstr_w(extag)); SysFreeString(tag);
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLElement6, (void**)&elem6); if(SUCCEEDED(hres)) { hres = IHTMLElement6_get_tagName(elem6, &tag); - ok_(__FILE__, line)(hres == S_OK, "(elem6) get_tagName failed: %08x\n", hres); + ok_(__FILE__, line)(hres == S_OK, "(elem6) get_tagName failed: %08lx\n", hres); ok_(__FILE__, line)(!lstrcmpW(tag, extag), "(elem6) got tag: %s, expected %s\n", wine_dbgstr_w(tag), wine_dbgstr_w(extag)); SysFreeString(tag); @@ -1225,7 +1225,7 @@ static LONG _get_node_type(unsigned line, IUnknown *unk) HRESULT hres;
hres = IHTMLDOMNode_get_nodeType(node, &type); - ok(hres == S_OK, "get_nodeType failed: %08x\n", hres); + ok(hres == S_OK, "get_nodeType failed: %08lx\n", hres);
IHTMLDOMNode_Release(node);
@@ -1242,13 +1242,13 @@ static IHTMLDOMChildrenCollection *_get_child_nodes(unsigned line, IUnknown *unk
hres = IHTMLDOMNode_get_childNodes(node, &disp); IHTMLDOMNode_Release(node); - ok_(__FILE__,line) (hres == S_OK, "get_childNodes failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_childNodes failed: %08lx\n", hres); if(FAILED(hres)) return NULL;
hres = IDispatch_QueryInterface(disp, &IID_IHTMLDOMChildrenCollection, (void**)&col); IDispatch_Release(disp); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDOMChildrenCollection: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDOMChildrenCollection: %08lx\n", hres);
return col; } @@ -1261,7 +1261,7 @@ static IHTMLDOMNode *_get_child_item(unsigned line, IHTMLDOMChildrenCollection * HRESULT hres;
hres = IHTMLDOMChildrenCollection_item(col, idx, &disp); - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres);
node = _get_node_iface(line, (IUnknown*)disp); IDispatch_Release(disp); @@ -1281,7 +1281,7 @@ static void _test_elem_attr(unsigned line, IHTMLElement *elem, const WCHAR *name tmp = SysAllocString(name); hres = IHTMLElement_getAttribute(elem, tmp, 0, &value); SysFreeString(tmp); - ok_(__FILE__,line) (hres == S_OK, "getAttribute failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "getAttribute failed: %08lx\n", hres);
if(exval) { ok_(__FILE__,line) (V_VT(&value) == VT_BSTR, "vt=%d\n", V_VT(&value)); @@ -1302,19 +1302,19 @@ static void _test_elem_offset(unsigned line, IUnknown *unk, const WCHAR *parent_ HRESULT hres;
hres = IHTMLElement_get_offsetTop(elem, &l); - ok_(__FILE__,line) (hres == S_OK, "get_offsetTop failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_offsetTop failed: %08lx\n", hres);
hres = IHTMLElement_get_offsetHeight(elem, &l); - ok_(__FILE__,line) (hres == S_OK, "get_offsetHeight failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_offsetHeight failed: %08lx\n", hres);
hres = IHTMLElement_get_offsetWidth(elem, &l); - ok_(__FILE__,line) (hres == S_OK, "get_offsetWidth failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_offsetWidth failed: %08lx\n", hres);
hres = IHTMLElement_get_offsetLeft(elem, &l); - ok_(__FILE__,line) (hres == S_OK, "get_offsetLeft failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_offsetLeft failed: %08lx\n", hres);
hres = IHTMLElement_get_offsetParent(elem, &off_parent); - ok_(__FILE__,line) (hres == S_OK, "get_offsetParent failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_offsetParent failed: %08lx\n", hres); IHTMLElement_Release(elem);
if(off_parent) { @@ -1332,8 +1332,8 @@ static void _test_elem_source_index(unsigned line, IHTMLElement *elem, int index HRESULT hres;
hres = IHTMLElement_get_sourceIndex(elem, &l); - ok_(__FILE__,line)(hres == S_OK, "get_sourceIndex failed: %08x\n", hres); - ok_(__FILE__,line)(l == index, "sourceIndex = %d, expected %d\n", l, index); + ok_(__FILE__,line)(hres == S_OK, "get_sourceIndex failed: %08lx\n", hres); + ok_(__FILE__,line)(l == index, "sourceIndex = %ld, expected %d\n", l, index); }
#define get_doc_node(d) _get_doc_node(__LINE__,d) @@ -1344,10 +1344,10 @@ static IHTMLDocument2 *_get_doc_node(unsigned line, IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok_(__FILE__,line)(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_parentWindow failed: %08lx\n", hres);
hres = IHTMLWindow2_get_document(window, &ret); - ok_(__FILE__,line)(hres == S_OK, "get_document failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_document failed: %08lx\n", hres); ok_(__FILE__,line)(ret != NULL, "document = NULL\n");
return ret; @@ -1360,7 +1360,7 @@ static void _test_window_name(unsigned line, IHTMLWindow2 *window, const WCHAR * HRESULT hres;
hres = IHTMLWindow2_get_name(window, &name); - ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08lx\n", hres); if(exname) ok_(__FILE__,line)(!lstrcmpW(name, exname), "name = %s\n", wine_dbgstr_w(name)); else @@ -1377,7 +1377,7 @@ static void _set_window_name(unsigned line, IHTMLWindow2 *window, const WCHAR *n str = SysAllocString(name); hres = IHTMLWindow2_put_name(window, str); SysFreeString(str); - ok_(__FILE__,line)(hres == S_OK, "put_name failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_name failed: %08lx\n", hres);
_test_window_name(line, window, name); } @@ -1390,7 +1390,7 @@ static void _test_window_status(unsigned line, IHTMLWindow2 *window)
status = (void*)0xdeadbeef; hres = IHTMLWindow2_get_status(window, &status); - ok_(__FILE__,line)(hres == S_OK, "get_status failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_status failed: %08lx\n", hres); ok_(__FILE__,line)(!status, "status = %s\n", wine_dbgstr_w(status)); SysFreeString(status); } @@ -1404,7 +1404,7 @@ static void _set_window_status(unsigned line, IHTMLWindow2 *window, const WCHAR str = SysAllocString(status); hres = IHTMLWindow2_put_status(window, str); SysFreeString(str); - ok_(__FILE__,line)(hres == S_OK, "put_status failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_status failed: %08lx\n", hres); }
#define test_window_length(w,l) _test_window_length(__LINE__,w,l) @@ -1414,8 +1414,8 @@ static void _test_window_length(unsigned line, IHTMLWindow2 *window, LONG exlen) HRESULT hres;
hres = IHTMLWindow2_get_length(window, &length); - ok_(__FILE__,line)(hres == S_OK, "get_length failed: %08x\n", hres); - ok_(__FILE__,line)(length == exlen, "length = %d, expected %d\n", length, exlen); + ok_(__FILE__,line)(hres == S_OK, "get_length failed: %08lx\n", hres); + ok_(__FILE__,line)(length == exlen, "length = %ld, expected %ld\n", length, exlen); }
#define get_frame_content_window(e) _get_frame_content_window(__LINE__,e) @@ -1426,12 +1426,12 @@ static IHTMLWindow2 *_get_frame_content_window(unsigned line, IUnknown *elem) HRESULT hres;
hres = IUnknown_QueryInterface(elem, &IID_IHTMLFrameBase2, (void**)&base2); - ok(hres == S_OK, "Could not get IHTMFrameBase2 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMFrameBase2 iface: %08lx\n", hres);
window = NULL; hres = IHTMLFrameBase2_get_contentWindow(base2, &window); IHTMLFrameBase2_Release(base2); - ok(hres == S_OK, "get_contentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_contentWindow failed: %08lx\n", hres); ok(window != NULL, "contentWindow = NULL\n");
return window; @@ -1447,16 +1447,16 @@ static void test_get_set_attr(IHTMLDocument2 *doc)
/* grab an element to test with */ hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3); - ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument3) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument3) failed: %08lx\n", hres);
hres = IHTMLDocument3_get_documentElement(doc3, &elem); IHTMLDocument3_Release(doc3); - ok(hres == S_OK, "get_documentElement failed: %08x\n", hres); + ok(hres == S_OK, "get_documentElement failed: %08lx\n", hres);
/* get a non-present attribute */ bstr = SysAllocString(L"notAnAttribute"); hres = IHTMLElement_getAttribute(elem, bstr, 0, &val); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&val) == VT_NULL, "variant type should have been VT_NULL (0x%x), was: 0x%x\n", VT_NULL, V_VT(&val)); VariantClear(&val); SysFreeString(bstr); @@ -1464,7 +1464,7 @@ static void test_get_set_attr(IHTMLDocument2 *doc) /* get a present attribute */ bstr = SysAllocString(L"scrollHeight"); hres = IHTMLElement_getAttribute(elem, bstr, 0, &val); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&val) == VT_I4, "variant type should have been VT_I4 (0x%x), was: 0x%x\n", VT_I4, V_VT(&val)); VariantClear(&val); SysFreeString(bstr); @@ -1475,11 +1475,11 @@ static void test_get_set_attr(IHTMLDocument2 *doc) V_VT(&val) = VT_BSTR; V_BSTR(&val) = SysAllocString(L"the value"); hres = IHTMLElement_setAttribute(elem, bstr, val, 0); - ok(hres == S_OK, "setAttribute failed: %08x\n", hres); + ok(hres == S_OK, "setAttribute failed: %08lx\n", hres); VariantClear(&val);
hres = IHTMLElement_getAttribute(elem, bstr, 0, &val); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&val) == VT_BSTR, "variant type should have been VT_BSTR (0x%x), was: 0x%x\n", VT_BSTR, V_VT(&val)); ok(lstrcmpW(V_BSTR(&val), L"the value") == 0, "variant value should have been L"the value", was %s\n", wine_dbgstr_w(V_BSTR(&val))); VariantClear(&val); @@ -1488,11 +1488,11 @@ static void test_get_set_attr(IHTMLDocument2 *doc) V_VT(&val) = VT_BOOL; V_BOOL(&val) = VARIANT_TRUE; hres = IHTMLElement_setAttribute(elem, bstr, val, 0); - ok(hres == S_OK, "setAttribute failed: %08x\n", hres); + ok(hres == S_OK, "setAttribute failed: %08lx\n", hres); VariantClear(&val);
hres = IHTMLElement_getAttribute(elem, bstr, 0, &val); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&val) == VT_BOOL, "variant type should have been VT_BOOL (0x%x), was: 0x%x\n", VT_BOOL, V_VT(&val)); ok(V_BOOL(&val) == VARIANT_TRUE, "variant value should have been VARIANT_TRUE (0x%x), was %d\n", VARIANT_TRUE, V_BOOL(&val)); VariantClear(&val); @@ -1502,7 +1502,7 @@ static void test_get_set_attr(IHTMLDocument2 *doc) /* case-insensitive */ bstr = SysAllocString(L"newattribute"); hres = IHTMLElement_getAttribute(elem, bstr, 0, &val); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&val) == VT_BOOL, "variant type should have been VT_BOOL (0x%x), was: 0x%x\n", VT_BOOL, V_VT(&val)); ok(V_BOOL(&val) == VARIANT_TRUE, "variant value should have been VARIANT_TRUE (0x%x), was %d\n", VARIANT_TRUE, V_BOOL(&val)); VariantClear(&val); @@ -1510,10 +1510,10 @@ static void test_get_set_attr(IHTMLDocument2 *doc) /* overwrite the attribute with null */ V_VT(&val) = VT_NULL; hres = IHTMLElement_setAttribute(elem, bstr, val, 0); - ok(hres == S_OK, "setAttribute failed: %08x\n", hres); + ok(hres == S_OK, "setAttribute failed: %08lx\n", hres);
hres = IHTMLElement_getAttribute(elem, bstr, 2, &val); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&val) == VT_BSTR, "V_VT(val) = %u, expected VT_BSTR\n", V_VT(&val)); ok(!lstrcmpW(V_BSTR(&val), L"null"), "V_BSTR(val) = %s, expected "null"\n", wine_dbgstr_w(V_BSTR(&val))); VariantClear(&val); @@ -1530,9 +1530,9 @@ static IHTMLElement *_get_doc_elem(unsigned line, IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDocument3 interface: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDocument3 interface: %08lx\n", hres); hres = IHTMLDocument3_get_documentElement(doc3, &elem); - ok_(__FILE__,line) (hres == S_OK, "get_documentElement failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_documentElement failed: %08lx\n", hres); IHTMLDocument3_Release(doc3);
return elem; @@ -1546,7 +1546,7 @@ static void _test_anchor_href(unsigned line, IUnknown *unk, const WCHAR *exhref) HRESULT hres;
hres = IHTMLAnchorElement_get_href(anchor, &str); - ok_(__FILE__,line)(hres == S_OK, "get_href failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_href failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(str, exhref), "href = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exhref)); SysFreeString(str);
@@ -1562,7 +1562,7 @@ static void _test_anchor_put_href(unsigned line, IUnknown *unk, const WCHAR *exh
str = SysAllocString(exhref); hres = IHTMLAnchorElement_put_href(anchor, str); - ok_(__FILE__,line)(hres == S_OK, "get_href failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_href failed: %08lx\n", hres); SysFreeString(str);
_test_disp_value(line, unk, exhref); @@ -1576,7 +1576,7 @@ static void _test_anchor_rel(unsigned line, IUnknown *unk, const WCHAR *exrel) HRESULT hres;
hres = IHTMLAnchorElement_get_rel(anchor, &str); - ok_(__FILE__,line)(hres == S_OK, "get_rel failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_rel failed: %08lx\n", hres); if(exrel) ok_(__FILE__,line)(!lstrcmpW(str, exrel), "rel = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exrel)); else @@ -1593,7 +1593,7 @@ static void _test_anchor_put_rel(unsigned line, IUnknown *unk, const WCHAR *exre
str = SysAllocString(exrel); hres = IHTMLAnchorElement_put_rel(anchor, str); - ok_(__FILE__,line)(hres == S_OK, "get_rel failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_rel failed: %08lx\n", hres); SysFreeString(str); }
@@ -1605,7 +1605,7 @@ static void _test_anchor_get_target(unsigned line, IUnknown *unk, const WCHAR *t HRESULT hres;
hres = IHTMLAnchorElement_get_target(anchor, &str); - ok_(__FILE__,line)(hres == S_OK, "get_target failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_target failed: %08lx\n", hres); if(target) ok_(__FILE__,line)(!lstrcmpW(str, target), "target = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(target)); else @@ -1622,7 +1622,7 @@ static void _test_anchor_put_target(unsigned line, IUnknown *unk, const WCHAR *t
str = target ? SysAllocString(target) : NULL; hres = IHTMLAnchorElement_put_target(anchor, str); - ok_(__FILE__,line)(hres == S_OK, "put_target failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_target failed: %08lx\n", hres); SysFreeString(str); }
@@ -1634,7 +1634,7 @@ static void _test_anchor_name(unsigned line, IUnknown *unk, const WCHAR *name) HRESULT hres;
hres = IHTMLAnchorElement_get_name(anchor, &str); - ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08lx\n", hres); if(name) ok_(__FILE__,line)(!lstrcmpW(str, name), "name = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(name)); else @@ -1651,7 +1651,7 @@ static void _test_anchor_put_name(unsigned line, IUnknown *unk, const WCHAR *nam
str = name ? SysAllocString(name) : NULL; hres = IHTMLAnchorElement_put_name(anchor, str); - ok_(__FILE__,line)(hres == S_OK, "put_name failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_name failed: %08lx\n", hres); SysFreeString(str);
_test_anchor_name(line, unk, name); @@ -1665,7 +1665,7 @@ static void _test_anchor_hostname(unsigned line, IUnknown *unk, const WCHAR *hos HRESULT hres;
hres = IHTMLAnchorElement_get_hostname(anchor, &str); - ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08lx\n", hres); if(hostname) ok_(__FILE__,line)(!lstrcmpW(str, hostname), "hostname = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(hostname)); else @@ -1681,7 +1681,7 @@ static void _test_anchor_port(unsigned line, IUnknown *unk, const WCHAR *port) HRESULT hres;
hres = IHTMLAnchorElement_get_port(anchor, &str); - ok_(__FILE__,line)(hres == S_OK, "get_port failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_port failed: %08lx\n", hres); if(port) ok_(__FILE__,line)(!lstrcmpW(str, port), "port = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(port)); else @@ -1697,7 +1697,7 @@ static void _test_anchor_search(unsigned line, IUnknown *elem, const WCHAR *sear HRESULT hres;
hres = IHTMLAnchorElement_get_search(anchor, &str); - ok_(__FILE__,line)(hres == S_OK, "get_search failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_search failed: %08lx\n", hres); if ( ! str && allowbroken) win_skip("skip ie6 incorrect behavior\n"); else if(search) @@ -1716,7 +1716,7 @@ static void _test_anchor_put_search(unsigned line, IUnknown *unk, const WCHAR *s
str = search ? SysAllocString(search) : NULL; hres = IHTMLAnchorElement_put_search(anchor, str); - ok_(__FILE__,line)(hres == S_OK, "put_search failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_search failed: %08lx\n", hres); SysFreeString(str); }
@@ -1728,7 +1728,7 @@ static void _test_anchor_hash(unsigned line, IHTMLElement *elem, const WCHAR *ex HRESULT hres;
hres = IHTMLAnchorElement_get_hash(anchor, &str); - ok_(__FILE__,line)(hres == S_OK, "get_hash failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_hash failed: %08lx\n", hres); if(exhash) ok_(__FILE__,line)(!lstrcmpW(str, exhash), "hash = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exhash)); else @@ -1744,7 +1744,7 @@ static void _test_area_href(unsigned line, IUnknown *unk, const WCHAR *exhref) HRESULT hres;
hres = IHTMLAreaElement_get_href(area, &str); - ok_(__FILE__,line)(hres == S_OK, "get_href failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_href failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(str, exhref), "href = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exhref)); SysFreeString(str);
@@ -1760,7 +1760,7 @@ static void _test_area_put_href(unsigned line, IUnknown *unk, const WCHAR *exhre
str = SysAllocString(exhref); hres = IHTMLAreaElement_put_href(area, str); - ok_(__FILE__,line)(hres == S_OK, "get_href failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_href failed: %08lx\n", hres); SysFreeString(str);
_test_disp_value(line, unk, exhref); @@ -1773,7 +1773,7 @@ static void _test_option_text(unsigned line, IHTMLOptionElement *option, const W HRESULT hres;
hres = IHTMLOptionElement_get_text(option, &bstr); - ok_(__FILE__,line) (hres == S_OK, "get_text failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_text failed: %08lx\n", hres); ok_(__FILE__,line) (!lstrcmpW(bstr, text), "text=%s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); } @@ -1787,7 +1787,7 @@ static void _test_option_put_text(unsigned line, IHTMLOptionElement *option, con bstr = SysAllocString(text); hres = IHTMLOptionElement_put_text(option, bstr); SysFreeString(bstr); - ok(hres == S_OK, "put_text failed: %08x\n", hres); + ok(hres == S_OK, "put_text failed: %08lx\n", hres);
_test_option_text(line, option, text); } @@ -1799,7 +1799,7 @@ static void _test_option_value(unsigned line, IHTMLOptionElement *option, const HRESULT hres;
hres = IHTMLOptionElement_get_value(option, &bstr); - ok_(__FILE__,line) (hres == S_OK, "get_value failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_value failed: %08lx\n", hres); ok_(__FILE__,line) (!lstrcmpW(bstr, value), "value=%s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); } @@ -1813,7 +1813,7 @@ static void _test_option_put_value(unsigned line, IHTMLOptionElement *option, co bstr = SysAllocString(value); hres = IHTMLOptionElement_put_value(option, bstr); SysFreeString(bstr); - ok(hres == S_OK, "put_value failed: %08x\n", hres); + ok(hres == S_OK, "put_value failed: %08lx\n", hres);
_test_option_value(line, option, value); } @@ -1825,7 +1825,7 @@ static void _test_option_selected(unsigned line, IHTMLOptionElement *option, VAR HRESULT hres;
hres = IHTMLOptionElement_get_selected(option, &b); - ok_(__FILE__,line)(hres == S_OK, "get_selected failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_selected failed: %08lx\n", hres); ok_(__FILE__,line)(b == ex, "selected = %x, expected %x\n", b, ex); }
@@ -1835,7 +1835,7 @@ static void _test_option_put_selected(unsigned line, IHTMLOptionElement *option, HRESULT hres;
hres = IHTMLOptionElement_put_selected(option, b); - ok_(__FILE__,line)(hres == S_OK, "put_selected failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_selected failed: %08lx\n", hres); _test_option_selected(line, option, b); }
@@ -1846,13 +1846,13 @@ static void _test_option_get_index(unsigned line, IHTMLOptionElement *option, LO LONG val;
hres = IHTMLOptionElement_get_index(option, NULL); - ok_(__FILE__,line)(hres == E_INVALIDARG, "Expect E_INVALIDARG, got %08x\n", hres); + ok_(__FILE__,line)(hres == E_INVALIDARG, "Expect E_INVALIDARG, got %08lx\n", hres);
val = 12345678; hres = IHTMLOptionElement_get_index(option, &val); - ok_(__FILE__,line)(hres == S_OK, "get_index failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_index failed: %08lx\n", hres); ok_(__FILE__,line)(val == exval || broken(val == 12345678), /* Win2k doesn't touch it*/ - "value = %d, expected = %d\n", val, exval); + "value = %ld, expected = %ld\n", val, exval); }
#define test_option_put_defaultSelected(o,d) _test_option_put_defaultSelected(__LINE__,o,d) @@ -1861,7 +1861,7 @@ static void _test_option_put_defaultSelected(unsigned line, IHTMLOptionElement * HRESULT hres;
hres = IHTMLOptionElement_put_defaultSelected(option, b); - ok_(__FILE__,line)(hres == S_OK, "put_defaultSelected %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_defaultSelected %08lx\n", hres); }
#define test_option_defaultSelected(o,e) _test_option_defaultSelected(__LINE__,o,e) @@ -1871,11 +1871,11 @@ static void _test_option_defaultSelected(unsigned line, IHTMLOptionElement *opti VARIANT_BOOL b;
hres = IHTMLOptionElement_get_defaultSelected(option, NULL); - ok_(__FILE__,line)(hres == E_POINTER, "Expect E_POINTER, got %08x\n", hres); + ok_(__FILE__,line)(hres == E_POINTER, "Expect E_POINTER, got %08lx\n", hres);
b = 0x100; hres = IHTMLOptionElement_get_defaultSelected(option, &b); - ok_(__FILE__,line)(hres == S_OK, "get_defaultSelected failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_defaultSelected failed: %08lx\n", hres); ok_(__FILE__,line)(b == ex, "b = %x, expected = %x\n", b, ex); }
@@ -1918,7 +1918,7 @@ static void _test_textarea_value(unsigned line, IUnknown *unk, const WCHAR *exva
hres = IHTMLTextAreaElement_get_value(textarea, &value); IHTMLTextAreaElement_Release(textarea); - ok_(__FILE__,line)(hres == S_OK, "get_value failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_value failed: %08lx\n", hres); if(exval) ok_(__FILE__,line)(!lstrcmpW(value, exval), "value = %s, expected %s\n", wine_dbgstr_w(value), wine_dbgstr_w(exval)); else @@ -1935,7 +1935,7 @@ static void _test_textarea_put_value(unsigned line, IUnknown *unk, const WCHAR *
hres = IHTMLTextAreaElement_put_value(textarea, tmp); IHTMLTextAreaElement_Release(textarea); - ok_(__FILE__,line)(hres == S_OK, "put_value failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_value failed: %08lx\n", hres); SysFreeString(tmp);
_test_textarea_value(line, unk, value); @@ -1950,7 +1950,7 @@ static void _test_textarea_defaultvalue(unsigned line, IUnknown *unk, const WCHA
hres = IHTMLTextAreaElement_get_defaultValue(textarea, &value); IHTMLTextAreaElement_Release(textarea); - ok_(__FILE__,line)(hres == S_OK, "get_defaultValue failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_defaultValue failed: %08lx\n", hres); if(exval) ok_(__FILE__,line)(!lstrcmpW(value, exval), "defaultValue = %s, expected %s\n", wine_dbgstr_w(value), wine_dbgstr_w(exval)); else @@ -1967,7 +1967,7 @@ static void _test_textarea_put_defaultvalue(unsigned line, IUnknown *unk, const
hres = IHTMLTextAreaElement_put_defaultValue(textarea, tmp); IHTMLTextAreaElement_Release(textarea); - ok_(__FILE__,line)(hres == S_OK, "put_defaultValue failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_defaultValue failed: %08lx\n", hres); SysFreeString(tmp);
_test_textarea_defaultvalue(line, unk, value); @@ -1982,7 +1982,7 @@ static void _test_textarea_readonly(unsigned line, IUnknown *unk, VARIANT_BOOL e
hres = IHTMLTextAreaElement_get_readOnly(textarea, &b); IHTMLTextAreaElement_Release(textarea); - ok_(__FILE__,line)(hres == S_OK, "get_readOnly failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_readOnly failed: %08lx\n", hres); ok_(__FILE__,line)(b == ex, "readOnly = %x, expected %x\n", b, ex); }
@@ -1994,7 +1994,7 @@ static void _test_textarea_put_readonly(unsigned line, IUnknown *unk, VARIANT_BO
hres = IHTMLTextAreaElement_put_readOnly(textarea, b); IHTMLTextAreaElement_Release(textarea); - ok_(__FILE__,line)(hres == S_OK, "put_readOnly failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_readOnly failed: %08lx\n", hres);
_test_textarea_readonly(line, unk, b); } @@ -2008,7 +2008,7 @@ static void _test_textarea_type(unsigned line, IUnknown *unk)
hres = IHTMLTextAreaElement_get_type(textarea, &type); IHTMLTextAreaElement_Release(textarea); - ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(type, L"textarea"), "type = %s, expected textarea\n", wine_dbgstr_w(type)); SysFreeString(type); } @@ -2022,7 +2022,7 @@ static IHTMLFormElement *_get_textarea_form(unsigned line, IUnknown *unk)
hres = IHTMLTextAreaElement_get_form(textarea, &form); IHTMLTextAreaElement_Release(textarea); - ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08lx\n", hres);
return form; } @@ -2036,7 +2036,7 @@ static void _test_comment_text(unsigned line, IUnknown *unk, const WCHAR *extext HRESULT hres;
hres = IHTMLCommentElement_get_text(comment, &text); - ok_(__FILE__,line)(hres == S_OK, "get_text failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_text failed: %08lx\n", hres); if((p = wcsstr(extext, L"-->")) && SysStringLen(text) == p - extext) /* Some IEs drop comment ending */ ok_(__FILE__,line)(!wcsncmp(text, extext, p - extext), "text = "%s", expected "%s"\n", wine_dbgstr_w(text), wine_dbgstr_w(extext)); else @@ -2055,7 +2055,7 @@ static IHTMLDOMAttribute *_create_attr(unsigned line, IUnknown *unk, const char HRESULT hres;
hres = IHTMLDocument5_createAttribute(doc, str, &attr); - ok_(__FILE__,line)(hres == S_OK, "createAttribute failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "createAttribute failed: %08lx\n", hres); SysFreeString(str); IHTMLDocument5_Release(doc);
@@ -2069,7 +2069,7 @@ static void _test_attr_specified(unsigned line, IHTMLDOMAttribute *attr, VARIANT HRESULT hres;
hres = IHTMLDOMAttribute_get_specified(attr, &specified); - ok_(__FILE__,line)(hres == S_OK, "get_specified failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_specified failed: %08lx\n", hres); ok_(__FILE__,line)(specified == expected, "specified = %x, expected %x\n", specified, expected); }
@@ -2081,7 +2081,7 @@ static void _test_attr_expando(unsigned line, IHTMLDOMAttribute *attr, VARIANT_B HRESULT hres;
hres = IHTMLDOMAttribute2_get_expando(attr2, &expando); - ok_(__FILE__,line)(hres == S_OK, "get_expando failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_expando failed: %08lx\n", hres); ok_(__FILE__,line)(expando == expected, "expando = %x, expected %x\n", expando, expected);
IHTMLDOMAttribute2_Release(attr2); @@ -2095,7 +2095,7 @@ static void _test_attr_value(unsigned line, IHTMLDOMAttribute *attr, const WCHAR HRESULT hres;
hres = IHTMLDOMAttribute2_get_value(attr2, &val); - ok_(__FILE__,line)(hres == S_OK, "get_value failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_value failed: %08lx\n", hres); if(exval) ok_(__FILE__,line)(!lstrcmpW(val, exval), "value = %s, expected %s\n", wine_dbgstr_w(val), wine_dbgstr_w(exval)); else @@ -2117,16 +2117,16 @@ static void _test_comment_attrs(unsigned line, IUnknown *unk) HRESULT hres;
hres = IHTMLElement4_getAttributeNode(elem4, name, &attr); - ok(hres == S_OK, "getAttributeNode failed: %08x\n", hres); + ok(hres == S_OK, "getAttributeNode failed: %08lx\n", hres); ok(attr == NULL, "attr != NULL\n");
V_VT(&val) = VT_I4; V_I4(&val) = 1234; hres = IHTMLElement_setAttribute(elem, name, val, 0); - ok(hres == S_OK, "setAttribute failed: %08x\n", hres); + ok(hres == S_OK, "setAttribute failed: %08lx\n", hres);
hres = IHTMLElement4_getAttributeNode(elem4, name, &attr); - ok(hres == S_OK, "getAttributeNode failed: %08x\n", hres); + ok(hres == S_OK, "getAttributeNode failed: %08lx\n", hres); ok(attr != NULL, "attr == NULL\n");
test_attr_expando(attr, VARIANT_TRUE); @@ -2147,8 +2147,8 @@ static void _test_object_vspace(unsigned line, IUnknown *unk, LONG exl)
l = 0xdeadbeef; hres = IHTMLObjectElement_get_vspace(object, &l); - ok_(__FILE__,line)(hres == S_OK, "get_vspace failed: %08x\n", hres); - ok_(__FILE__,line)(l == exl, "vspace=%d, expected %d\n", l, exl); + ok_(__FILE__,line)(hres == S_OK, "get_vspace failed: %08lx\n", hres); + ok_(__FILE__,line)(l == exl, "vspace=%ld, expected %ld\n", l, exl); IHTMLObjectElement_Release(object); }
@@ -2161,7 +2161,7 @@ static void _test_object_name(unsigned line, IHTMLElement *elem, const WCHAR *ex
str = (void*)0xdeadbeef; hres = IHTMLObjectElement_get_name(object, &str); - ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08lx\n", hres); if(exname) ok_(__FILE__,line)(!lstrcmpW(str, exname), "name=%s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exname)); else @@ -2179,7 +2179,7 @@ static void _set_object_name(unsigned line, IHTMLElement *elem, const WCHAR *nam
str = SysAllocString(name); hres = IHTMLObjectElement_put_name(object, str); - ok_(__FILE__,line)(hres == S_OK, "put_name failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_name failed: %08lx\n", hres); SysFreeString(str); IHTMLObjectElement_Release(object);
@@ -2199,11 +2199,11 @@ static IHTMLOptionElement *_create_option_elem(unsigned line, IHTMLDocument2 *do HRESULT hres;
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok_(__FILE__,line) (hres == S_OK, "get_parentElement failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_parentElement failed: %08lx\n", hres);
hres = IHTMLWindow2_get_Option(window, &factory); IHTMLWindow2_Release(window); - ok_(__FILE__,line) (hres == S_OK, "get_Option failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_Option failed: %08lx\n", hres);
test_disp((IUnknown*)factory, &IID_IHTMLOptionElementFactory, NULL, L"[object]");
@@ -2214,16 +2214,16 @@ static IHTMLOptionElement *_create_option_elem(unsigned line, IHTMLDocument2 *do V_VT(&empty) = VT_EMPTY;
hres = IHTMLOptionElementFactory_QueryInterface(factory, &IID_IDispatch, (void**)&disp); - ok_(__FILE__,line)(hres == S_OK, "Could not get IDispatch: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Could not get IDispatch: %08lx\n", hres);
args[1] = text; args[0] = value; hres = IDispatch_Invoke(disp, DISPID_VALUE, &IID_NULL, 0, DISPATCH_CONSTRUCT, &dp, &option_var, NULL, NULL); IDispatch_Release(disp); - ok_(__FILE__,line)(hres == S_OK, "Invoke(DISPID_VALUE) returned: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Invoke(DISPID_VALUE) returned: %08lx\n", hres); ok_(__FILE__,line)(V_VT(&option_var) == VT_DISPATCH, "VT(option_var) = %d\n", V_VT(&option_var)); hres = IDispatch_QueryInterface(V_DISPATCH(&option_var), &IID_IHTMLOptionElement, (void**)&option); - ok_(__FILE__,line)(hres == S_OK, "Could not get IHTMLOptionElement: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Could not get IHTMLOptionElement: %08lx\n", hres); VariantClear(&option_var);
_test_option_text(line, option, txt); @@ -2232,7 +2232,7 @@ static IHTMLOptionElement *_create_option_elem(unsigned line, IHTMLDocument2 *do IHTMLOptionElement_Release(option);
hres = IHTMLOptionElementFactory_create(factory, text, value, empty, empty, &option); - ok_(__FILE__,line) (hres == S_OK, "create failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "create failed: %08lx\n", hres);
IHTMLOptionElementFactory_Release(factory); VariantClear(&text); @@ -2252,8 +2252,8 @@ static void _test_img_width(unsigned line, IHTMLImgElement *img, const LONG exp) HRESULT hres;
hres = IHTMLImgElement_get_width(img, &found); - ok_(__FILE__,line) (hres == S_OK, "get_width failed: %08x\n", hres); - ok_(__FILE__,line) (found == exp, "width=%d\n", found); + ok_(__FILE__,line) (hres == S_OK, "get_width failed: %08lx\n", hres); + ok_(__FILE__,line) (found == exp, "width=%ld\n", found); }
#define test_img_put_width(o,w) _test_img_put_width(__LINE__,o,w) @@ -2262,7 +2262,7 @@ static void _test_img_put_width(unsigned line, IHTMLImgElement *img, const LONG HRESULT hres;
hres = IHTMLImgElement_put_width(img, width); - ok(hres == S_OK, "put_width failed: %08x\n", hres); + ok(hres == S_OK, "put_width failed: %08lx\n", hres);
_test_img_width(line, img, width); } @@ -2274,8 +2274,8 @@ static void _test_img_height(unsigned line, IHTMLImgElement *img, const LONG exp HRESULT hres;
hres = IHTMLImgElement_get_height(img, &found); - ok_(__FILE__,line) (hres == S_OK, "get_height failed: %08x\n", hres); - ok_(__FILE__,line) (found == exp, "height=%d\n", found); + ok_(__FILE__,line) (hres == S_OK, "get_height failed: %08lx\n", hres); + ok_(__FILE__,line) (found == exp, "height=%ld\n", found); }
#define test_img_put_height(o,w) _test_img_put_height(__LINE__,o,w) @@ -2284,7 +2284,7 @@ static void _test_img_put_height(unsigned line, IHTMLImgElement *img, const LONG HRESULT hres;
hres = IHTMLImgElement_put_height(img, height); - ok(hres == S_OK, "put_height failed: %08x\n", hres); + ok(hres == S_OK, "put_height failed: %08lx\n", hres);
_test_img_height(line, img, height); } @@ -2301,11 +2301,11 @@ static IHTMLImgElement *_create_img_elem(unsigned line, IHTMLDocument2 *doc, HRESULT hres;
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok_(__FILE__,line) (hres == S_OK, "get_parentElement failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_parentElement failed: %08lx\n", hres);
hres = IHTMLWindow2_get_Image(window, &factory); IHTMLWindow2_Release(window); - ok_(__FILE__,line) (hres == S_OK, "get_Image failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_Image failed: %08lx\n", hres);
test_ifaces((IUnknown*)factory, img_factory_iids); test_disp((IUnknown*)factory, &IID_IHTMLImageElementFactory, NULL, L"[object]"); @@ -2329,7 +2329,7 @@ static IHTMLImgElement *_create_img_elem(unsigned line, IHTMLDocument2 *doc, }
hres = IHTMLImageElementFactory_create(factory, width, height, &img); - ok_(__FILE__,line) (hres == S_OK, "create failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "create failed: %08lx\n", hres);
IHTMLImageElementFactory_Release(factory); VariantClear(&width); @@ -2351,8 +2351,8 @@ static void _test_select_length(unsigned line, IHTMLSelectElement *select, LONG HRESULT hres;
hres = IHTMLSelectElement_get_length(select, &len); - ok_(__FILE__,line) (hres == S_OK, "get_length failed: %08x\n", hres); - ok_(__FILE__,line) (len == length, "len=%d, expected %d\n", len, length); + ok_(__FILE__,line) (hres == S_OK, "get_length failed: %08lx\n", hres); + ok_(__FILE__,line) (len == length, "len=%ld, expected %ld\n", len, length); }
#define test_select_put_length(s,l) _test_select_put_length(__LINE__,s,l) @@ -2362,7 +2362,7 @@ static void _test_select_put_length(unsigned line, IUnknown *unk, LONG length) HRESULT hres;
hres = IHTMLSelectElement_put_length(select, length); - ok_(__FILE__,line) (hres == S_OK, "put_length failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_length failed: %08lx\n", hres); _test_select_length(line, select, length); IHTMLSelectElement_Release(select); } @@ -2374,8 +2374,8 @@ static void _test_select_selidx(unsigned line, IHTMLSelectElement *select, LONG HRESULT hres;
hres = IHTMLSelectElement_get_selectedIndex(select, &idx); - ok_(__FILE__,line) (hres == S_OK, "get_selectedIndex failed: %08x\n", hres); - ok_(__FILE__,line) (idx == index, "idx=%d, expected %d\n", idx, index); + ok_(__FILE__,line) (hres == S_OK, "get_selectedIndex failed: %08lx\n", hres); + ok_(__FILE__,line) (idx == index, "idx=%ld, expected %ld\n", idx, index); }
#define test_select_put_selidx(s,i) _test_select_put_selidx(__LINE__,s,i) @@ -2384,7 +2384,7 @@ static void _test_select_put_selidx(unsigned line, IHTMLSelectElement *select, L HRESULT hres;
hres = IHTMLSelectElement_put_selectedIndex(select, index); - ok_(__FILE__,line) (hres == S_OK, "get_selectedIndex failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_selectedIndex failed: %08lx\n", hres); _test_select_selidx(line, select, index); }
@@ -2395,7 +2395,7 @@ static void _test_select_value(unsigned line, IHTMLSelectElement *select, const HRESULT hres;
hres = IHTMLSelectElement_get_value(select, &val); - ok_(__FILE__,line) (hres == S_OK, "get_value failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_value failed: %08lx\n", hres); if(exval) ok_(__FILE__,line) (!lstrcmpW(val, exval), "unexpected value %s\n", wine_dbgstr_w(val)); else @@ -2412,7 +2412,7 @@ static void _test_select_set_value(unsigned line, IHTMLSelectElement *select, co bstr = SysAllocString(val); hres = IHTMLSelectElement_put_value(select, bstr); SysFreeString(bstr); - ok_(__FILE__,line) (hres == S_OK, "put_value failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_value failed: %08lx\n", hres); }
#define test_select_type(s,t) _test_select_type(__LINE__,s,t) @@ -2422,7 +2422,7 @@ static void _test_select_type(unsigned line, IHTMLSelectElement *select, const W HRESULT hres;
hres = IHTMLSelectElement_get_type(select, &type); - ok_(__FILE__,line) (hres == S_OK, "get_type failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_type failed: %08lx\n", hres); ok_(__FILE__,line) (!lstrcmpW(type, extype), "type=%s, expected %s\n", wine_dbgstr_w(type), wine_dbgstr_w(extype)); SysFreeString(type); } @@ -2434,7 +2434,7 @@ static void _test_select_multiple(unsigned line, IHTMLSelectElement *select, VAR HRESULT hres;
hres = IHTMLSelectElement_get_multiple(select, &b); - ok_(__FILE__,line) (hres == S_OK, "get_multiple failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_multiple failed: %08lx\n", hres); ok_(__FILE__,line) (b == exmultiple, "multiple=%x, expected %x\n", b, exmultiple); }
@@ -2444,7 +2444,7 @@ static void _test_select_set_multiple(unsigned line, IHTMLSelectElement *select, HRESULT hres;
hres = IHTMLSelectElement_put_multiple(select, val); - ok_(__FILE__,line) (hres == S_OK, "put_multiple failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_multiple failed: %08lx\n", hres);
_test_select_multiple(line, select, val); } @@ -2456,12 +2456,12 @@ static void _test_select_size(unsigned line, IHTMLSelectElement *select, LONG ex LONG val;
hres = IHTMLSelectElement_get_size(select, NULL); - ok_(__FILE__,line) (hres == E_INVALIDARG, "got %08x, expected E_INVALIDARG\n", hres); + ok_(__FILE__,line) (hres == E_INVALIDARG, "got %08lx, expected E_INVALIDARG\n", hres);
val = 0xdeadbeef; hres = IHTMLSelectElement_get_size(select, &val); - ok_(__FILE__,line) (hres == S_OK, "get_size failed: %08x\n", hres); - ok_(__FILE__,line) (val == exval, "size = %d, expected %d\n", val, exval); + ok_(__FILE__,line) (hres == S_OK, "get_size failed: %08lx\n", hres); + ok_(__FILE__,line) (val == exval, "size = %ld, expected %ld\n", val, exval); }
#define test_select_set_size(s,v,e) _test_select_set_size(__LINE__,s,v,e) @@ -2470,7 +2470,7 @@ static void _test_select_set_size(unsigned line, IHTMLSelectElement *select, LON HRESULT hres;
hres = IHTMLSelectElement_put_size(select, val); - ok_(__FILE__,line) (hres == exhres, "put_size(%d) got %08x, expect %08x\n", val, hres, exhres); + ok_(__FILE__,line) (hres == exhres, "put_size(%ld) got %08lx, expect %08lx\n", val, hres, exhres); }
#define test_select_name(s,v) _test_select_name(__LINE__,s,v) @@ -2481,7 +2481,7 @@ static void _test_select_name(unsigned line, IHTMLSelectElement *select, const W
text = NULL; hres = IHTMLSelectElement_get_name(select, &text); - ok_(__FILE__,line) (hres == S_OK, "get_name failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_name failed: %08lx\n", hres); if(extext) { ok_(__FILE__,line) (text != NULL, "text == NULL\n"); ok_(__FILE__,line) (!lstrcmpW(text, extext), "name = %s, expected %s\n", @@ -2500,7 +2500,7 @@ static void _test_select_set_name(unsigned line, IHTMLSelectElement *select, con bstr = SysAllocString(text);
hres = IHTMLSelectElement_put_name(select, bstr); - ok_(__FILE__,line) (hres == S_OK, "put_name(%s) failed: %08x\n", wine_dbgstr_w(bstr), hres); + ok_(__FILE__,line) (hres == S_OK, "put_name(%s) failed: %08lx\n", wine_dbgstr_w(bstr), hres); SysFreeString(bstr); }
@@ -2511,7 +2511,7 @@ static void _test_range_text(unsigned line, IHTMLTxtRange *range, const WCHAR *e HRESULT hres;
hres = IHTMLTxtRange_get_text(range, &text); - ok_(__FILE__, line) (hres == S_OK, "get_text failed: %08x\n", hres); + ok_(__FILE__, line) (hres == S_OK, "get_text failed: %08lx\n", hres);
if(extext) { ok_(__FILE__, line) (text != NULL, "text == NULL\n"); @@ -2530,7 +2530,7 @@ static void _test_range_collapse(unsigned line, IHTMLTxtRange *range, BOOL b) HRESULT hres;
hres = IHTMLTxtRange_collapse(range, b); - ok_(__FILE__, line) (hres == S_OK, "collapse failed: %08x\n", hres); + ok_(__FILE__, line) (hres == S_OK, "collapse failed: %08lx\n", hres); _test_range_text(line, range, NULL); }
@@ -2542,7 +2542,7 @@ static void _test_range_expand(unsigned line, IHTMLTxtRange *range, LPWSTR unit, HRESULT hres;
hres = IHTMLTxtRange_expand(range, unit, &b); - ok_(__FILE__,line) (hres == S_OK, "expand failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "expand failed: %08lx\n", hres); ok_(__FILE__,line) (b == exb, "b=%x, expected %x\n", b, exb); _test_range_text(line, range, extext); } @@ -2554,8 +2554,8 @@ static void _test_range_move(unsigned line, IHTMLTxtRange *range, LPWSTR unit, L HRESULT hres;
hres = IHTMLTxtRange_move(range, unit, cnt, &c); - ok_(__FILE__,line) (hres == S_OK, "move failed: %08x\n", hres); - ok_(__FILE__,line) (c == excnt, "count=%d, expected %d\n", c, excnt); + ok_(__FILE__,line) (hres == S_OK, "move failed: %08lx\n", hres); + ok_(__FILE__,line) (c == excnt, "count=%ld, expected %ld\n", c, excnt); _test_range_text(line, range, NULL); }
@@ -2567,8 +2567,8 @@ static void _test_range_movestart(unsigned line, IHTMLTxtRange *range, HRESULT hres;
hres = IHTMLTxtRange_moveStart(range, unit, cnt, &c); - ok_(__FILE__,line) (hres == S_OK, "move failed: %08x\n", hres); - ok_(__FILE__,line) (c == excnt, "count=%d, expected %d\n", c, excnt); + ok_(__FILE__,line) (hres == S_OK, "move failed: %08lx\n", hres); + ok_(__FILE__,line) (c == excnt, "count=%ld, expected %ld\n", c, excnt); }
#define test_range_moveend(r,u,c,e) _test_range_moveend(__LINE__,r,u,c,e) @@ -2578,8 +2578,8 @@ static void _test_range_moveend(unsigned line, IHTMLTxtRange *range, LPWSTR unit HRESULT hres;
hres = IHTMLTxtRange_moveEnd(range, unit, cnt, &c); - ok_(__FILE__,line) (hres == S_OK, "move failed: %08x\n", hres); - ok_(__FILE__,line) (c == excnt, "count=%d, expected %d\n", c, excnt); + ok_(__FILE__,line) (hres == S_OK, "move failed: %08lx\n", hres); + ok_(__FILE__,line) (c == excnt, "count=%ld, expected %ld\n", c, excnt); }
#define test_range_put_text(r,t) _test_range_put_text(__LINE__,r,t) @@ -2589,7 +2589,7 @@ static void _test_range_put_text(unsigned line, IHTMLTxtRange *range, const WCHA BSTR bstr = SysAllocString(text);
hres = IHTMLTxtRange_put_text(range, bstr); - ok_(__FILE__,line) (hres == S_OK, "put_text failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_text failed: %08lx\n", hres); SysFreeString(bstr); _test_range_text(line, range, NULL); } @@ -2602,7 +2602,7 @@ static void _test_range_inrange(unsigned line, IHTMLTxtRange *range1, IHTMLTxtRa
b = 0xe0e0; hres = IHTMLTxtRange_inRange(range1, range2, &b); - ok_(__FILE__,line) (hres == S_OK, "(1->2) isEqual failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "(1->2) isEqual failed: %08lx\n", hres); ok_(__FILE__,line) (b == exb, "(1->2) b=%x, expected %x\n", b, exb); }
@@ -2614,12 +2614,12 @@ static void _test_range_isequal(unsigned line, IHTMLTxtRange *range1, IHTMLTxtRa
b = 0xe0e0; hres = IHTMLTxtRange_isEqual(range1, range2, &b); - ok_(__FILE__,line) (hres == S_OK, "(1->2) isEqual failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "(1->2) isEqual failed: %08lx\n", hres); ok_(__FILE__,line) (b == exb, "(1->2) b=%x, expected %x\n", b, exb);
b = 0xe0e0; hres = IHTMLTxtRange_isEqual(range2, range1, &b); - ok_(__FILE__,line) (hres == S_OK, "(2->1) isEqual failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "(2->1) isEqual failed: %08lx\n", hres); ok_(__FILE__,line) (b == exb, "(2->1) b=%x, expected %x\n", b, exb);
if(exb) { @@ -2635,7 +2635,7 @@ static void _test_range_paste_html(unsigned line, IHTMLTxtRange *range, const WC HRESULT hres;
hres = IHTMLTxtRange_pasteHTML(range, str); - ok_(__FILE__,line)(hres == S_OK, "pasteHTML failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "pasteHTML failed: %08lx\n", hres); SysFreeString(str); }
@@ -2646,7 +2646,7 @@ static void _test_range_parent(unsigned line, IHTMLTxtRange *range, elem_type_t HRESULT hres;
hres = IHTMLTxtRange_parentElement(range, &elem); - ok_(__FILE__,line) (hres == S_OK, "parentElement failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "parentElement failed: %08lx\n", hres);
_test_elem_type(line, (IUnknown*)elem, type);
@@ -2665,7 +2665,7 @@ static IHTMLElement *_get_elem_col_item_idx(unsigned line, IHTMLElementCollectio V_VT(&name) = VT_I4; V_I4(&name) = i; hres = IHTMLElementCollection_item(col, name, index, &disp); - ok_(__FILE__,line)(hres == S_OK, "item failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "item failed: %08lx\n", hres); ok_(__FILE__,line)(disp != NULL, "disp == NULL\n");
elem = _get_elem_iface(line, (IUnknown*)disp); @@ -2688,13 +2688,13 @@ static void _test_elem_collection(unsigned line, IUnknown *unk, HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLElementCollection, (void**)&col); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElementCollection: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElementCollection: %08lx\n", hres);
test_disp((IUnknown*)col, &DIID_DispHTMLElementCollection, NULL, L"[object]");
hres = IHTMLElementCollection_get_length(col, &len); - ok_(__FILE__,line) (hres == S_OK, "get_length failed: %08x\n", hres); - ok_(__FILE__,line) (len == exlen, "len=%d, expected %d\n", len, exlen); + ok_(__FILE__,line) (hres == S_OK, "get_length failed: %08lx\n", hres); + ok_(__FILE__,line) (len == exlen, "len=%ld, expected %ld\n", len, exlen);
if(len > exlen) len = exlen; @@ -2702,18 +2702,18 @@ static void _test_elem_collection(unsigned line, IUnknown *unk, V_VT(&index) = VT_EMPTY;
hres = IHTMLElementCollection_get__newEnum(col, &enum_unk); - ok_(__FILE__,line)(hres == S_OK, "_newEnum failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "_newEnum failed: %08lx\n", hres);
hres = IUnknown_QueryInterface(enum_unk, &IID_IEnumVARIANT, (void**)&enum_var); IUnknown_Release(enum_unk); - ok_(__FILE__,line)(hres == S_OK, "Could not get IEnumVARIANT iface: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Could not get IEnumVARIANT iface: %08lx\n", hres);
for(i=0; i<len; i++) { V_VT(&name) = VT_I4; V_I4(&name) = i; disp = (void*)0xdeadbeef; hres = IHTMLElementCollection_item(col, name, index, &disp); - ok_(__FILE__,line) (hres == S_OK, "item(%d) failed: %08x\n", i, hres); + ok_(__FILE__,line) (hres == S_OK, "item(%ld) failed: %08lx\n", i, hres); ok_(__FILE__,line) (disp != NULL, "item returned NULL\n"); if(FAILED(hres) || !disp) continue; @@ -2725,7 +2725,7 @@ static void _test_elem_collection(unsigned line, IUnknown *unk, V_I4(&name) = 0; disp2 = (void*)0xdeadbeef; hres = IHTMLElementCollection_item(col, name, index, &disp2); - ok_(__FILE__,line) (hres == S_OK, "item(%d) failed: %08x\n", i, hres); + ok_(__FILE__,line) (hres == S_OK, "item(%ld) failed: %08lx\n", i, hres); ok_(__FILE__,line) (iface_cmp((IUnknown*)disp, (IUnknown*)disp2), "disp != disp2\n"); if(disp2) IDispatch_Release(disp2); @@ -2734,9 +2734,9 @@ static void _test_elem_collection(unsigned line, IUnknown *unk, fetched = 0; V_VT(&v) = VT_ERROR; hres = IEnumVARIANT_Next(enum_var, 1, &v, i ? &fetched : NULL); - ok_(__FILE__,line)(hres == S_OK, "Next failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Next failed: %08lx\n", hres); if(i) - ok_(__FILE__,line)(fetched == 1, "fetched = %d\n", fetched); + ok_(__FILE__,line)(fetched == 1, "fetched = %ld\n", fetched); ok_(__FILE__,line)(V_VT(&v) == VT_DISPATCH && V_DISPATCH(&v), "V_VT(v) = %d\n", V_VT(&v)); ok_(__FILE__,line)(iface_cmp((IUnknown*)disp, (IUnknown*)V_DISPATCH(&v)), "disp != V_DISPATCH(v)\n"); IDispatch_Release(V_DISPATCH(&v)); @@ -2747,28 +2747,28 @@ static void _test_elem_collection(unsigned line, IUnknown *unk, fetched = 0xdeadbeef; V_VT(&v) = VT_BOOL; hres = IEnumVARIANT_Next(enum_var, 1, &v, &fetched); - ok_(__FILE__,line)(hres == S_FALSE, "Next returned %08x, expected S_FALSE\n", hres); - ok_(__FILE__,line)(fetched == 0, "fetched = %d\n", fetched); + ok_(__FILE__,line)(hres == S_FALSE, "Next returned %08lx, expected S_FALSE\n", hres); + ok_(__FILE__,line)(fetched == 0, "fetched = %ld\n", fetched); ok_(__FILE__,line)(V_VT(&v) == VT_BOOL, "V_VT(v) = %d\n", V_VT(&v));
hres = IEnumVARIANT_Reset(enum_var); - ok_(__FILE__,line)(hres == S_OK, "Reset failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Reset failed: %08lx\n", hres);
fetched = 0xdeadbeef; V_VT(&v) = VT_BOOL; hres = IEnumVARIANT_Next(enum_var, 0, &v, &fetched); - ok_(__FILE__,line)(hres == S_OK, "Next returned %08x, expected S_FALSE\n", hres); - ok_(__FILE__,line)(fetched == 0, "fetched = %d\n", fetched); + ok_(__FILE__,line)(hres == S_OK, "Next returned %08lx, expected S_FALSE\n", hres); + ok_(__FILE__,line)(fetched == 0, "fetched = %ld\n", fetched); ok_(__FILE__,line)(V_VT(&v) == VT_BOOL, "V_VT(v) = %d\n", V_VT(&v));
hres = IEnumVARIANT_Skip(enum_var, len > 2 ? len-2 : 0); - ok_(__FILE__,line)(hres == S_OK, "Skip failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Skip failed: %08lx\n", hres);
memset(vs, 0, sizeof(vs)); fetched = 0; hres = IEnumVARIANT_Next(enum_var, ARRAY_SIZE(vs), vs, &fetched); - ok_(__FILE__,line)(hres == S_FALSE, "Next failed: %08x\n", hres); - ok_(__FILE__,line)(fetched == (len > 2 ? 2 : len), "fetched = %d\n", fetched); + ok_(__FILE__,line)(hres == S_FALSE, "Next failed: %08lx\n", hres); + ok_(__FILE__,line)(fetched == (len > 2 ? 2 : len), "fetched = %ld\n", fetched); if(len) { ok_(__FILE__,line)(V_VT(vs) == VT_DISPATCH && V_DISPATCH(vs), "V_VT(vs[0]) = %d\n", V_VT(vs)); IDispatch_Release(V_DISPATCH(vs)); @@ -2779,10 +2779,10 @@ static void _test_elem_collection(unsigned line, IUnknown *unk, }
hres = IEnumVARIANT_Reset(enum_var); - ok_(__FILE__,line)(hres == S_OK, "Reset failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Reset failed: %08lx\n", hres);
hres = IEnumVARIANT_Skip(enum_var, len+1); - ok_(__FILE__,line)(hres == S_FALSE, "Skip failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_FALSE, "Skip failed: %08lx\n", hres);
IEnumVARIANT_Release(enum_var);
@@ -2790,28 +2790,28 @@ static void _test_elem_collection(unsigned line, IUnknown *unk, V_I4(&name) = len; disp = (void*)0xdeadbeef; hres = IHTMLElementCollection_item(col, name, index, &disp); - ok_(__FILE__,line) (hres == S_OK, "item failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "item failed: %08lx\n", hres); ok_(__FILE__,line) (disp == NULL, "disp != NULL\n");
V_VT(&name) = VT_UI4; V_I4(&name) = len; disp = (void*)0xdeadbeef; hres = IHTMLElementCollection_item(col, name, index, &disp); - ok_(__FILE__,line) (hres == S_OK, "item failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "item failed: %08lx\n", hres); ok_(__FILE__,line) (disp == NULL, "disp != NULL\n");
V_VT(&name) = VT_INT; V_I4(&name) = len; disp = (void*)0xdeadbeef; hres = IHTMLElementCollection_item(col, name, index, &disp); - ok_(__FILE__,line) (hres == S_OK, "item failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "item failed: %08lx\n", hres); ok_(__FILE__,line) (disp == NULL, "disp != NULL\n");
V_VT(&name) = VT_UINT; V_I4(&name) = len; disp = (void*)0xdeadbeef; hres = IHTMLElementCollection_item(col, name, index, &disp); - ok_(__FILE__,line) (hres == S_OK, "item failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "item failed: %08lx\n", hres); ok_(__FILE__,line) (disp == NULL, "disp != NULL\n");
V_VT(&name) = VT_I4; @@ -2819,9 +2819,9 @@ static void _test_elem_collection(unsigned line, IUnknown *unk, disp = (void*)0xdeadbeef; hres = IHTMLElementCollection_item(col, name, index, &disp); if(compat_mode < COMPAT_IE9) - ok_(__FILE__,line) (hres == E_INVALIDARG, "item failed: %08x, expected E_INVALIDARG\n", hres); + ok_(__FILE__,line) (hres == E_INVALIDARG, "item failed: %08lx, expected E_INVALIDARG\n", hres); else - ok_(__FILE__,line) (hres == S_OK, "item failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "item failed: %08lx\n", hres); ok_(__FILE__,line) (disp == NULL, "disp != NULL\n");
IHTMLElementCollection_Release(col); @@ -2836,7 +2836,7 @@ static void _test_elem_all(unsigned line, IUnknown *unk, const elem_type_t *elem
hres = IHTMLElement_get_all(elem, &disp); IHTMLElement_Release(elem); - ok_(__FILE__,line)(hres == S_OK, "get_all failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_all failed: %08lx\n", hres);
_test_elem_collection(line, (IUnknown*)disp, elem_types, exlen); IDispatch_Release(disp); @@ -2849,7 +2849,7 @@ static void _test_doc_all(unsigned line, IHTMLDocument2 *doc, const elem_type_t HRESULT hres;
hres = IHTMLDocument2_get_all(doc, &col); - ok_(__FILE__,line)(hres == S_OK, "get_all failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_all failed: %08lx\n", hres);
_test_elem_collection(line, (IUnknown*)col, elem_types, exlen); IHTMLElementCollection_Release(col); @@ -2862,9 +2862,9 @@ static LONG _test_children_collection_length(unsigned line, IHTMLDOMChildrenColl HRESULT hres;
hres = IHTMLDOMChildrenCollection_get_length(collection, &length); - ok_(__FILE__,line)(hres == S_OK, "get_length failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_length failed: %08lx\n", hres); if(exlen != -1) - ok_(__FILE__,line)(length == exlen, "length = %d, expected %d\n", length, exlen); + ok_(__FILE__,line)(length == exlen, "length = %ld, expected %ld\n", length, exlen);
return length; } @@ -2883,7 +2883,7 @@ static void _test_elem_getelembytag(unsigned line, IUnknown *unk, elem_type_t ty hres = IHTMLElement2_getElementsByTagName(elem, tmp, &col); SysFreeString(tmp); IHTMLElement2_Release(elem); - ok_(__FILE__,line) (hres == S_OK, "getElementByTagName failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "getElementByTagName failed: %08lx\n", hres); ok_(__FILE__,line) (col != NULL, "col == NULL\n");
if(exlen) { @@ -2914,7 +2914,7 @@ static void _test_doc_getelembytag(unsigned line, IHTMLDocument2 *unk, const cha tmp = SysAllocString(elem_type_infos[type].tag); hres = IHTMLDocument3_getElementsByTagName(doc, tmp, &col); SysFreeString(tmp); - ok_(__FILE__,line) (hres == S_OK, "getElementByTagName failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "getElementByTagName failed: %08lx\n", hres); ok_(__FILE__,line) (col != NULL, "col == NULL\n");
if(exlen) { @@ -2937,7 +2937,7 @@ static void _test_elem_innertext(unsigned line, IHTMLElement *elem, const WCHAR HRESULT hres;
hres = IHTMLElement_get_innerText(elem, &text); - ok_(__FILE__,line) (hres == S_OK, "get_innerText failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_innerText failed: %08lx\n", hres); if(extext) ok_(__FILE__,line) (!lstrcmpW(text, extext), "get_innerText returned %s expected %s\n", wine_dbgstr_w(text), wine_dbgstr_w(extext)); @@ -2955,7 +2955,7 @@ static void _test_elem_set_innertext(unsigned line, IHTMLElement *elem, const WC
str = SysAllocString(text); hres = IHTMLElement_put_innerText(elem, str); - ok_(__FILE__,line) (hres == S_OK, "put_innerText failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_innerText failed: %08lx\n", hres); SysFreeString(str);
_test_elem_innertext(line, elem, text); @@ -2973,7 +2973,7 @@ static void _test_elem_set_innertext(unsigned line, IHTMLElement *elem, const WC ok(node != NULL, "node == NULL\n"); if(node) { type = _get_node_type(line, (IUnknown*)node); - ok(type == 3, "type=%d\n", type); + ok(type == 3, "type=%ld\n", type); IHTMLDOMNode_Release(node); }
@@ -2989,7 +2989,7 @@ static void _test_elem_outertext(unsigned line, IHTMLElement *elem, const WCHAR HRESULT hres;
hres = IHTMLElement_get_outerText(elem, &text); - ok_(__FILE__,line) (hres == S_OK, "get_outerText failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_outerText failed: %08lx\n", hres); if(extext) ok_(__FILE__,line) (!lstrcmpW(text, extext), "get_outerText returned %s expected %s\n", wine_dbgstr_w(text), wine_dbgstr_w(extext)); @@ -3005,7 +3005,7 @@ static void _test_elem_set_outertext(unsigned line, IHTMLElement *elem, const WC HRESULT hres;
hres = IHTMLElement_put_outerText(elem, str); - ok_(__FILE__,line) (hres == S_OK, "put_outerText failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_outerText failed: %08lx\n", hres); SysFreeString(str); }
@@ -3016,7 +3016,7 @@ static void _test_elem_set_outertext_fail(unsigned line, IHTMLElement *elem) HRESULT hres;
hres = IHTMLElement_put_outerText(elem, str); - ok_(__FILE__,line) (hres == 0x800a0258, "put_outerText failed: %08x\n", hres); + ok_(__FILE__,line) (hres == 0x800a0258, "put_outerText failed: %08lx\n", hres); SysFreeString(str); }
@@ -3028,7 +3028,7 @@ static void _test_elem_innerhtml(unsigned line, IUnknown *unk, const WCHAR *inne HRESULT hres;
hres = IHTMLElement_get_innerHTML(elem, &html); - ok_(__FILE__,line)(hres == S_OK, "get_innerHTML failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_innerHTML failed: %08lx\n", hres); if(inner_html) ok_(__FILE__,line)(!lstrcmpW(html, inner_html), "unexpected innerHTML: %s\n", wine_dbgstr_w(html)); else @@ -3047,7 +3047,7 @@ static void _test_elem_set_innerhtml(unsigned line, IUnknown *unk, const WCHAR *
html = SysAllocString(inner_html); hres = IHTMLElement_put_innerHTML(elem, html); - ok_(__FILE__,line)(hres == S_OK, "put_innerHTML failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_innerHTML failed: %08lx\n", hres);
IHTMLElement_Release(elem); SysFreeString(html); @@ -3062,7 +3062,7 @@ static void _test_elem_set_outerhtml(unsigned line, IUnknown *unk, const WCHAR *
html = SysAllocString(outer_html); hres = IHTMLElement_put_outerHTML(elem, html); - ok_(__FILE__,line)(hres == S_OK, "put_outerHTML failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_outerHTML failed: %08lx\n", hres);
IHTMLElement_Release(elem); SysFreeString(html); @@ -3077,7 +3077,7 @@ static void _test_elem_outerhtml(unsigned line, IUnknown *unk, const WCHAR *oute HRESULT hres;
hres = IHTMLElement_get_outerHTML(elem, &html); - ok_(__FILE__,line)(hres == S_OK, "get_outerHTML failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_outerHTML failed: %08lx\n", hres); if((p = wcsstr(outer_html, L"-->")) && !p[3] && SysStringLen(html) == p - outer_html) /* Some IEs drop comment ending */ ok_(__FILE__,line)(!wcsncmp(html, outer_html, p - outer_html), "text = "%s", expected "%s"\n", wine_dbgstr_w(html), wine_dbgstr_w(outer_html)); @@ -3096,7 +3096,7 @@ static void _test_elem_contains(unsigned line, IHTMLElement *elem, IHTMLElement
b = 100; hres = IHTMLElement_contains(elem, elem2, &b); - ok_(__FILE__,line)(hres == S_OK, "contains failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "contains failed: %08lx\n", hres); ok_(__FILE__,line)(b == exval, "contains returned %x, expected %x\n", b, exval); }
@@ -3108,7 +3108,7 @@ static void _test_elem_istextedit(unsigned line, IHTMLElement *elem, VARIANT_BOO
b = 100; hres = IHTMLElement_get_isTextEdit(elem, &b); - ok_(__FILE__,line)(hres == S_OK, "isTextEdit failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "isTextEdit failed: %08lx\n", hres); ok_(__FILE__,line)(b == exval, "isTextEdit = %x\n", b); }
@@ -3121,7 +3121,7 @@ static IHTMLDOMNode *_get_first_child(unsigned line, IUnknown *unk)
hres = IHTMLDOMNode_get_firstChild(node, &child); IHTMLDOMNode_Release(node); - ok_(__FILE__,line) (hres == S_OK, "get_firstChild failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_firstChild failed: %08lx\n", hres);
return child; } @@ -3134,7 +3134,7 @@ static void _test_node_has_child(unsigned line, IUnknown *unk, VARIANT_BOOL exb) HRESULT hres;
hres = IHTMLDOMNode_hasChildNodes(node, &b); - ok_(__FILE__,line) (hres == S_OK, "hasChildNodes failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "hasChildNodes failed: %08lx\n", hres); ok_(__FILE__,line) (b == exb, "hasChildNodes=%x, expected %x\n", b, exb);
IHTMLDOMNode_Release(node); @@ -3149,7 +3149,7 @@ static IHTMLDOMNode *_test_node_get_parent(unsigned line, IUnknown *unk)
hres = IHTMLDOMNode_get_parentNode(node, &parent); IHTMLDOMNode_Release(node); - ok_(__FILE__,line) (hres == S_OK, "get_parentNode failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_parentNode failed: %08lx\n", hres);
return parent; } @@ -3163,7 +3163,7 @@ static IHTMLDOMNode *_node_get_next(unsigned line, IUnknown *unk)
hres = IHTMLDOMNode_get_nextSibling(node, &next); IHTMLDOMNode_Release(node); - ok_(__FILE__,line) (hres == S_OK, "get_nextSiblibg failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_nextSiblibg failed: %08lx\n", hres);
return next; } @@ -3177,7 +3177,7 @@ static IHTMLDOMNode *_node_get_prev(unsigned line, IUnknown *unk)
hres = IHTMLDOMNode_get_previousSibling(node, &prev); IHTMLDOMNode_Release(node); - ok_(__FILE__,line) (hres == S_OK, "get_previousSibling failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_previousSibling failed: %08lx\n", hres);
return prev; } @@ -3191,7 +3191,7 @@ static IHTMLElement *_test_elem_get_parent(unsigned line, IUnknown *unk)
hres = IHTMLElement_get_parentElement(elem, &parent); IHTMLElement_Release(elem); - ok_(__FILE__,line) (hres == S_OK, "get_parentElement failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_parentElement failed: %08lx\n", hres);
return parent; } @@ -3205,7 +3205,7 @@ static void _test_elem3_get_disabled(unsigned line, IUnknown *unk, VARIANT_BOOL
if (!elem3) return; hres = IHTMLElement3_get_disabled(elem3, &disabled); - ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08lx\n", hres); ok_(__FILE__,line) (disabled == exb, "disabled=%x, expected %x\n", disabled, exb); IHTMLElement3_Release(elem3); } @@ -3218,7 +3218,7 @@ static void _test_elem3_set_disabled(unsigned line, IUnknown *unk, VARIANT_BOOL
if (!elem3) return; hres = IHTMLElement3_put_disabled(elem3, b); - ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08lx\n", hres);
IHTMLElement3_Release(elem3); _test_elem3_get_disabled(line, unk, b); @@ -3231,7 +3231,7 @@ static void _test_select_get_disabled(unsigned line, IHTMLSelectElement *select, HRESULT hres;
hres = IHTMLSelectElement_get_disabled(select, &disabled); - ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08lx\n", hres); ok_(__FILE__,line) (disabled == exb, "disabled=%x, expected %x\n", disabled, exb);
_test_elem3_get_disabled(line, (IUnknown*)select, exb); @@ -3242,15 +3242,15 @@ static void test_select_remove(IHTMLSelectElement *select) HRESULT hres;
hres = IHTMLSelectElement_remove(select, 3); - ok(hres == S_OK, "remove failed: %08x, expected S_OK\n", hres); + ok(hres == S_OK, "remove failed: %08lx, expected S_OK\n", hres); test_select_length(select, 2);
hres = IHTMLSelectElement_remove(select, -1); - ok(hres == E_INVALIDARG, "remove failed: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "remove failed: %08lx, expected E_INVALIDARG\n", hres); test_select_length(select, 2);
hres = IHTMLSelectElement_remove(select, 0); - ok(hres == S_OK, "remove failed:%08x\n", hres); + ok(hres == S_OK, "remove failed:%08lx\n", hres); test_select_length(select, 1); }
@@ -3262,8 +3262,8 @@ static void _test_text_length(unsigned line, IUnknown *unk, LONG l) HRESULT hres;
hres = IHTMLDOMTextNode_get_length(text, &length); - ok_(__FILE__,line)(hres == S_OK, "get_length failed: %08x\n", hres); - ok_(__FILE__,line)(length == l, "length = %d, expected %d\n", length, l); + ok_(__FILE__,line)(hres == S_OK, "get_length failed: %08lx\n", hres); + ok_(__FILE__,line)(length == l, "length = %ld, expected %ld\n", length, l); IHTMLDOMTextNode_Release(text); }
@@ -3275,7 +3275,7 @@ static void _test_text_data(unsigned line, IUnknown *unk, const WCHAR *exdata) HRESULT hres;
hres = IHTMLDOMTextNode_get_data(text, &str); - ok_(__FILE__,line)(hres == S_OK, "get_data failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_data failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(str, exdata), "data = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exdata)); IHTMLDOMTextNode_Release(text); SysFreeString(str); @@ -3289,7 +3289,7 @@ static void _set_text_data(unsigned line, IUnknown *unk, const WCHAR *data) HRESULT hres;
hres = IHTMLDOMTextNode_put_data(text, str); - ok_(__FILE__,line)(hres == S_OK, "get_data failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_data failed: %08lx\n", hres); IHTMLDOMTextNode_Release(text); SysFreeString(str); } @@ -3302,7 +3302,7 @@ static void _text_append_data(unsigned line, IUnknown *unk, const WCHAR *data) HRESULT hres;
hres = IHTMLDOMTextNode2_appendData(text, str); - ok_(__FILE__,line)(hres == S_OK, "appendData failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "appendData failed: %08lx\n", hres); IHTMLDOMTextNode2_Release(text); SysFreeString(str); } @@ -3313,7 +3313,7 @@ static void _test_select_set_disabled(unsigned line, IHTMLSelectElement *select, HRESULT hres;
hres = IHTMLSelectElement_put_disabled(select, b); - ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08lx\n", hres);
_test_select_get_disabled(line, select, b); } @@ -3327,7 +3327,7 @@ static void _test_elem_dir(unsigned line, IUnknown *unk, const WCHAR *exdir)
hres = IHTMLElement2_get_dir(elem, &dir); IHTMLElement2_Release(elem); - ok_(__FILE__, line) (hres == S_OK, "get_dir failed: %08x\n", hres); + ok_(__FILE__, line) (hres == S_OK, "get_dir failed: %08lx\n", hres); if(exdir) ok_(__FILE__, line) (!lstrcmpW(dir, exdir), "got dir: %s, expected %s\n", wine_dbgstr_w(dir), wine_dbgstr_w(exdir)); else @@ -3345,7 +3345,7 @@ static void _set_elem_dir(unsigned line, IUnknown *unk, const WCHAR *d)
hres = IHTMLElement2_put_dir(elem, dir); IHTMLElement2_Release(elem); - ok_(__FILE__, line) (hres == S_OK, "put_dir failed: %08x\n", hres); + ok_(__FILE__, line) (hres == S_OK, "put_dir failed: %08lx\n", hres); SysFreeString(dir);
_test_elem_dir(line, unk, d); @@ -3360,16 +3360,16 @@ static LONG _elem_get_scroll_height(unsigned line, IUnknown *unk) HRESULT hres;
hres = IHTMLElement2_get_scrollHeight(elem, &l); - ok_(__FILE__,line) (hres == S_OK, "get_scrollHeight failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_scrollHeight failed: %08lx\n", hres); IHTMLElement2_Release(elem);
hres = IUnknown_QueryInterface(unk, &IID_IHTMLTextContainer, (void**)&txtcont); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLTextContainer: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLTextContainer: %08lx\n", hres);
hres = IHTMLTextContainer_get_scrollHeight(txtcont, &l2); IHTMLTextContainer_Release(txtcont); - ok_(__FILE__,line) (hres == S_OK, "IHTMLTextContainer::get_scrollHeight failed: %d\n", l2); - ok_(__FILE__,line) (l == l2, "unexpected height %d, expected %d\n", l2, l); + ok_(__FILE__,line) (hres == S_OK, "IHTMLTextContainer::get_scrollHeight failed: %ld\n", l2); + ok_(__FILE__,line) (l == l2, "unexpected height %ld, expected %ld\n", l2, l);
return l; } @@ -3383,16 +3383,16 @@ static LONG _elem_get_scroll_width(unsigned line, IUnknown *unk) HRESULT hres;
hres = IHTMLElement2_get_scrollWidth(elem, &l); - ok_(__FILE__,line) (hres == S_OK, "get_scrollWidth failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_scrollWidth failed: %08lx\n", hres); IHTMLElement2_Release(elem);
hres = IUnknown_QueryInterface(unk, &IID_IHTMLTextContainer, (void**)&txtcont); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLTextContainer: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLTextContainer: %08lx\n", hres);
hres = IHTMLTextContainer_get_scrollWidth(txtcont, &l2); IHTMLTextContainer_Release(txtcont); - ok_(__FILE__,line) (hres == S_OK, "IHTMLTextContainer::get_scrollWidth failed: %d\n", l2); - ok_(__FILE__,line) (l == l2, "unexpected width %d, expected %d\n", l2, l); + ok_(__FILE__,line) (hres == S_OK, "IHTMLTextContainer::get_scrollWidth failed: %ld\n", l2); + ok_(__FILE__,line) (l == l2, "unexpected width %ld, expected %ld\n", l2, l);
return l; } @@ -3406,16 +3406,16 @@ static LONG _elem_get_scroll_top(unsigned line, IUnknown *unk) HRESULT hres;
hres = IHTMLElement2_get_scrollTop(elem, &l); - ok_(__FILE__,line) (hres == S_OK, "get_scrollTop failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_scrollTop failed: %08lx\n", hres); IHTMLElement2_Release(elem);
hres = IUnknown_QueryInterface(unk, &IID_IHTMLTextContainer, (void**)&txtcont); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLTextContainer: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLTextContainer: %08lx\n", hres);
hres = IHTMLTextContainer_get_scrollTop(txtcont, &l2); IHTMLTextContainer_Release(txtcont); - ok_(__FILE__,line) (hres == S_OK, "IHTMLTextContainer::get_scrollTop failed: %d\n", l2); - ok_(__FILE__,line) (l == l2, "unexpected top %d, expected %d\n", l2, l); + ok_(__FILE__,line) (hres == S_OK, "IHTMLTextContainer::get_scrollTop failed: %ld\n", l2); + ok_(__FILE__,line) (l == l2, "unexpected top %ld, expected %ld\n", l2, l);
return l; } @@ -3429,19 +3429,19 @@ static void _elem_get_scroll_left(unsigned line, IUnknown *unk) HRESULT hres;
hres = IHTMLElement2_get_scrollLeft(elem, NULL); - ok(hres == E_INVALIDARG, "expect E_INVALIDARG got 0x%08x\n", hres); + ok(hres == E_INVALIDARG, "expect E_INVALIDARG got 0x%08lx\n", hres);
hres = IHTMLElement2_get_scrollLeft(elem, &l); - ok(hres == S_OK, "get_scrollTop failed: %08x\n", hres); + ok(hres == S_OK, "get_scrollTop failed: %08lx\n", hres); IHTMLElement2_Release(elem);
hres = IUnknown_QueryInterface(unk, &IID_IHTMLTextContainer, (void**)&txtcont); - ok(hres == S_OK, "Could not get IHTMLTextContainer: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLTextContainer: %08lx\n", hres);
hres = IHTMLTextContainer_get_scrollLeft(txtcont, &l2); IHTMLTextContainer_Release(txtcont); - ok(hres == S_OK, "IHTMLTextContainer::get_scrollLeft failed: %d\n", l2); - ok(l == l2, "unexpected left %d, expected %d\n", l2, l); + ok(hres == S_OK, "IHTMLTextContainer::get_scrollLeft failed: %ld\n", l2); + ok(l == l2, "unexpected left %ld, expected %ld\n", l2, l); }
#define test_img_src(a,b,c) _test_img_src(__LINE__,a,b,c) @@ -3453,7 +3453,7 @@ static void _test_img_src(unsigned line, IUnknown *unk, const WCHAR *exsrc, cons
hres = IHTMLImgElement_get_src(img, &src); IHTMLImgElement_Release(img); - ok_(__FILE__,line) (hres == S_OK, "get_src failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_src failed: %08lx\n", hres); ok_(__FILE__,line) (!lstrcmpW(src, exsrc) || (broken_src && broken(!lstrcmpW(src, broken_src))), "get_src returned %s expected %s\n", wine_dbgstr_w(src), wine_dbgstr_w(exsrc)); SysFreeString(src); @@ -3470,7 +3470,7 @@ static void _test_img_set_src(unsigned line, IUnknown *unk, const WCHAR *src) hres = IHTMLImgElement_put_src(img, tmp); IHTMLImgElement_Release(img); SysFreeString(tmp); - ok_(__FILE__,line) (hres == S_OK, "put_src failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_src failed: %08lx\n", hres); }
#define test_img_alt(u,a) _test_img_alt(__LINE__,u,a) @@ -3481,7 +3481,7 @@ static void _test_img_alt(unsigned line, IUnknown *unk, const WCHAR *exalt) HRESULT hres;
hres = IHTMLImgElement_get_alt(img, &alt); - ok_(__FILE__,line) (hres == S_OK, "get_alt failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_alt failed: %08lx\n", hres); if(exalt) ok_(__FILE__,line) (!lstrcmpW(alt, exalt), "unexpected alt %s\n", wine_dbgstr_w(alt)); else @@ -3498,7 +3498,7 @@ static void _test_img_set_alt(unsigned line, IUnknown *unk, const WCHAR *alt)
tmp = SysAllocString(alt); hres = IHTMLImgElement_put_alt(img, tmp); - ok_(__FILE__,line) (hres == S_OK, "get_alt failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_alt failed: %08lx\n", hres); SysFreeString(tmp);
_test_img_alt(line, unk, alt); @@ -3513,11 +3513,11 @@ static void _test_img_align(unsigned line, IUnknown *unk, const WCHAR *align)
tmp = SysAllocString(align); hres = IHTMLImgElement_put_align(img, tmp); - ok_(__FILE__,line) (hres == S_OK, "put_align failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_align failed: %08lx\n", hres); SysFreeString(tmp);
hres = IHTMLImgElement_get_align(img, &tmp); - ok_(__FILE__,line) (hres == S_OK, "put_align failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_align failed: %08lx\n", hres); ok_(__FILE__,line) (!lstrcmpW(tmp, align), "Expect %s, got %s\n", wine_dbgstr_w(align), wine_dbgstr_w(tmp)); SysFreeString(tmp); } @@ -3530,7 +3530,7 @@ static void _test_img_name(unsigned line, IUnknown *unk, const WCHAR *pValue) HRESULT hres;
hres = IHTMLImgElement_get_name(img, &sName); - ok_(__FILE__,line) (hres == S_OK, "get_Name failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_Name failed: %08lx\n", hres); ok_(__FILE__,line) (!lstrcmpW (sName, pValue), "expected %s got %s\n", wine_dbgstr_w(pValue), wine_dbgstr_w(sName)); IHTMLImgElement_Release(img); SysFreeString(sName); @@ -3544,7 +3544,7 @@ static void _test_img_complete(unsigned line, IHTMLElement *elem, VARIANT_BOOL e HRESULT hres;
hres = IHTMLImgElement_get_complete(img, &b); - ok_(__FILE__,line) (hres == S_OK, "get_complete failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_complete failed: %08lx\n", hres); ok_(__FILE__,line) (b == exb, "complete = %x, expected %x\n", b, exb); IHTMLImgElement_Release(img); } @@ -3557,14 +3557,14 @@ static void _test_img_isMap(unsigned line, IUnknown *unk, VARIANT_BOOL v) HRESULT hres;
hres = IHTMLImgElement_put_isMap(img, v); - ok_(__FILE__,line) (hres == S_OK, "put_isMap failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_isMap failed: %08lx\n", hres);
hres = IHTMLImgElement_get_isMap(img, &b); - ok_(__FILE__,line) (hres == S_OK, "get_isMap failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_isMap failed: %08lx\n", hres); ok_(__FILE__,line) (b == v, "isMap = %x, expected %x\n", b, v);
hres = IHTMLImgElement_get_isMap(img, NULL); - ok_(__FILE__,line) (hres == E_INVALIDARG, "ret = %08x, expected E_INVALIDARG\n", hres); + ok_(__FILE__,line) (hres == E_INVALIDARG, "ret = %08lx, expected E_INVALIDARG\n", hres); IHTMLImgElement_Release(img); }
@@ -3580,20 +3580,20 @@ static void test_dynamic_properties(IHTMLElement *elem) HRESULT hres;
hres = IHTMLElement_QueryInterface(elem, &IID_IDispatchEx, (void**)&dispex); - ok(hres == S_OK, "QueryInterface failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface failed: %08lx\n", hres);
hres = IHTMLElement_removeAttribute(elem, attr1, 0, &succ); - ok(hres == S_OK, "removeAttribute failed: %08x\n", hres); + ok(hres == S_OK, "removeAttribute failed: %08lx\n", hres); ok(succ, "removeAttribute set succ to FALSE\n");
while(1) { hres = IDispatchEx_GetNextDispID(dispex, fdexEnumAll, id, &id); - ok(hres==S_OK || hres==S_FALSE, "GetNextDispID failed: %08x\n", hres); + ok(hres==S_OK || hres==S_FALSE, "GetNextDispID failed: %08lx\n", hres); if(hres != S_OK) break;
hres = IDispatchEx_GetMemberName(dispex, id, &name); - ok(hres == S_OK, "GetMemberName failed: %08x\n", hres); + ok(hres == S_OK, "GetMemberName failed: %08lx\n", hres);
if(!lstrcmpW(name, L"attr1")) ok(0, "attr1 should be removed\n"); @@ -3607,7 +3607,7 @@ static void test_dynamic_properties(IHTMLElement *elem) V_VT(&val) = VT_BSTR; V_BSTR(&val) = attr1; hres = IHTMLElement_setAttribute(elem, attr1, val, 0); - ok(hres == S_OK, "setAttribute failed: %08x\n", hres); + ok(hres == S_OK, "setAttribute failed: %08lx\n", hres); SysFreeString(attr1); }
@@ -3618,7 +3618,7 @@ static void _test_attr_node_name(unsigned line, IHTMLDOMAttribute *attr, const W HRESULT hres;
hres = IHTMLDOMAttribute_get_nodeName(attr, &str); - ok_(__FILE__,line)(hres == S_OK, "get_nodeName failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_nodeName failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(str, exname), "node name is %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exname)); SysFreeString(str); } @@ -3631,7 +3631,7 @@ static void _test_attr_parent(unsigned line, IHTMLDOMAttribute *attr) HRESULT hres;
hres = IHTMLDOMAttribute2_get_parentNode(attr2, &parent); - ok_(__FILE__,line)(hres == S_OK, "get_parentNode failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_parentNode failed: %08lx\n", hres); ok_(__FILE__,line)(!parent, "parent != NULL\n"); IHTMLDOMAttribute2_Release(attr2); } @@ -3648,32 +3648,32 @@ static void test_attr_collection_disp(IDispatch *disp) HRESULT hres;
hres = IDispatch_QueryInterface(disp, &IID_IDispatchEx, (void**)&dispex); - ok(hres == S_OK, "QueryInterface failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface failed: %08lx\n", hres);
bstr = SysAllocString(L"0"); hres = IDispatchEx_GetDispID(dispex, bstr, fdexNameCaseSensitive, &id); - ok(hres == S_OK, "GetDispID failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID failed: %08lx\n", hres); SysFreeString(bstr);
VariantInit(&var); hres = IDispatchEx_InvokeEx(dispex, id, LOCALE_NEUTRAL, INVOKE_PROPERTYGET, &dp, &var, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&var) == VT_DISPATCH, "V_VT(var)=%d\n", V_VT(&var)); ok(V_DISPATCH(&var) != NULL, "V_DISPATCH(var) == NULL\n"); VariantClear(&var);
bstr = SysAllocString(L"attr1"); hres = IDispatchEx_GetDispID(dispex, bstr, fdexNameCaseSensitive, &id); - ok(hres == S_OK, "GetDispID failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID failed: %08lx\n", hres); SysFreeString(bstr);
VariantInit(&var); hres = IDispatchEx_InvokeEx(dispex, id, LOCALE_NEUTRAL, INVOKE_PROPERTYGET, &dp, &var, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&var) == VT_DISPATCH, "V_VT(var)=%d\n", V_VT(&var)); ok(V_DISPATCH(&var) != NULL, "V_DISPATCH(var) == NULL\n"); hres = IDispatch_QueryInterface(V_DISPATCH(&var), &IID_IHTMLDOMAttribute, (void**)&attr); - ok(hres == S_OK, "QueryInterface failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface failed: %08lx\n", hres);
test_attr_node_name(attr, L"attr1");
@@ -3697,51 +3697,51 @@ static void test_attr_collection(IHTMLElement *elem) HRESULT hres;
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLDOMNode, (void**)&node); - ok(hres == S_OK, "QueryInterface failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface failed: %08lx\n", hres);
hres = IHTMLDOMNode_get_attributes(node, &disp); - ok(hres == S_OK, "get_attributes failed: %08x\n", hres); + ok(hres == S_OK, "get_attributes failed: %08lx\n", hres);
hres = IHTMLDOMNode_get_attributes(node, &attr); - ok(hres == S_OK, "get_attributes failed: %08x\n", hres); + ok(hres == S_OK, "get_attributes failed: %08lx\n", hres); ok(iface_cmp((IUnknown*)disp, (IUnknown*)attr), "disp != attr\n"); IDispatch_Release(attr); IHTMLDOMNode_Release(node);
hres = IDispatch_QueryInterface(disp, &IID_IHTMLAttributeCollection, (void**)&attr_col); - ok(hres == S_OK, "QueryInterface failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface failed: %08lx\n", hres);
hres = IHTMLAttributeCollection_get_length(attr_col, &i); - ok(hres == S_OK, "get_length failed: %08x\n", hres); + ok(hres == S_OK, "get_length failed: %08lx\n", hres);
V_VT(&val) = VT_I4; V_I4(&val) = 1; hres = IHTMLElement_setAttribute(elem, name, val, 0); - ok(hres == S_OK, "setAttribute failed: %08x\n", hres); + ok(hres == S_OK, "setAttribute failed: %08lx\n", hres); SysFreeString(name);
hres = IHTMLAttributeCollection_get_length(attr_col, &len); - ok(hres == S_OK, "get_length failed: %08x\n", hres); - ok(len == i+1, "get_length returned %d, expected %d\n", len, i+1); + ok(hres == S_OK, "get_length failed: %08lx\n", hres); + ok(len == i+1, "get_length returned %ld, expected %ld\n", len, i+1);
checked = 0; for(i=0; i<len; i++) { V_VT(&id) = VT_I4; V_I4(&id) = i; hres = IHTMLAttributeCollection_item(attr_col, &id, &attr); - ok(hres == S_OK, "%d) item failed: %08x\n", i, hres); + ok(hres == S_OK, "%ld) item failed: %08lx\n", i, hres);
hres = IDispatch_QueryInterface(attr, &IID_IHTMLDOMAttribute, (void**)&dom_attr); - ok(hres == S_OK, "%d) QueryInterface failed: %08x\n", i, hres); + ok(hres == S_OK, "%ld) QueryInterface failed: %08lx\n", i, hres); IDispatch_Release(attr);
hres = IHTMLDOMAttribute_get_nodeName(dom_attr, &name); - ok(hres == S_OK, "%d) get_nodeName failed: %08x\n", i, hres); + ok(hres == S_OK, "%ld) get_nodeName failed: %08lx\n", i, hres);
if(!lstrcmpW(name, L"id")) { checked++; hres = IHTMLDOMAttribute_get_nodeValue(dom_attr, &val); - ok(hres == S_OK, "%d) get_nodeValue failed: %08x\n", i, hres); + ok(hres == S_OK, "%ld) get_nodeValue failed: %08lx\n", i, hres); ok(V_VT(&val) == VT_BSTR, "id: V_VT(&val) = %d\n", V_VT(&val)); ok(!lstrcmpW(V_BSTR(&val), L"attr"), "id: V_BSTR(&val) = %s\n", wine_dbgstr_w(V_BSTR(&val))); test_attr_expando(dom_attr, VARIANT_FALSE); @@ -3749,7 +3749,7 @@ static void test_attr_collection(IHTMLElement *elem) } else if(!lstrcmpW(name, L"attr1")) { checked++; hres = IHTMLDOMAttribute_get_nodeValue(dom_attr, &val); - ok(hres == S_OK, "%d) get_nodeValue failed: %08x\n", i, hres); + ok(hres == S_OK, "%ld) get_nodeValue failed: %08lx\n", i, hres); ok(V_VT(&val) == VT_BSTR, "attr1: V_VT(&val) = %d\n", V_VT(&val)); ok(!lstrcmpW(V_BSTR(&val), L"attr1"), "attr1: V_BSTR(&val) = %s\n", wine_dbgstr_w(V_BSTR(&val))); test_attr_expando(dom_attr, VARIANT_TRUE); @@ -3757,23 +3757,23 @@ static void test_attr_collection(IHTMLElement *elem) } else if(!lstrcmpW(name, L"attr2")) { checked++; hres = IHTMLDOMAttribute_get_nodeValue(dom_attr, &val); - ok(hres == S_OK, "%d) get_nodeValue failed: %08x\n", i, hres); + ok(hres == S_OK, "%ld) get_nodeValue failed: %08lx\n", i, hres); ok(V_VT(&val) == VT_BSTR, "attr2: V_VT(&val) = %d\n", V_VT(&val)); ok(!V_BSTR(&val), "attr2: V_BSTR(&val) != NULL\n"); test_attr_value(dom_attr, L""); } else if(!lstrcmpW(name, L"attr3")) { checked++; hres = IHTMLDOMAttribute_get_nodeValue(dom_attr, &val); - ok(hres == S_OK, "%d) get_nodeValue failed: %08x\n", i, hres); + ok(hres == S_OK, "%ld) get_nodeValue failed: %08lx\n", i, hres); ok(V_VT(&val) == VT_BSTR, "attr3: V_VT(&val) = %d\n", V_VT(&val)); ok(!lstrcmpW(V_BSTR(&val), L"attr3"), "attr3: V_BSTR(&val) = %s\n", wine_dbgstr_w(V_BSTR(&val))); test_attr_value(dom_attr, L"attr3"); } else if(!lstrcmpW(name, L"test")) { checked++; hres = IHTMLDOMAttribute_get_nodeValue(dom_attr, &val); - ok(hres == S_OK, "%d) get_nodeValue failed: %08x\n", i, hres); + ok(hres == S_OK, "%ld) get_nodeValue failed: %08lx\n", i, hres); ok(V_VT(&val) == VT_I4, "test: V_VT(&val) = %d\n", V_VT(&val)); - ok(V_I4(&val) == 1, "test: V_I4(&val) = %d\n", V_I4(&val)); + ok(V_I4(&val) == 1, "test: V_I4(&val) = %ld\n", V_I4(&val)); test_attr_value(dom_attr, L"1"); }
@@ -3781,16 +3781,16 @@ static void test_attr_collection(IHTMLElement *elem) SysFreeString(name); VariantClear(&val); } - ok(checked==5, "invalid number of specified attributes (%d)\n", checked); + ok(checked==5, "invalid number of specified attributes (%ld)\n", checked);
V_I4(&id) = len; hres = IHTMLAttributeCollection_item(attr_col, &id, &attr); - ok(hres == E_INVALIDARG, "item failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "item failed: %08lx\n", hres);
V_VT(&id) = VT_BSTR; V_BSTR(&id) = SysAllocString(L"nonexisting"); hres = IHTMLAttributeCollection_item(attr_col, &id, &attr); - ok(hres == E_INVALIDARG, "item failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "item failed: %08lx\n", hres); VariantClear(&id);
test_attr_collection_disp(disp); @@ -3808,7 +3808,7 @@ static void _test_elem_id(unsigned line, IUnknown *unk, const WCHAR *exid)
hres = IHTMLElement_get_id(elem, &id); IHTMLElement_Release(elem); - ok_(__FILE__,line) (hres == S_OK, "get_id failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_id failed: %08lx\n", hres);
if(exid) ok_(__FILE__,line) (!lstrcmpW(id, exid), "unexpected id %s\n", wine_dbgstr_w(id)); @@ -3825,7 +3825,7 @@ static void _test_elem_language(unsigned line, IHTMLElement *elem, const WCHAR * HRESULT hres;
hres = IHTMLElement_get_language(elem, &lang); - ok_(__FILE__,line) (hres == S_OK, "get_language failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_language failed: %08lx\n", hres);
if(exlang) ok_(__FILE__,line) (!lstrcmpW(lang, exlang), "unexpected language %s\n", wine_dbgstr_w(lang)); @@ -3842,7 +3842,7 @@ static void _set_elem_language(unsigned line, IHTMLElement *elem, const WCHAR *l HRESULT hres;
hres = IHTMLElement_put_language(elem, str); - ok_(__FILE__,line) (hres == S_OK, "get_language failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_language failed: %08lx\n", hres); SysFreeString(str);
_test_elem_language(line, elem, lang); @@ -3855,7 +3855,7 @@ static void _test_elem_lang(unsigned line, IHTMLElement *elem, const WCHAR *exla HRESULT hres;
hres = IHTMLElement_get_lang(elem, &lang); - ok_(__FILE__,line) (hres == S_OK, "get_lang failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_lang failed: %08lx\n", hres);
if(exlang) ok_(__FILE__,line) (!lstrcmpW(lang, exlang), "unexpected lang %s\n", wine_dbgstr_w(lang)); @@ -3872,7 +3872,7 @@ static void _set_elem_lang(unsigned line, IHTMLElement *elem, const WCHAR *lang) HRESULT hres;
hres = IHTMLElement_put_lang(elem, str); - ok_(__FILE__,line) (hres == S_OK, "get_lang failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_lang failed: %08lx\n", hres); SysFreeString(str);
_test_elem_lang(line, elem, lang); @@ -3888,7 +3888,7 @@ static void _test_elem_put_id(unsigned line, IUnknown *unk, const WCHAR *new_id) hres = IHTMLElement_put_id(elem, tmp); IHTMLElement_Release(elem); SysFreeString(tmp); - ok_(__FILE__,line) (hres == S_OK, "put_id failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_id failed: %08lx\n", hres);
_test_elem_id(line, unk, new_id); } @@ -3900,20 +3900,20 @@ static void test_contenteditable(IUnknown *unk) BSTR str, strDefault;
hres = IHTMLElement3_get_contentEditable(elem3, &strDefault); - ok(hres == S_OK, "get_contentEditable failed: 0x%08x\n", hres); + ok(hres == S_OK, "get_contentEditable failed: 0x%08lx\n", hres);
str = SysAllocString(L"true"); hres = IHTMLElement3_put_contentEditable(elem3, str); - ok(hres == S_OK, "put_contentEditable(%s) failed: 0x%08x\n", wine_dbgstr_w(str), hres); + ok(hres == S_OK, "put_contentEditable(%s) failed: 0x%08lx\n", wine_dbgstr_w(str), hres); SysFreeString(str); hres = IHTMLElement3_get_contentEditable(elem3, &str); - ok(hres == S_OK, "get_contentEditable failed: 0x%08x\n", hres); + ok(hres == S_OK, "get_contentEditable failed: 0x%08lx\n", hres); ok(!lstrcmpW(str, L"true"), "Got %s, expected %s\n", wine_dbgstr_w(str), "true"); SysFreeString(str);
/* Restore origin contentEditable */ hres = IHTMLElement3_put_contentEditable(elem3, strDefault); - ok(hres == S_OK, "put_contentEditable(%s) failed: 0x%08x\n", wine_dbgstr_w(strDefault), hres); + ok(hres == S_OK, "put_contentEditable(%s) failed: 0x%08lx\n", wine_dbgstr_w(strDefault), hres); SysFreeString(strDefault);
IHTMLElement3_Release(elem3); @@ -3926,7 +3926,7 @@ static void _test_input_type(unsigned line, IHTMLInputElement *input, const WCHA HRESULT hres;
hres = IHTMLInputElement_get_type(input, &type); - ok_(__FILE__,line) (hres == S_OK, "get_type failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_type failed: %08lx\n", hres); ok_(__FILE__,line) (!lstrcmpW(type, extype), "type=%s, expected %s\n", wine_dbgstr_w(type), wine_dbgstr_w(extype)); SysFreeString(type); } @@ -3938,7 +3938,7 @@ static void _test_input_name(unsigned line, IHTMLInputElement *input, const WCHA HRESULT hres;
hres = IHTMLInputElement_get_name(input, &name); - ok_(__FILE__,line) (hres == S_OK, "get_name failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_name failed: %08lx\n", hres); if(exname) ok_(__FILE__,line) (!lstrcmpW(name, exname), "name=%s, expected %s\n", wine_dbgstr_w(name), wine_dbgstr_w(exname)); else @@ -3953,7 +3953,7 @@ static void _test_input_set_name(unsigned line, IHTMLInputElement *input, const HRESULT hres;
hres = IHTMLInputElement_put_name(input, tmp); - ok_(__FILE__,line) (hres == S_OK, "put_name failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_name failed: %08lx\n", hres); SysFreeString(tmp);
_test_input_name(line, input, name); @@ -3966,7 +3966,7 @@ static void _test_input_get_disabled(unsigned line, IHTMLInputElement *input, VA HRESULT hres;
hres = IHTMLInputElement_get_disabled(input, &disabled); - ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08lx\n", hres); ok_(__FILE__,line) (disabled == exb, "disabled=%x, expected %x\n", disabled, exb);
_test_elem3_get_disabled(line, (IUnknown*)input, exb); @@ -3978,7 +3978,7 @@ static void _test_input_set_disabled(unsigned line, IHTMLInputElement *input, VA HRESULT hres;
hres = IHTMLInputElement_put_disabled(input, b); - ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08lx\n", hres);
_test_input_get_disabled(line, input, b); } @@ -3990,7 +3990,7 @@ static void _test_input_get_defaultchecked(unsigned line, IHTMLInputElement *inp HRESULT hres;
hres = IHTMLInputElement_get_defaultChecked(input, &checked); - ok_(__FILE__,line) (hres == S_OK, "get_defaultChecked failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_defaultChecked failed: %08lx\n", hres); ok_(__FILE__,line) (checked == exb, "checked=%x, expected %x\n", checked, exb); }
@@ -4000,7 +4000,7 @@ static void _test_input_set_defaultchecked(unsigned line, IHTMLInputElement *inp HRESULT hres;
hres = IHTMLInputElement_put_defaultChecked(input, b); - ok_(__FILE__,line) (hres == S_OK, "get_defaultChecked failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_defaultChecked failed: %08lx\n", hres);
_test_input_get_defaultchecked(line, input, b); } @@ -4012,7 +4012,7 @@ static void _test_input_get_checked(unsigned line, IHTMLInputElement *input, VAR HRESULT hres;
hres = IHTMLInputElement_get_checked(input, &checked); - ok_(__FILE__,line) (hres == S_OK, "get_checked failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_checked failed: %08lx\n", hres); ok_(__FILE__,line) (checked == exb, "checked=%x, expected %x\n", checked, exb); }
@@ -4022,7 +4022,7 @@ static void _test_input_set_checked(unsigned line, IHTMLInputElement *input, VAR HRESULT hres;
hres = IHTMLInputElement_put_checked(input, b); - ok_(__FILE__,line) (hres == S_OK, "put_checked failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_checked failed: %08lx\n", hres);
_test_input_get_checked(line, input, b); } @@ -4034,8 +4034,8 @@ static void _test_input_maxlength(unsigned line, IHTMLInputElement *input, LONG HRESULT hres;
hres = IHTMLInputElement_get_maxLength(input, &maxlength); - ok_(__FILE__,line) (hres == S_OK, "get_maxLength failed: %08x\n", hres); - ok_(__FILE__,line) (maxlength == exl, "maxLength=%x, expected %d\n", maxlength, exl); + ok_(__FILE__,line) (hres == S_OK, "get_maxLength failed: %08lx\n", hres); + ok_(__FILE__,line) (maxlength == exl, "maxLength=%lx, expected %ld\n", maxlength, exl); }
#define test_input_set_maxlength(i,b) _test_input_set_maxlength(__LINE__,i,b) @@ -4044,7 +4044,7 @@ static void _test_input_set_maxlength(unsigned line, IHTMLInputElement *input, L HRESULT hres;
hres = IHTMLInputElement_put_maxLength(input, l); - ok_(__FILE__,line) (hres == S_OK, "put_maxLength failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_maxLength failed: %08lx\n", hres);
_test_input_maxlength(line, input, l); } @@ -4057,12 +4057,12 @@ static void _test_input_value(unsigned line, IUnknown *unk, const WCHAR *exval) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLInputElement, (void**)&input); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLInputElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLInputElement: %08lx\n", hres); if(FAILED(hres)) return;
hres = IHTMLInputElement_get_value(input, &bstr); - ok_(__FILE__,line) (hres == S_OK, "get_value failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_value failed: %08lx\n", hres); if(exval) ok_(__FILE__,line) (!lstrcmpW(bstr, exval), "value=%s\n", wine_dbgstr_w(bstr)); else @@ -4081,13 +4081,13 @@ static void _test_input_get_form(unsigned line, IUnknown *unk, const WCHAR *id)
ok_(__FILE__,line) (unk != NULL, "unk is NULL!\n"); hres = IUnknown_QueryInterface(unk, &IID_IHTMLInputElement, (void**)&input); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLInputElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLInputElement: %08lx\n", hres); ok_(__FILE__,line) (input != NULL, "input == NULL\n"); if(FAILED(hres) || input == NULL) return;
hres = IHTMLInputElement_get_form(input, &form); - ok_(__FILE__, line) (hres == S_OK, "get_form failed: %08x\n", hres); + ok_(__FILE__, line) (hres == S_OK, "get_form failed: %08lx\n", hres); ok_(__FILE__, line) (form != NULL, "form == NULL\n"); if(FAILED(hres) || form == NULL){ IHTMLInputElement_Release(input); @@ -4095,7 +4095,7 @@ static void _test_input_get_form(unsigned line, IUnknown *unk, const WCHAR *id) }
hres = IHTMLFormElement_QueryInterface(form, &IID_IHTMLElement, (void **)&elem); - ok_(__FILE__, line) (hres == S_OK, "QueryInterface(IID_IHTMLElement) failed: %08x\n", hres); + ok_(__FILE__, line) (hres == S_OK, "QueryInterface(IID_IHTMLElement) failed: %08lx\n", hres); ok_(__FILE__, line) (elem != NULL, "elem == NULL\n"); if(FAILED(hres) || elem == NULL){ IHTMLInputElement_Release(input); @@ -4118,13 +4118,13 @@ static void _test_input_put_value(unsigned line, IUnknown *unk, const WCHAR *val HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLInputElement, (void**)&input); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLInputElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLInputElement: %08lx\n", hres); if(FAILED(hres)) return;
bstr = SysAllocString(val); hres = IHTMLInputElement_put_value(input, bstr); - ok_(__FILE__,line) (hres == S_OK, "get_value failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_value failed: %08lx\n", hres); SysFreeString(bstr); IHTMLInputElement_Release(input);
@@ -4139,12 +4139,12 @@ static void _test_input_defaultValue(unsigned line, IUnknown *unk, const WCHAR * HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLInputElement, (void**)&input); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLInputElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLInputElement: %08lx\n", hres); if(FAILED(hres)) return;
hres = IHTMLInputElement_get_defaultValue(input, &str); - ok_(__FILE__,line) (hres == S_OK, "get_defaultValue failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_defaultValue failed: %08lx\n", hres); if(exval) ok_(__FILE__,line) (!lstrcmpW(str, exval), "defaultValue=%s\n", wine_dbgstr_w(str)); else @@ -4161,13 +4161,13 @@ static void _test_input_put_defaultValue(unsigned line, IUnknown *unk, const WCH HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLInputElement, (void**)&input); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLInputElement: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLInputElement: %08lx\n", hres); if(FAILED(hres)) return;
str = SysAllocString(val); hres = IHTMLInputElement_put_defaultValue(input, str); - ok_(__FILE__,line) (hres == S_OK, "get_defaultValue failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_defaultValue failed: %08lx\n", hres); SysFreeString(str); IHTMLInputElement_Release(input);
@@ -4181,7 +4181,7 @@ static void _test_input_src(unsigned line, IHTMLInputElement *input, const WCHAR HRESULT hres;
hres = IHTMLInputElement_get_src(input, &src); - ok_(__FILE__,line) (hres == S_OK, "get_src failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_src failed: %08lx\n", hres); if(exsrc) ok_(__FILE__,line) (!lstrcmpW(src, exsrc), "get_src returned %s expected %s\n", wine_dbgstr_w(src), wine_dbgstr_w(exsrc)); else @@ -4198,7 +4198,7 @@ static void _test_input_set_src(unsigned line, IHTMLInputElement *input, const W tmp = SysAllocString(src); hres = IHTMLInputElement_put_src(input, tmp); SysFreeString(tmp); - ok_(__FILE__,line) (hres == S_OK, "put_src failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_src failed: %08lx\n", hres);
_test_input_src(line, input, src); } @@ -4209,7 +4209,7 @@ static void _test_input_set_size(unsigned line, IHTMLInputElement *input, LONG s HRESULT hres;
hres = IHTMLInputElement_put_size(input, size); - ok_(__FILE__,line) (hres == exret, "Expect ret = %08x, got: %08x\n", exret, hres); + ok_(__FILE__,line) (hres == exret, "Expect ret = %08lx, got: %08lx\n", exret, hres); }
#define test_input_get_size(u,s) _test_input_get_size(__LINE__,u,s) @@ -4219,11 +4219,11 @@ static void _test_input_get_size(unsigned line, IHTMLInputElement *input, LONG e LONG size;
hres = IHTMLInputElement_get_size(input, &size); - ok_(__FILE__,line) (hres == S_OK, "get_size failed: %08x\n", hres); - ok_(__FILE__,line) (size == exsize, "Expect %d, got %d\n", exsize, size); + ok_(__FILE__,line) (hres == S_OK, "get_size failed: %08lx\n", hres); + ok_(__FILE__,line) (size == exsize, "Expect %ld, got %ld\n", exsize, size);
hres = IHTMLInputElement_get_size(input, NULL); - ok_(__FILE__,line) (hres == E_INVALIDARG, "Expect ret E_INVALIDARG, got: %08x\n", hres); + ok_(__FILE__,line) (hres == E_INVALIDARG, "Expect ret E_INVALIDARG, got: %08lx\n", hres); }
#define test_input_readOnly(u,b) _test_input_readOnly(__LINE__,u,b) @@ -4233,10 +4233,10 @@ static void _test_input_readOnly(unsigned line, IHTMLInputElement *input, VARIAN VARIANT_BOOL b = 100;
hres = IHTMLInputElement_put_readOnly(input, v); - ok_(__FILE__,line)(hres == S_OK, "put readOnly failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put readOnly failed: %08lx\n", hres);
hres = IHTMLInputElement_get_readOnly(input, &b); - ok_(__FILE__,line)(hres == S_OK, "get readOnly failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get readOnly failed: %08lx\n", hres); ok_(__FILE__,line)(v == b, "Expect %x, got %x\n", v, b); }
@@ -4249,7 +4249,7 @@ static void _test_elem_class(unsigned line, IUnknown *unk, const WCHAR *exclass)
hres = IHTMLElement_get_className(elem, &class); IHTMLElement_Release(elem); - ok_(__FILE__,line) (hres == S_OK, "get_className failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_className failed: %08lx\n", hres); if(exclass) ok_(__FILE__,line) (!lstrcmpW(class, exclass), "unexpected className %s\n", wine_dbgstr_w(class)); else @@ -4266,7 +4266,7 @@ static void _test_elem_tabindex(unsigned line, IUnknown *unk, short exindex)
hres = IHTMLElement2_get_tabIndex(elem2, &index); IHTMLElement2_Release(elem2); - ok_(__FILE__,line) (hres == S_OK, "get_tabIndex failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_tabIndex failed: %08lx\n", hres); ok_(__FILE__,line) (index == exindex, "unexpected index %d\n", index); }
@@ -4278,7 +4278,7 @@ static void _test_elem_set_tabindex(unsigned line, IUnknown *unk, short index)
hres = IHTMLElement2_put_tabIndex(elem2, index); IHTMLElement2_Release(elem2); - ok_(__FILE__,line) (hres == S_OK, "get_tabIndex failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_tabIndex failed: %08lx\n", hres);
_test_elem_tabindex(line, unk, index); } @@ -4291,7 +4291,7 @@ static void _test_style_media(unsigned line, IUnknown *unk, const WCHAR *exmedia HRESULT hres;
hres = IHTMLStyleElement_get_media(style, &media); - ok_(__FILE__,line)(hres == S_OK, "get_media failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_media failed: %08lx\n", hres); if(exmedia) ok_(__FILE__,line)(!lstrcmpW(media, exmedia), "media = %s, expected %s\n", wine_dbgstr_w(media), wine_dbgstr_w(exmedia)); else @@ -4310,7 +4310,7 @@ static void _test_style_put_media(unsigned line, IUnknown *unk, const WCHAR *med
str = SysAllocString(media); hres = IHTMLStyleElement_put_media(style, str); - ok_(__FILE__,line)(hres == S_OK, "put_media failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_media failed: %08lx\n", hres); IHTMLStyleElement_Release(style); SysFreeString(str);
@@ -4325,7 +4325,7 @@ static void _test_style_type(unsigned line, IUnknown *unk, const WCHAR *extype) HRESULT hres;
hres = IHTMLStyleElement_get_type(style, &type); - ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08lx\n", hres); if(extype) ok_(__FILE__,line)(!lstrcmpW(type, extype), "type = %s, expected %s\n", wine_dbgstr_w(type), wine_dbgstr_w(extype)); else @@ -4344,7 +4344,7 @@ static void _test_style_put_type(unsigned line, IUnknown *unk, const WCHAR *type
str = SysAllocString(type); hres = IHTMLStyleElement_put_type(style, str); - ok_(__FILE__,line)(hres == S_OK, "put_type failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_type failed: %08lx\n", hres); IHTMLStyleElement_Release(style); SysFreeString(str);
@@ -4360,19 +4360,19 @@ static void _test_elem_filters(unsigned line, IUnknown *unk)
hres = IHTMLElement_get_filters(elem, &filters); ok_(__FILE__,line) (hres == S_OK || broken(hres == REGDB_E_CLASSNOTREG) /* NT4 */, - "get_filters failed: %08x\n", hres); + "get_filters failed: %08lx\n", hres); if(hres == S_OK) { LONG len; IDispatchEx *dispex;
hres = IHTMLFiltersCollection_get_length(filters, &len); - ok_(__FILE__,line) (hres == S_OK, "get_length failed: %08x\n", hres); - ok_(__FILE__,line) (len == 0, "expect 0 got %d\n", len); + ok_(__FILE__,line) (hres == S_OK, "get_length failed: %08lx\n", hres); + ok_(__FILE__,line) (len == 0, "expect 0 got %ld\n", len);
hres = IHTMLFiltersCollection_QueryInterface(filters, &IID_IDispatchEx, (void**)&dispex); ok_(__FILE__,line) (hres == S_OK || broken(hres == E_NOINTERFACE), - "Could not get IDispatchEx interface: %08x\n", hres); + "Could not get IDispatchEx interface: %08lx\n", hres); if(SUCCEEDED(hres)) { test_disp((IUnknown*)filters, &IID_IHTMLFiltersCollection, NULL, L"[object]"); IDispatchEx_Release(dispex); @@ -4394,7 +4394,7 @@ static void _test_elem_set_class(unsigned line, IUnknown *unk, const WCHAR *clas tmp = class ? SysAllocString(class) : NULL; hres = IHTMLElement_put_className(elem, tmp); IHTMLElement_Release(elem); - ok_(__FILE__,line) (hres == S_OK, "put_className failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_className failed: %08lx\n", hres); SysFreeString(tmp);
_test_elem_class(line, unk, class); @@ -4409,7 +4409,7 @@ static void _test_elem_title(unsigned line, IUnknown *unk, const WCHAR *extitle)
hres = IHTMLElement_get_title(elem, &title); IHTMLElement_Release(elem); - ok_(__FILE__,line) (hres == S_OK, "get_title failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_title failed: %08lx\n", hres); if(extitle) ok_(__FILE__,line) (!lstrcmpW(title, extitle), "unexpected title %s\n", wine_dbgstr_w(title)); else @@ -4427,7 +4427,7 @@ static void _test_elem_set_title(unsigned line, IUnknown *unk, const WCHAR *titl
tmp = SysAllocString(title); hres = IHTMLElement_put_title(elem, tmp); - ok_(__FILE__,line) (hres == S_OK, "get_title failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_title failed: %08lx\n", hres);
IHTMLElement_Release(elem); SysFreeString(tmp); @@ -4442,7 +4442,7 @@ static void _test_node_get_value_str(unsigned line, IUnknown *unk, const WCHAR *
hres = IHTMLDOMNode_get_nodeValue(node, &var); IHTMLDOMNode_Release(node); - ok_(__FILE__,line) (hres == S_OK, "get_nodeValue failed: %08x, expected VT_BSTR\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_nodeValue failed: %08lx, expected VT_BSTR\n", hres);
if(exval) { ok_(__FILE__,line) (V_VT(&var) == VT_BSTR, "vt=%d\n", V_VT(&var)); @@ -4465,7 +4465,7 @@ static void _test_node_put_value_str(unsigned line, IUnknown *unk, const WCHAR * V_BSTR(&var) = SysAllocString(val);
hres = IHTMLDOMNode_put_nodeValue(node, var); - ok_(__FILE__,line) (hres == S_OK, "get_nodeValue failed: %08x, expected VT_BSTR\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_nodeValue failed: %08lx, expected VT_BSTR\n", hres); IHTMLDOMNode_Release(node); VariantClear(&var); } @@ -4478,9 +4478,9 @@ static void _test_elem_client_size(unsigned line, IUnknown *unk) HRESULT hres;
hres = IHTMLElement2_get_clientWidth(elem, &l); - ok_(__FILE__,line) (hres == S_OK, "get_clientWidth failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_clientWidth failed: %08lx\n", hres); hres = IHTMLElement2_get_clientHeight(elem, &l); - ok_(__FILE__,line) (hres == S_OK, "get_clientHeight failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_clientHeight failed: %08lx\n", hres);
IHTMLElement2_Release(elem); } @@ -4493,12 +4493,12 @@ static void _test_elem_client_rect(unsigned line, IUnknown *unk) HRESULT hres;
hres = IHTMLElement2_get_clientLeft(elem, &l); - ok_(__FILE__,line) (hres == S_OK, "get_clientLeft failed: %08x\n", hres); - ok_(__FILE__,line) (!l, "clientLeft = %d\n", l); + ok_(__FILE__,line) (hres == S_OK, "get_clientLeft failed: %08lx\n", hres); + ok_(__FILE__,line) (!l, "clientLeft = %ld\n", l);
hres = IHTMLElement2_get_clientTop(elem, &l); - ok_(__FILE__,line) (hres == S_OK, "get_clientTop failed: %08x\n", hres); - ok_(__FILE__,line) (!l, "clientTop = %d\n", l); + ok_(__FILE__,line) (hres == S_OK, "get_clientTop failed: %08lx\n", hres); + ok_(__FILE__,line) (!l, "clientTop = %ld\n", l);
IHTMLElement2_Release(elem); } @@ -4511,8 +4511,8 @@ static void _test_form_length(unsigned line, IUnknown *unk, LONG exlen) HRESULT hres;
hres = IHTMLFormElement_get_length(form, &len); - ok_(__FILE__,line)(hres == S_OK, "get_length failed: %08x\n", hres); - ok_(__FILE__,line)(len == exlen, "length=%d, expected %d\n", len, exlen); + ok_(__FILE__,line)(hres == S_OK, "get_length failed: %08lx\n", hres); + ok_(__FILE__,line)(len == exlen, "length=%ld, expected %ld\n", len, exlen);
IHTMLFormElement_Release(form); } @@ -4525,7 +4525,7 @@ static void _test_form_action(unsigned line, IUnknown *unk, const WCHAR *ex) HRESULT hres;
hres = IHTMLFormElement_get_action(form, &action); - ok_(__FILE__,line)(hres == S_OK, "get_action failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_action failed: %08lx\n", hres); if(ex) ok_(__FILE__,line)(!lstrcmpW(action, ex), "action=%s, expected %s\n", wine_dbgstr_w(action), wine_dbgstr_w(ex)); else @@ -4543,7 +4543,7 @@ static void _test_form_put_action(unsigned line, IUnknown *unk, const WCHAR *act HRESULT hres;
hres = IHTMLFormElement_put_action(form, tmp); - ok_(__FILE__,line)(hres == S_OK, "put_action failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_action failed: %08lx\n", hres); SysFreeString(tmp); IHTMLFormElement_Release(form);
@@ -4558,7 +4558,7 @@ static void _test_form_method(unsigned line, IUnknown *unk, const WCHAR *ex) HRESULT hres;
hres = IHTMLFormElement_get_method(form, &method); - ok_(__FILE__,line)(hres == S_OK, "get_method failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_method failed: %08lx\n", hres); if(ex) ok_(__FILE__,line)(!lstrcmpW(method, ex), "method=%s, expected %s\n", wine_dbgstr_w(method), wine_dbgstr_w(ex)); else @@ -4576,7 +4576,7 @@ static void _test_form_put_method(unsigned line, IUnknown *unk, HRESULT exp_hres HRESULT hres;
hres = IHTMLFormElement_put_method(form, tmp); - ok_(__FILE__,line)(hres == exp_hres, "put_method returned: %08x, expected %08x\n", hres, exp_hres); + ok_(__FILE__,line)(hres == exp_hres, "put_method returned: %08lx, expected %08lx\n", hres, exp_hres); SysFreeString(tmp); IHTMLFormElement_Release(form);
@@ -4592,7 +4592,7 @@ static void _test_form_name(unsigned line, IUnknown *unk, const WCHAR *ex) HRESULT hres;
hres = IHTMLFormElement_get_name(form, &name); - ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08lx\n", hres); if(ex) ok_(__FILE__,line)(!lstrcmpW(name, ex), "name=%s, expected %s\n", wine_dbgstr_w(name), wine_dbgstr_w(ex)); else @@ -4610,7 +4610,7 @@ static void _test_form_put_name(unsigned line, IUnknown *unk, const WCHAR *name) HRESULT hres;
hres = IHTMLFormElement_put_name(form, tmp); - ok_(__FILE__,line)(hres == S_OK, "put_name failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_name failed: %08lx\n", hres); SysFreeString(tmp); IHTMLFormElement_Release(form);
@@ -4625,7 +4625,7 @@ static void _test_form_encoding(unsigned line, IUnknown *unk, const WCHAR *ex) HRESULT hres;
hres = IHTMLFormElement_get_encoding(form, &encoding); - ok_(__FILE__,line)(hres == S_OK, "get_encoding failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_encoding failed: %08lx\n", hres); if(ex) ok_(__FILE__,line)(!lstrcmpW(encoding, ex), "encoding=%s, expected %s\n", wine_dbgstr_w(encoding), wine_dbgstr_w(ex)); else @@ -4643,7 +4643,7 @@ static void _test_form_put_encoding(unsigned line, IUnknown *unk, HRESULT exp_hr HRESULT hres;
hres = IHTMLFormElement_put_encoding(form, tmp); - ok_(__FILE__,line)(hres == exp_hres, "put_encoding returned: %08x, expected %08x\n", hres, exp_hres); + ok_(__FILE__,line)(hres == exp_hres, "put_encoding returned: %08lx, expected %08lx\n", hres, exp_hres); SysFreeString(tmp); IHTMLFormElement_Release(form);
@@ -4661,7 +4661,7 @@ static void _test_form_elements(unsigned line, IUnknown *unk, const elem_type_t
disp = NULL; hres = IHTMLFormElement_get_elements(form, &disp); - ok_(__FILE__,line)(hres == S_OK, "get_elements failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_elements failed: %08lx\n", hres); ok_(__FILE__,line)(disp != NULL, "disp = NULL\n"); if(compat_mode < COMPAT_IE9) ok_(__FILE__,line)(iface_cmp((IUnknown*)form, (IUnknown*)disp), "disp != form\n"); @@ -4679,7 +4679,7 @@ static void _test_form_reset(unsigned line, IUnknown *unk) HRESULT hres;
hres = IHTMLFormElement_reset(form); - ok_(__FILE__,line)(hres == S_OK, "reset failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "reset failed: %08lx\n", hres);
IHTMLFormElement_Release(form); } @@ -4692,11 +4692,11 @@ static void test_form_target(IUnknown *unk)
str = SysAllocString(L"_blank"); hres = IHTMLFormElement_put_target(form, str); - ok(hres == S_OK, "put_target failed: %08x\n", hres); + ok(hres == S_OK, "put_target failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLFormElement_get_target(form, &str); - ok(hres == S_OK, "get_target failed: %08x\n", hres); + ok(hres == S_OK, "get_target failed: %08lx\n", hres); ok(!lstrcmpW(str, L"_blank"), "got %s\n", wine_dbgstr_w(str)); SysFreeString(str);
@@ -4710,10 +4710,10 @@ static void test_select_form(IUnknown *uselect, IUnknown *uform) HRESULT hres;
hres = IHTMLSelectElement_get_form(select, NULL); - ok(hres == E_POINTER, "got %08x\n, expected E_POINTER\n", hres); + ok(hres == E_POINTER, "got %08lx\n, expected E_POINTER\n", hres);
hres = IHTMLSelectElement_get_form(select, &form); - ok(hres == S_OK, "get_form failed: %08x\n", hres); + ok(hres == S_OK, "get_form failed: %08lx\n", hres); ok(form != NULL, "form == NULL\n");
test_form_length((IUnknown*)form, 2); @@ -4733,7 +4733,7 @@ static void test_select_form_notfound(IHTMLSelectElement *select)
form = (IHTMLFormElement*)0xdeadbeef; hres = IHTMLSelectElement_get_form(select, &form); - ok(hres == S_OK, "get_form failed: %08x\n", hres); + ok(hres == S_OK, "get_form failed: %08lx\n", hres); ok(form == NULL, "got %p\n", form); }
@@ -4746,7 +4746,7 @@ static void _test_meta_name(unsigned line, IUnknown *unk, const WCHAR *exname)
meta = _get_metaelem_iface(line, unk); hres = IHTMLMetaElement_get_name(meta, &name); - ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(name, exname), "name = %s, expected %s\n", wine_dbgstr_w(name), wine_dbgstr_w(exname)); SysFreeString(name); IHTMLMetaElement_Release(meta); @@ -4761,7 +4761,7 @@ static void _test_meta_content(unsigned line, IUnknown *unk, const WCHAR *excont
meta = _get_metaelem_iface(line, unk); hres = IHTMLMetaElement_get_content(meta, &content); - ok_(__FILE__,line)(hres == S_OK, "get_content failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_content failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(content, excontent), "content = %s, expected %s\n", wine_dbgstr_w(content), wine_dbgstr_w(excontent)); SysFreeString(content); IHTMLMetaElement_Release(meta); @@ -4776,7 +4776,7 @@ static void _test_meta_httpequiv(unsigned line, IUnknown *unk, const WCHAR *exva
meta = _get_metaelem_iface(line, unk); hres = IHTMLMetaElement_get_httpEquiv(meta, &val); - ok_(__FILE__,line)(hres == S_OK, "get_httpEquiv failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_httpEquiv failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(val, exval), "httpEquiv = %s, expected %s\n", wine_dbgstr_w(val), wine_dbgstr_w(exval)); SysFreeString(val); IHTMLMetaElement_Release(meta); @@ -4791,7 +4791,7 @@ static void _test_meta_charset(unsigned line, IUnknown *unk, const WCHAR *exval)
meta = _get_metaelem_iface(line, unk); hres = IHTMLMetaElement_get_charset(meta, &val); - ok_(__FILE__,line)(hres == S_OK, "get_charset failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_charset failed: %08lx\n", hres); if(exval) ok_(__FILE__,line)(!lstrcmpW(val, exval), "charset = %s, expected %s\n", wine_dbgstr_w(val), wine_dbgstr_w(exval)); else @@ -4809,7 +4809,7 @@ static void _set_meta_charset(unsigned line, IUnknown *unk, const WCHAR *v)
meta = _get_metaelem_iface(line, unk); hres = IHTMLMetaElement_put_charset(meta, val); - ok_(__FILE__,line)(hres == S_OK, "put_charset failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_charset failed: %08lx\n", hres); SysFreeString(val); IHTMLMetaElement_Release(meta);
@@ -4825,11 +4825,11 @@ static void _test_link_media(unsigned line, IHTMLElement *elem, const WCHAR *exv
str = SysAllocString(exval); hres = IHTMLLinkElement_put_media(link, str); - ok_(__FILE__,line)(hres == S_OK, "put_media failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_media failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLLinkElement_get_media(link, &str); - ok_(__FILE__,line)(hres == S_OK, "get_media failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_media failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(str, exval), "got %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exval)); SysFreeString(str); IHTMLLinkElement_Release(link); @@ -4843,7 +4843,7 @@ static void _test_link_disabled(unsigned line, IHTMLElement *elem, VARIANT_BOOL HRESULT hres;
hres = IHTMLLinkElement_get_disabled(link, &b); - ok_(__FILE__,line)(hres == S_OK, "get_disabled failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_disabled failed: %08lx\n", hres); ok_(__FILE__,line)(b == v, "disabled = %x, expected %x\n", b, v);
IHTMLLinkElement_Release(link); @@ -4856,7 +4856,7 @@ static void _link_put_disabled(unsigned line, IHTMLElement *elem, VARIANT_BOOL v HRESULT hres;
hres = IHTMLLinkElement_put_disabled(link, v); - ok_(__FILE__,line)(hres == S_OK, "put_disabled failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_disabled failed: %08lx\n", hres); IHTMLLinkElement_Release(link); _test_link_disabled(line, elem, v); } @@ -4869,7 +4869,7 @@ static void _test_link_rel(unsigned line, IHTMLElement *elem, const WCHAR *v) HRESULT hres;
hres = IHTMLLinkElement_get_rel(link, &rel); - ok_(__FILE__,line)(hres == S_OK, "get_rel failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_rel failed: %08lx\n", hres); if(v) ok_(__FILE__,line)(!lstrcmpW(rel, v), "rel = %s\n", wine_dbgstr_w(rel)); else @@ -4887,7 +4887,7 @@ static void _link_put_rel(unsigned line, IHTMLElement *elem, const WCHAR *v) HRESULT hres;
hres = IHTMLLinkElement_put_rel(link, str); - ok_(__FILE__,line)(hres == S_OK, "put_disabled failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_disabled failed: %08lx\n", hres); SysFreeString(str); IHTMLLinkElement_Release(link); _test_link_rel(line, elem, v); @@ -4901,7 +4901,7 @@ static void _test_link_rev(unsigned line, IHTMLElement *elem, const WCHAR *v) HRESULT hres;
hres = IHTMLLinkElement_get_rev(link, &rev); - ok_(__FILE__,line)(hres == S_OK, "get_rev failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_rev failed: %08lx\n", hres); if(v) ok_(__FILE__,line)(!lstrcmpW(rev, v), "rev = %s\n", wine_dbgstr_w(rev)); else @@ -4919,7 +4919,7 @@ static void _link_put_rev(unsigned line, IHTMLElement *elem, const WCHAR *v) HRESULT hres;
hres = IHTMLLinkElement_put_rev(link, str); - ok_(__FILE__,line)(hres == S_OK, "put_disabled failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_disabled failed: %08lx\n", hres); SysFreeString(str); IHTMLLinkElement_Release(link); _test_link_rev(line, elem, v); @@ -4933,7 +4933,7 @@ static void _test_link_type(unsigned line, IHTMLElement *elem, const WCHAR *v) HRESULT hres;
hres = IHTMLLinkElement_get_type(link, &type); - ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08lx\n", hres); if(v) ok_(__FILE__,line)(!lstrcmpW(type, v), "type = %s, expected %s\n", wine_dbgstr_w(type), wine_dbgstr_w(v)); else @@ -4951,7 +4951,7 @@ static void _test_script_text(unsigned line, IHTMLScriptElement *script, const W
str = (void*)0xdeadbeef; hres = IHTMLScriptElement_get_text(script, &str); - ok_(__FILE__,line)(hres == S_OK, "get_text failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_text failed: %08lx\n", hres); ok(!lstrcmpW(str, extext), "text = %s, expected "%s"\n", wine_dbgstr_w(str), wine_dbgstr_w(extext)); SysFreeString(str); } @@ -4964,7 +4964,7 @@ static void _link_put_type(unsigned line, IHTMLElement *elem, const WCHAR *v) HRESULT hres;
hres = IHTMLLinkElement_put_type(link, str); - ok_(__FILE__,line)(hres == S_OK, "put_disabled failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_disabled failed: %08lx\n", hres); SysFreeString(str); IHTMLLinkElement_Release(link); _test_link_type(line, elem, v); @@ -4978,7 +4978,7 @@ static void _test_link_href(unsigned line, IHTMLElement *elem, const WCHAR *v) HRESULT hres;
hres = IHTMLLinkElement_get_href(link, &href); - ok_(__FILE__,line)(hres == S_OK, "get_href failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_href failed: %08lx\n", hres); if(v) ok_(__FILE__,line)(!lstrcmpW(href, v), "href = %s, expected %s\n", wine_dbgstr_w(href), wine_dbgstr_w(v)); else @@ -4996,7 +4996,7 @@ static void _link_put_href(unsigned line, IHTMLElement *elem, const WCHAR *v) HRESULT hres;
hres = IHTMLLinkElement_put_href(link, str); - ok_(__FILE__,line)(hres == S_OK, "put_disabled failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_disabled failed: %08lx\n", hres); SysFreeString(str); IHTMLLinkElement_Release(link); _test_link_href(line, elem, v); @@ -5012,12 +5012,12 @@ static IHTMLDocument2 *_get_elem_doc(unsigned line, IUnknown *unk)
disp = NULL; hres = IHTMLElement_get_document(elem, &disp); - ok(hres == S_OK, "get_document failed: %08x\n", hres); + ok(hres == S_OK, "get_document failed: %08lx\n", hres); ok(disp != NULL, "disp == NULL\n");
hres = IDispatch_QueryInterface(disp, &IID_IHTMLDocument2, (void**)&doc); IDispatch_Release(disp); - ok(hres == S_OK, "Could not get IHTMLDocument2 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLDocument2 iface: %08lx\n", hres);
return doc; } @@ -5032,7 +5032,7 @@ static IHTMLDOMAttribute *_get_elem_attr_node(unsigned line, IUnknown *unk, cons
attr = (void*)0xdeadbeef; hres = IHTMLElement4_getAttributeNode(elem, str, &attr); - ok_(__FILE__,line)(hres == S_OK, "getAttributeNode failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "getAttributeNode failed: %08lx\n", hres); if(expect_success) ok_(__FILE__,line)(attr != NULL, "attr = NULL\n"); else @@ -5050,7 +5050,7 @@ static void _get_attr_node_value(unsigned line, IHTMLDOMAttribute *attr, VARIANT
V_VT(v) = VT_EMPTY; hres = IHTMLDOMAttribute_get_nodeValue(attr, v); - ok_(__FILE__,line) (hres == S_OK, "get_nodeValue failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_nodeValue failed: %08lx\n", hres); ok_(__FILE__,line) (V_VT(v) == vt, "vt=%d, expected %d\n", V_VT(v), vt); }
@@ -5060,7 +5060,7 @@ static void _put_attr_node_value(unsigned line, IHTMLDOMAttribute *attr, VARIANT HRESULT hres;
hres = IHTMLDOMAttribute_put_nodeValue(attr, v); - ok_(__FILE__,line) (hres == S_OK, "put_nodeValue failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_nodeValue failed: %08lx\n", hres); }
#define put_attr_value(a,b) _put_attr_value(__LINE__,a,b) @@ -5071,7 +5071,7 @@ static void _put_attr_value(unsigned line, IHTMLDOMAttribute *attr, const WCHAR HRESULT hres;
hres = IHTMLDOMAttribute2_put_value(attr2, str); - ok_(__FILE__,line) (hres == S_OK, "put_nodeValue failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_nodeValue failed: %08lx\n", hres);
IHTMLDOMAttribute2_Release(attr2); SysFreeString(str); @@ -5085,7 +5085,7 @@ static IHTMLDocument2 *_get_window_doc(unsigned line, IHTMLWindow2 *window)
doc = NULL; hres = IHTMLWindow2_get_document(window, &doc); - ok(hres == S_OK, "get_document failed: %08x\n", hres); + ok(hres == S_OK, "get_document failed: %08lx\n", hres); ok(doc != NULL, "disp == NULL\n");
return doc; @@ -5098,7 +5098,7 @@ static IHTMLElement *_doc_get_body(unsigned line, IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_body(doc, &elem); - ok_(__FILE__,line)(hres == S_OK, "get_body failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_body failed: %08lx\n", hres); ok_(__FILE__,line)(elem != NULL, "body == NULL\n");
return elem; @@ -5121,7 +5121,7 @@ static IHTMLElement *_test_create_elem(unsigned line, IHTMLDocument2 *doc, const
tmp = SysAllocString(tag); hres = IHTMLDocument2_createElement(doc, tmp, &elem); - ok_(__FILE__,line) (hres == S_OK, "createElement failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "createElement failed: %08lx\n", hres); ok_(__FILE__,line) (elem != NULL, "elem == NULL\n"); SysFreeString(tmp);
@@ -5137,13 +5137,13 @@ static IHTMLDOMNode *_test_create_text(unsigned line, IHTMLDocument2 *doc, const HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDocument3: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDocument3: %08lx\n", hres);
tmp = SysAllocString(text); hres = IHTMLDocument3_createTextNode(doc3, tmp, &node); IHTMLDocument3_Release(doc3); SysFreeString(tmp); - ok_(__FILE__,line) (hres == S_OK, "createElement failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "createElement failed: %08lx\n", hres); ok_(__FILE__,line) (node != NULL, "node == NULL\n");
return node; @@ -5158,7 +5158,7 @@ static IHTMLDOMNode *_test_node_append_child(unsigned line, IUnknown *node_unk, HRESULT hres;
hres = IHTMLDOMNode_appendChild(node, child, &new_child); - ok_(__FILE__,line) (hres == S_OK, "appendChild failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "appendChild failed: %08lx\n", hres); ok_(__FILE__,line) (new_child != NULL, "new_child == NULL\n"); /* TODO ok_(__FILE__,line) (new_child != child, "new_child == child\n"); */
@@ -5176,7 +5176,7 @@ static IHTMLDOMNode *_test_node_insertbefore(unsigned line, IUnknown *node_unk, HRESULT hres;
hres = IHTMLDOMNode_insertBefore(node, child, *var, &new_child); - ok_(__FILE__,line) (hres == S_OK, "insertBefore failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "insertBefore failed: %08lx\n", hres); ok_(__FILE__,line) (new_child != NULL, "new_child == NULL\n"); /* TODO ok_(__FILE__,line) (new_child != child, "new_child == child\n"); */
@@ -5193,7 +5193,7 @@ static void _test_node_remove_child(unsigned line, IUnknown *unk, IHTMLDOMNode * HRESULT hres;
hres = IHTMLDOMNode_removeChild(node, child, &new_node); - ok_(__FILE__,line) (hres == S_OK, "removeChild failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "removeChild failed: %08lx\n", hres); ok_(__FILE__,line) (new_node != NULL, "new_node == NULL\n"); /* TODO ok_(__FILE__,line) (new_node != child, "new_node == child\n"); */
@@ -5208,7 +5208,7 @@ static void _test_doc_title(unsigned line, IHTMLDocument2 *doc, const WCHAR *ext HRESULT hres;
hres = IHTMLDocument2_get_title(doc, &title); - ok_(__FILE__,line) (hres == S_OK, "get_title failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_title failed: %08lx\n", hres); ok_(__FILE__,line) (!lstrcmpW(title, extitle), "unexpected title %s\n", wine_dbgstr_w(title)); SysFreeString(title); } @@ -5221,7 +5221,7 @@ static void _test_doc_set_title(unsigned line, IHTMLDocument2 *doc, const WCHAR
tmp = SysAllocString(title); hres = IHTMLDocument2_put_title(doc, tmp); - ok_(__FILE__,line) (hres == S_OK, "get_title failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_title failed: %08lx\n", hres); SysFreeString(tmp); }
@@ -5236,9 +5236,9 @@ static void test_elem_bounding_client_rect(IUnknown *unk)
elem2 = get_elem2_iface(unk); hres = IHTMLElement2_getBoundingClientRect(elem2, &rect); - ok(hres == S_OK, "getBoundingClientRect failed: %08x\n", hres); + ok(hres == S_OK, "getBoundingClientRect failed: %08lx\n", hres); hres = IHTMLElement2_getBoundingClientRect(elem2, &rect2); - ok(hres == S_OK, "getBoundingClientRect failed: %08x\n", hres); + ok(hres == S_OK, "getBoundingClientRect failed: %08lx\n", hres); ok(rect != NULL, "rect == NULL\n"); ok(rect != rect2, "rect == rect2\n"); IHTMLRect_Release(rect2); @@ -5247,40 +5247,40 @@ static void test_elem_bounding_client_rect(IUnknown *unk)
l = 0xdeadbeef; hres = IHTMLRect_get_top(rect, &l); - ok(hres == S_OK, "get_top failed: %08x\n", hres); + ok(hres == S_OK, "get_top failed: %08lx\n", hres); ok(l != 0xdeadbeef, "l = 0xdeadbeef\n");
l = 0xdeadbeef; hres = IHTMLRect_get_left(rect, &l); - ok(hres == S_OK, "get_left failed: %08x\n", hres); + ok(hres == S_OK, "get_left failed: %08lx\n", hres); ok(l != 0xdeadbeef, "l = 0xdeadbeef\n");
l = 0xdeadbeef; hres = IHTMLRect_get_bottom(rect, &l); - ok(hres == S_OK, "get_bottom failed: %08x\n", hres); + ok(hres == S_OK, "get_bottom failed: %08lx\n", hres); ok(l != 0xdeadbeef, "l = 0xdeadbeef\n");
l = 0xdeadbeef; hres = IHTMLRect_get_right(rect, &l); - ok(hres == S_OK, "get_right failed: %08x\n", hres); + ok(hres == S_OK, "get_right failed: %08lx\n", hres); ok(l != 0xdeadbeef, "l = 0xdeadbeef\n");
IHTMLRect_Release(rect);
hres = IHTMLElement2_getClientRects(elem2, &rects); - ok(hres == S_OK, "getClientRects failed: %08x\n", hres); + ok(hres == S_OK, "getClientRects failed: %08lx\n", hres);
test_disp((IUnknown*)rects, &IID_IHTMLRectCollection, NULL, L"[object]");
hres = IHTMLRectCollection_get_length(rects, &l); - ok(hres == S_OK, "get_length failed: %08x\n", hres); - ok(l == 1, "length = %u\n", l); + ok(hres == S_OK, "get_length failed: %08lx\n", hres); + ok(l == 1, "length = %lu\n", l);
V_VT(&index) = VT_I4; V_I4(&index) = 0; V_VT(&v) = VT_ERROR; hres = IHTMLRectCollection_item(rects, &index, &v); - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres); ok(V_VT(&v) == VT_DISPATCH, "V_VT(v) = %d\n", V_VT(&v)); test_disp((IUnknown*)V_DISPATCH(&v), &IID_IHTMLRect, NULL, L"[object]"); VariantClear(&v); @@ -5302,7 +5302,7 @@ static void test_elem_col_item(IHTMLElementCollection *col, const WCHAR *n, V_BSTR(&name) = SysAllocString(n);
hres = IHTMLElementCollection_item(col, name, index, &disp); - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres);
test_elem_collection((IUnknown*)disp, elem_types, len); IDispatch_Release(disp); @@ -5313,7 +5313,7 @@ static void test_elem_col_item(IHTMLElementCollection *col, const WCHAR *n, V_I4(&index) = i; disp = (void*)0xdeadbeef; hres = IHTMLElementCollection_item(col, name, index, &disp); - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres); ok(disp != NULL, "disp == NULL\n"); if(FAILED(hres) || !disp) continue; @@ -5326,13 +5326,13 @@ static void test_elem_col_item(IHTMLElementCollection *col, const WCHAR *n, V_I4(&index) = len; disp = (void*)0xdeadbeef; hres = IHTMLElementCollection_item(col, name, index, &disp); - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres); ok(disp == NULL, "disp != NULL\n");
V_I4(&index) = -1; disp = (void*)0xdeadbeef; hres = IHTMLElementCollection_item(col, name, index, &disp); - ok(hres == E_INVALIDARG, "item failed: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "item failed: %08lx, expected E_INVALIDARG\n", hres); ok(disp == NULL, "disp != NULL\n");
SysFreeString(V_BSTR(&name)); @@ -5347,7 +5347,7 @@ static IHTMLElement *get_elem_by_id(IHTMLDocument2 *doc, const WCHAR *id, BOOL e HRESULT hres;
hres = IHTMLDocument2_get_all(doc, &col); - ok(hres == S_OK, "get_all failed: %08x\n", hres); + ok(hres == S_OK, "get_all failed: %08lx\n", hres); ok(col != NULL, "col == NULL\n"); if(FAILED(hres) || !col) return NULL; @@ -5359,7 +5359,7 @@ static IHTMLElement *get_elem_by_id(IHTMLDocument2 *doc, const WCHAR *id, BOOL e hres = IHTMLElementCollection_item(col, name, index, &disp); IHTMLElementCollection_Release(col); SysFreeString(V_BSTR(&name)); - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres); if(!expect_success) { ok(disp == NULL, "disp != NULL\n"); return NULL; @@ -5383,12 +5383,12 @@ static IHTMLElement *get_doc_elem_by_id(IHTMLDocument2 *doc, const WCHAR *id) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3); - ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08lx\n", hres);
tmp = SysAllocString(id); hres = IHTMLDocument3_getElementById(doc3, tmp, &elem); SysFreeString(tmp); - ok(hres == S_OK, "getElementById(%s) failed: %08x\n", wine_dbgstr_w(id), hres); + ok(hres == S_OK, "getElementById(%s) failed: %08lx\n", wine_dbgstr_w(id), hres);
IHTMLDocument3_Release(doc3);
@@ -5429,7 +5429,7 @@ static void test_select_elem(IHTMLSelectElement *select)
disp = NULL; hres = IHTMLSelectElement_get_options(select, &disp); - ok(hres == S_OK, "get_options failed: %08x\n", hres); + ok(hres == S_OK, "get_options failed: %08lx\n", hres); ok(disp != NULL, "options == NULL\n"); ok(iface_cmp((IUnknown*)disp, (IUnknown*)select), "disp != select\n"); IDispatch_Release(disp); @@ -5439,22 +5439,22 @@ static void test_select_elem(IHTMLSelectElement *select) V_I4(&name) = -1; disp = (void*)0xdeadbeef; hres = IHTMLSelectElement_item(select, name, index, &disp); - ok(hres == E_INVALIDARG, "item failed: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "item failed: %08lx, expected E_INVALIDARG\n", hres); ok(!disp, "disp = %p\n", disp);
V_I4(&name) = 2; disp = (void*)0xdeadbeef; hres = IHTMLSelectElement_item(select, name, index, &disp); - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres); ok(!disp, "disp = %p\n", disp);
V_I4(&name) = 1; hres = IHTMLSelectElement_item(select, name, index, NULL); - ok(hres == E_POINTER || broken(hres == E_INVALIDARG), "item failed: %08x, expected E_POINTER\n", hres); + ok(hres == E_POINTER || broken(hres == E_INVALIDARG), "item failed: %08lx, expected E_POINTER\n", hres);
disp = NULL; hres = IHTMLSelectElement_item(select, name, index, &disp); - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres); ok(disp != NULL, "disp = NULL\n"); test_disp((IUnknown*)disp, &DIID_DispHTMLOptionElement, &CLSID_HTMLOptionElement, NULL);
@@ -5462,7 +5462,7 @@ static void test_select_elem(IHTMLSelectElement *select) V_I4(&index) = 1; disp2 = NULL; hres = IHTMLSelectElement_item(select, name, index, &disp2); - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres); ok(disp2 != NULL, "disp = NULL\n"); ok(iface_cmp((IUnknown*)disp, (IUnknown*)disp2), "disp != disp2\n"); IDispatch_Release(disp2); @@ -5486,24 +5486,24 @@ static void test_form_item(IHTMLElement *elem) disp = (void*)0xdeadbeef; hres = IHTMLFormElement_item(form, name, index, &disp); if(compat_mode < COMPAT_IE9) - ok(hres == E_INVALIDARG, "item failed: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "item failed: %08lx, expected E_INVALIDARG\n", hres); else - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres); ok(!disp, "disp = %p\n", disp);
V_I4(&name) = 2; disp = (void*)0xdeadbeef; hres = IHTMLFormElement_item(form, name, index, &disp); - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres); ok(!disp, "disp = %p\n", disp);
V_I4(&name) = 1; hres = IHTMLFormElement_item(form, name, index, NULL); - ok(hres == E_INVALIDARG, "item failed: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "item failed: %08lx, expected E_INVALIDARG\n", hres);
disp = NULL; hres = IHTMLFormElement_item(form, name, index, &disp); - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres); ok(disp != NULL, "disp = NULL\n"); test_disp((IUnknown*)disp, &DIID_DispHTMLInputElement, &CLSID_HTMLInputElement, NULL);
@@ -5511,7 +5511,7 @@ static void test_form_item(IHTMLElement *elem) V_I4(&index) = 1; disp2 = NULL; hres = IHTMLFormElement_item(form, name, index, &disp2); - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres); ok(disp2 != NULL, "disp = NULL\n"); ok(iface_cmp((IUnknown*)disp, (IUnknown*)disp2), "disp != disp2\n"); IDispatch_Release(disp2); @@ -5541,10 +5541,10 @@ static void test_option_form(IUnknown *uoption, IUnknown *uform) HRESULT hres;
hres = IHTMLOptionElement_get_form(option, NULL); - ok(hres == E_POINTER, "got %08x\n, expected E_POINTER\n", hres); + ok(hres == E_POINTER, "got %08lx\n, expected E_POINTER\n", hres);
hres = IHTMLOptionElement_get_form(option, &form); - ok(hres == S_OK, "get_form failed: %08x\n", hres); + ok(hres == S_OK, "get_form failed: %08lx\n", hres); ok(form != NULL, "form == NULL\n");
ok(iface_cmp(uform, (IUnknown*)form), "Expected %p, got %p\n", uform, form); @@ -5586,20 +5586,20 @@ static void _test_doc_selection_type(unsigned line, IHTMLDocument2 *doc, const W HRESULT hres;
hres = IHTMLDocument2_get_selection(doc, &selection); - ok_(__FILE__,line)(hres == S_OK, "get_selection failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_selection failed: %08lx\n", hres);
hres = IHTMLSelectionObject_get_type(selection, &str); - ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(str, type), "type = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(type)); SysFreeString(str);
hres = IHTMLSelectionObject_QueryInterface(selection, &IID_IHTMLSelectionObject2, (void**)&selection2); - ok_(__FILE__,line)(hres == S_OK, "Could not get IHTMLSelectionObject2 iface: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Could not get IHTMLSelectionObject2 iface: %08lx\n", hres);
IHTMLSelectionObject_Release(selection);
hres = IHTMLSelectionObject2_get_typeDetail(selection2, &str); - ok_(__FILE__,line)(hres == S_OK, "get_typeDetail failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_typeDetail failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(str, L"undefined"), "typeDetail = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
@@ -5617,7 +5617,7 @@ static void _insert_adjacent_elem(unsigned line, IHTMLElement *parent, const WCH hres = IHTMLElement2_insertAdjacentElement(elem2, str, elem, &ret_elem); IHTMLElement2_Release(elem2); SysFreeString(str); - ok_(__FILE__,line)(hres == S_OK, "insertAdjacentElement failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "insertAdjacentElement failed: %08lx\n", hres); ok_(__FILE__,line)(ret_elem == elem, "ret_elem != elem\n"); IHTMLElement_Release(ret_elem); } @@ -5659,12 +5659,12 @@ static IHTMLTxtRange *test_create_body_range(IHTMLDocument2 *doc)
elem = doc_get_body(doc); hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLBodyElement, (void**)&body); - ok(hres == S_OK, "QueryInterface failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface failed: %08lx\n", hres); IHTMLElement_Release(elem);
hres = IHTMLBodyElement_createTextRange(body, &range); IHTMLBodyElement_Release(body); - ok(hres == S_OK, "createTextRange failed: %08x\n", hres); + ok(hres == S_OK, "createTextRange failed: %08lx\n", hres);
return range; } @@ -5676,7 +5676,7 @@ static IHTMLTxtRange *_range_duplicate(unsigned line, IHTMLTxtRange *range) HRESULT hres;
hres = IHTMLTxtRange_duplicate(range, &ret); - ok_(__FILE__,line)(hres == S_OK, "duplicate failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "duplicate failed: %08lx\n", hres);
return ret; } @@ -5689,7 +5689,7 @@ static void _test_range_set_end_point(unsigned line, IHTMLTxtRange *range, const HRESULT hres;
hres = IHTMLTxtRange_setEndPoint(range, str, ref_range); - ok_(__FILE__,line)(hres == exhres, "setEndPoint failed: %08x, expected %08x\n", hres, exhres); + ok_(__FILE__,line)(hres == exhres, "setEndPoint failed: %08lx, expected %08lx\n", hres, exhres); SysFreeString(str); }
@@ -5844,17 +5844,17 @@ static void test_txtrange(IHTMLDocument2 *doc) IHTMLTxtRange_Release(range);
hres = IHTMLDocument2_get_selection(doc, &selection); - ok(hres == S_OK, "IHTMLDocument2_get_selection failed: %08x\n", hres); + ok(hres == S_OK, "IHTMLDocument2_get_selection failed: %08lx\n", hres);
test_disp((IUnknown*)selection, &IID_IHTMLSelectionObject, NULL, L"[object]"); test_ifaces((IUnknown*)selection, selection_iids);
hres = IHTMLSelectionObject_createRange(selection, &disp_range); - ok(hres == S_OK, "IHTMLSelectionObject_createRange failed: %08x\n", hres); + ok(hres == S_OK, "IHTMLSelectionObject_createRange failed: %08lx\n", hres); IHTMLSelectionObject_Release(selection);
hres = IDispatch_QueryInterface(disp_range, &IID_IHTMLTxtRange, (void **)&range); - ok(hres == S_OK, "Could not get IID_IHTMLTxtRange interface: 0x%08x\n", hres); + ok(hres == S_OK, "Could not get IID_IHTMLTxtRange interface: 0x%08lx\n", hres); IDispatch_Release(disp_range);
test_range_text(range, NULL); @@ -5883,7 +5883,7 @@ static void test_txtrange(IHTMLDocument2 *doc) body = doc_get_body(doc);
hres = IHTMLTxtRange_moveToElementText(range, body); - ok(hres == S_OK, "moveToElementText failed: %08x\n", hres); + ok(hres == S_OK, "moveToElementText failed: %08lx\n", hres);
test_range_text(range, L"abc xyz abc 123\r\nit's text"); test_range_parent(range, ET_BODY); @@ -5900,7 +5900,7 @@ static void test_txtrange(IHTMLDocument2 *doc) test_range_text(range, L"xyz");
hres = IHTMLTxtRange_moveToElementText(range, body); - ok(hres == S_OK, "moveToElementText failed: %08x\n", hres); + ok(hres == S_OK, "moveToElementText failed: %08lx\n", hres);
test_range_text(range, L"abc \r\npaste\r\nxyz abc 123\r\nit's text");
@@ -5933,7 +5933,7 @@ static void test_txtrange(IHTMLDocument2 *doc) test_range_set_end_point(range, L"xxx", body_range, E_INVALIDARG);
hres = IHTMLTxtRange_select(range); - ok(hres == S_OK, "select failed: %08x\n", hres); + ok(hres == S_OK, "select failed: %08lx\n", hres);
test_doc_selection_type(doc, L"Text");
@@ -5976,13 +5976,13 @@ static void test_markup_services(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IMarkupServices, (void**)&markup_services); - ok(hres == S_OK, "Could not get IMarkupServices iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IMarkupServices iface: %08lx\n", hres);
hres = IMarkupServices_CreateMarkupPointer(markup_services, &markup_pointer); - ok(hres == S_OK, "CreateMarkupPointer failed: %08x\n", hres); + ok(hres == S_OK, "CreateMarkupPointer failed: %08lx\n", hres);
hres = IMarkupPointer_QueryInterface(markup_pointer, &IID_IMarkupPointer2, (void**)&markup_pointer2); - ok(hres == S_OK, "Could not get IMarkupPointer2 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IMarkupPointer2 iface: %08lx\n", hres);
IMarkupPointer_Release(markup_pointer); IMarkupPointer2_Release(markup_pointer2); @@ -5997,12 +5997,12 @@ static void test_range(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IDocumentRange, (void **)&doc_range); - ok(hres == S_OK, "Failed to get IDocumentRange: %08x\n", hres); + ok(hres == S_OK, "Failed to get IDocumentRange: %08lx\n", hres); if (FAILED(hres)) return;
hres = IDocumentRange_createRange(doc_range, &range); - ok(hres == S_OK, "Failed to create range, %08x\n", hres); + ok(hres == S_OK, "Failed to create range, %08lx\n", hres);
test_disp((IUnknown *)range, &DIID_DispHTMLDOMRange, NULL, NULL);
@@ -6023,7 +6023,7 @@ static void _test_compatmode(unsigned line, IHTMLDocument2 *doc2, const WCHAR * HRESULT hres;
hres = IHTMLDocument5_get_compatMode(doc, &str); - ok_(__FILE__,line)(hres == S_OK, "get_compatMode failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_compatMode failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(str, excompat), "compatMode = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(excompat)); SysFreeString(str);
@@ -6038,19 +6038,19 @@ static void test_location(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_location(doc, &location); - ok(hres == S_OK, "get_location failed: %08x\n", hres); + ok(hres == S_OK, "get_location failed: %08lx\n", hres);
hres = IHTMLDocument2_get_location(doc, &location2); - ok(hres == S_OK, "get_location failed: %08x\n", hres); + ok(hres == S_OK, "get_location failed: %08lx\n", hres);
ok(location == location2, "location != location2\n"); IHTMLLocation_Release(location2);
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres);
hres = IHTMLWindow2_get_location(window, &location2); - ok(hres == S_OK, "get_location failed: %08x\n", hres); + ok(hres == S_OK, "get_location failed: %08lx\n", hres); ok(location == location2, "location != location2\n"); IHTMLLocation_Release(location2);
@@ -6058,15 +6058,15 @@ static void test_location(IHTMLDocument2 *doc) test_disp2((IUnknown*)location, &DIID_DispHTMLLocation, &IID_IHTMLLocation, NULL, L"about:blank");
hres = IHTMLLocation_get_pathname(location, &str); - ok(hres == S_OK, "get_pathname failed: %08x\n", hres); + ok(hres == S_OK, "get_pathname failed: %08lx\n", hres); ok(!lstrcmpW(str, L"blank"), "unexpected pathname %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLLocation_get_href(location, NULL); - ok(hres == E_POINTER, "get_href passed: %08x\n", hres); + ok(hres == E_POINTER, "get_href passed: %08lx\n", hres);
hres = IHTMLLocation_get_href(location, &str); - ok(hres == S_OK, "get_href failed: %08x\n", hres); + ok(hres == S_OK, "get_href failed: %08lx\n", hres); ok(!lstrcmpW(str, L"about:blank"), "unexpected href %s\n", wine_dbgstr_w(str)); SysFreeString(str);
@@ -6084,14 +6084,14 @@ static void test_plugins_col(IHTMLDocument2 *doc)
window = get_doc_window(doc); hres = IHTMLWindow2_get_navigator(window, &nav); - ok(hres == S_OK, "get_navigator failed: %08x\n", hres); + ok(hres == S_OK, "get_navigator failed: %08lx\n", hres); IHTMLWindow2_Release(window);
hres = IOmNavigator_get_plugins(nav, &col); - ok(hres == S_OK, "get_plugins failed: %08x\n", hres); + ok(hres == S_OK, "get_plugins failed: %08lx\n", hres);
hres = IOmNavigator_get_plugins(nav, &col2); - ok(hres == S_OK, "get_plugins failed: %08x\n", hres); + ok(hres == S_OK, "get_plugins failed: %08lx\n", hres); ok(iface_cmp((IUnknown*)col, (IUnknown*)col2), "col != col2\n"); IHTMLPluginsCollection_Release(col2);
@@ -6099,17 +6099,17 @@ static void test_plugins_col(IHTMLDocument2 *doc)
len = 0xdeadbeef; hres = IHTMLPluginsCollection_get_length(col, &len); - ok(hres == S_OK, "get_length failed: %08x\n", hres); - ok(!len, "length = %d\n", len); + ok(hres == S_OK, "get_length failed: %08lx\n", hres); + ok(!len, "length = %ld\n", len);
hres = IHTMLPluginsCollection_refresh(col, VARIANT_FALSE); - ok(hres == S_OK, "refresh failed: %08x\n", hres); + ok(hres == S_OK, "refresh failed: %08lx\n", hres);
hres = IHTMLPluginsCollection_refresh(col, VARIANT_TRUE); - ok(hres == S_OK, "refresh failed: %08x\n", hres); + ok(hres == S_OK, "refresh failed: %08lx\n", hres);
ref = IHTMLPluginsCollection_Release(col); - ok(!ref, "ref=%d\n", ref); + ok(!ref, "ref=%ld\n", ref);
IOmNavigator_Release(nav); } @@ -6122,10 +6122,10 @@ static void test_mime_types_col(IOmNavigator *nav) HRESULT hres;
hres = IOmNavigator_get_mimeTypes(nav, &col); - ok(hres == S_OK, "get_mimeTypes failed: %08x\n", hres); + ok(hres == S_OK, "get_mimeTypes failed: %08lx\n", hres);
hres = IOmNavigator_get_mimeTypes(nav, &col2); - ok(hres == S_OK, "get_mimeTypes failed: %08x\n", hres); + ok(hres == S_OK, "get_mimeTypes failed: %08lx\n", hres); ok(iface_cmp((IUnknown*)col, (IUnknown*)col2), "col != col2\n"); IHTMLMimeTypesCollection_Release(col2);
@@ -6133,11 +6133,11 @@ static void test_mime_types_col(IOmNavigator *nav)
length = 0xdeadbeef; hres = IHTMLMimeTypesCollection_get_length(col, &length); - ok(hres == S_OK, "get_length failed: %08x\n", hres); - ok(!length, "length = %d\n", length); + ok(hres == S_OK, "get_length failed: %08lx\n", hres); + ok(!length, "length = %ld\n", length);
ref = IHTMLMimeTypesCollection_Release(col); - ok(!ref, "ref=%d\n", ref); + ok(!ref, "ref=%ld\n", ref); }
#define test_framebase_name(a,b) _test_framebase_name(__LINE__,a,b) @@ -6148,10 +6148,10 @@ static void _test_framebase_name(unsigned line, IHTMLElement *elem, const WCHAR HRESULT hres;
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLFrameBase, (void**)&fbase); - ok(hres == S_OK, "Could not get IHTMLFrameBase interface: 0x%08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLFrameBase interface: 0x%08lx\n", hres);
hres = IHTMLFrameBase_get_name(fbase, &str); - ok_(__FILE__,line)(hres == S_OK, "IHTMLFrameBase_get_name failed: 0x%08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "IHTMLFrameBase_get_name failed: 0x%08lx\n", hres); if(name) ok_(__FILE__,line)(!lstrcmpW(str, name), "name = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(name)); else @@ -6169,11 +6169,11 @@ static void _test_framebase_put_name(unsigned line, IHTMLElement *elem, const WC BSTR str;
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLFrameBase, (void**)&fbase); - ok(hres == S_OK, "Could not get IHTMLFrameBase interface: 0x%08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLFrameBase interface: 0x%08lx\n", hres);
str = name ? SysAllocString(name) : NULL; hres = IHTMLFrameBase_put_name(fbase, str); - ok_(__FILE__,line)(hres == S_OK, "put_name failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_name failed: %08lx\n", hres); SysFreeString(str);
_test_framebase_name(line, elem, name); @@ -6188,10 +6188,10 @@ static void _test_framebase_src(unsigned line, IHTMLElement *elem, const WCHAR * HRESULT hres;
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLFrameBase, (void**)&fbase); - ok(hres == S_OK, "Could not get IHTMLFrameBase interface: 0x%08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLFrameBase interface: 0x%08lx\n", hres);
hres = IHTMLFrameBase_get_src(fbase, &str); - ok_(__FILE__,line)(hres == S_OK, "IHTMLFrameBase_get_src failed: 0x%08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "IHTMLFrameBase_get_src failed: 0x%08lx\n", hres); if(src) ok_(__FILE__,line)(!lstrcmpW(str, src), "src = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(src)); else @@ -6208,7 +6208,7 @@ static void _test_framebase_marginheight(unsigned line, IHTMLFrameBase *framebas HRESULT hres;
hres = IHTMLFrameBase_get_marginHeight(framebase, &v); - ok_(__FILE__,line)(hres == S_OK, "get_marginHeight failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_marginHeight failed: %08lx\n", hres); ok_(__FILE__,line)(V_VT(&v) == VT_BSTR, "V_VT(marginHeight) = %d\n", V_VT(&v)); if(exval) ok_(__FILE__,line)(!lstrcmpW(V_BSTR(&v), exval), "marginHeight = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -6226,7 +6226,7 @@ static void _set_framebase_marginheight(unsigned line, IHTMLFrameBase *framebase V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(val); hres = IHTMLFrameBase_put_marginHeight(framebase, v); - ok_(__FILE__,line)(hres == S_OK, "put_marginHeight failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_marginHeight failed: %08lx\n", hres); VariantClear(&v); }
@@ -6237,7 +6237,7 @@ static void _test_framebase_marginwidth(unsigned line, IHTMLFrameBase *framebase HRESULT hres;
hres = IHTMLFrameBase_get_marginWidth(framebase, &v); - ok_(__FILE__,line)(hres == S_OK, "get_marginWidth failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_marginWidth failed: %08lx\n", hres); ok_(__FILE__,line)(V_VT(&v) == VT_BSTR, "V_VT(marginWidth) = %d\n", V_VT(&v)); if(exval) ok_(__FILE__,line)(!lstrcmpW(V_BSTR(&v), exval), "marginWidth = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -6255,7 +6255,7 @@ static void _set_framebase_marginwidth(unsigned line, IHTMLFrameBase *framebase, V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(val); hres = IHTMLFrameBase_put_marginWidth(framebase, v); - ok_(__FILE__,line)(hres == S_OK, "put_marginWidth failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_marginWidth failed: %08lx\n", hres); VariantClear(&v); }
@@ -6267,45 +6267,45 @@ static void test_framebase(IUnknown *unk)
/* get/put scrolling */ hres = IUnknown_QueryInterface(unk, &IID_IHTMLFrameBase, (void**)&fbase); - ok(hres == S_OK, "Could not get IHTMLFrameBase interface: 0x%08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLFrameBase interface: 0x%08lx\n", hres);
hres = IHTMLFrameBase_get_scrolling(fbase, &str); - ok(hres == S_OK, "IHTMLFrameBase_get_scrolling failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLFrameBase_get_scrolling failed: 0x%08lx\n", hres); ok(!lstrcmpW(str, L"auto"), "get_scrolling should have given 'auto', gave: %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"no"); hres = IHTMLFrameBase_put_scrolling(fbase, str); - ok(hres == S_OK, "IHTMLFrameBase_put_scrolling failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLFrameBase_put_scrolling failed: 0x%08lx\n", hres); SysFreeString(str);
hres = IHTMLFrameBase_get_scrolling(fbase, &str); - ok(hres == S_OK, "IHTMLFrameBase_get_scrolling failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLFrameBase_get_scrolling failed: 0x%08lx\n", hres); ok(!lstrcmpW(str, L"no"), "get_scrolling should have given 'no', gave: %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"junk"); hres = IHTMLFrameBase_put_scrolling(fbase, str); ok(hres == E_INVALIDARG, "IHTMLFrameBase_put_scrolling should have failed " - "with E_INVALIDARG, instead: 0x%08x\n", hres); + "with E_INVALIDARG, instead: 0x%08lx\n", hres); SysFreeString(str);
hres = IHTMLFrameBase_get_scrolling(fbase, &str); - ok(hres == S_OK, "IHTMLFrameBase_get_scrolling failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLFrameBase_get_scrolling failed: 0x%08lx\n", hres); ok(!lstrcmpW(str, L"no"), "get_scrolling should have given 'no', gave: %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLFrameBase_get_frameBorder(fbase, &str); - ok(hres == S_OK, "get_frameBorder failed: %08x\n", hres); + ok(hres == S_OK, "get_frameBorder failed: %08lx\n", hres); ok(!str, "frameBorder = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"1"); hres = IHTMLFrameBase_put_frameBorder(fbase, str); - ok(hres == S_OK, "put_frameBorder failed: %08x\n", hres); + ok(hres == S_OK, "put_frameBorder failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLFrameBase_get_frameBorder(fbase, &str); - ok(hres == S_OK, "get_frameBorder failed: %08x\n", hres); + ok(hres == S_OK, "get_frameBorder failed: %08lx\n", hres); ok(!lstrcmpW(str, L"1"), "frameBorder = %s, expected "1"\n", wine_dbgstr_w(str)); SysFreeString(str);
@@ -6328,7 +6328,7 @@ static void _test_language_string(unsigned line, const WCHAR *lang, LCID lcid)
if(pLCIDToLocaleName) { res = pLCIDToLocaleName(lcid, buf, ARRAY_SIZE(buf), 0); - ok_(__FILE__,line)(res, "LCIDToLocaleName failed: %u\n", GetLastError()); + ok_(__FILE__,line)(res, "LCIDToLocaleName failed: %lu\n", GetLastError()); ok_(__FILE__,line)(!lstrcmpW(lang, buf), "lang = %s, expected %s\n", wine_dbgstr_w(lang), wine_dbgstr_w(buf)); }else { win_skip("LCIDToLocaleName not available, unable to test language string\n"); @@ -6344,13 +6344,13 @@ static void _test_table_length(unsigned line, IHTMLTable *table, LONG expect) LONG len;
hres = IHTMLTable_get_rows(table, &col); - ok_(__FILE__,line)(hres == S_OK, "get_rows failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_rows failed: %08lx\n", hres); ok_(__FILE__,line)(col != NULL, "col = NULL\n"); if (hres != S_OK || col == NULL) return; hres = IHTMLElementCollection_get_length(col, &len); - ok_(__FILE__,line)(hres == S_OK, "get_length failed: %08x\n", hres); - ok_(__FILE__,line)(len == expect, "Expect %d, got %d\n", expect, len); + ok_(__FILE__,line)(hres == S_OK, "get_length failed: %08lx\n", hres); + ok_(__FILE__,line)(len == expect, "Expect %ld, got %ld\n", expect, len);
IHTMLElementCollection_Release(col); } @@ -6371,59 +6371,59 @@ static void test_navigator(IHTMLDocument2 *doc) static char ua[] = "1234567890xxxABC";
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "parentWidnow failed: %08x\n", hres); + ok(hres == S_OK, "parentWidnow failed: %08lx\n", hres);
hres = IHTMLWindow2_get_navigator(window, &navigator); - ok(hres == S_OK, "get_navigator failed: %08x\n", hres); + ok(hres == S_OK, "get_navigator failed: %08lx\n", hres); ok(navigator != NULL, "navigator == NULL\n"); test_disp2((IUnknown*)navigator, &DIID_DispHTMLNavigator, &IID_IOmNavigator, NULL, L"[object]");
hres = IHTMLWindow2_get_navigator(window, &navigator2); - ok(hres == S_OK, "get_navigator failed: %08x\n", hres); + ok(hres == S_OK, "get_navigator failed: %08lx\n", hres); todo_wine ok(navigator != navigator2, "navigator2 != navigator\n"); IOmNavigator_Release(navigator2);
hres = IHTMLWindow2_get_clientInformation(window, &navigator2); - ok(hres == S_OK, "get_clientInformation failed: %08x\n", hres); + ok(hres == S_OK, "get_clientInformation failed: %08lx\n", hres); ok(iface_cmp((IUnknown*)navigator, (IUnknown*)navigator2), "navigator2 != navigator\n"); IOmNavigator_Release(navigator2);
IHTMLWindow2_Release(window);
hres = IOmNavigator_get_appCodeName(navigator, &bstr); - ok(hres == S_OK, "get_appCodeName failed: %08x\n", hres); + ok(hres == S_OK, "get_appCodeName failed: %08lx\n", hres); ok(!lstrcmpW(bstr, L"Mozilla"), "Unexpected appCodeName %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr);
bstr = NULL; hres = IOmNavigator_get_appName(navigator, &bstr); - ok(hres == S_OK, "get_appName failed: %08x\n", hres); + ok(hres == S_OK, "get_appName failed: %08lx\n", hres); ok(!lstrcmpW(bstr, L"Microsoft Internet Explorer"), "Unexpected appCodeName %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr);
bstr = NULL; hres = IOmNavigator_get_platform(navigator, &bstr); - ok(hres == S_OK, "get_platform failed: %08x\n", hres); + ok(hres == S_OK, "get_platform failed: %08lx\n", hres); ok(!lstrcmpW(bstr, sizeof(void*) == 8 ? L"Win64" : L"Win32") || (sizeof(void*) == 8 && broken(!lstrcmpW(bstr, L"Win32") /* IE6 */)), "unexpected platform %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr);
bstr = NULL; hres = IOmNavigator_get_cpuClass(navigator, &bstr); - ok(hres == S_OK, "get_cpuClass failed: %08x\n", hres); + ok(hres == S_OK, "get_cpuClass failed: %08lx\n", hres); ok(!lstrcmpW(bstr, sizeof(void*) == 8 ? L"x64" : L"x86"), "unexpected cpuClass %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr);
bstr = NULL; hres = IOmNavigator_get_appVersion(navigator, &bstr); - ok(hres == S_OK, "get_appVersion failed: %08x\n", hres); + ok(hres == S_OK, "get_appVersion failed: %08lx\n", hres); ok(!memcmp(bstr, v40, sizeof(v40)), "appVersion is %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr);
bstr = NULL; hres = IOmNavigator_get_systemLanguage(navigator, &bstr); - ok(hres == S_OK, "get_systemLanguage failed: %08x\n", hres); + ok(hres == S_OK, "get_systemLanguage failed: %08lx\n", hres); test_language_string(bstr, LOCALE_SYSTEM_DEFAULT); SysFreeString(bstr);
@@ -6431,7 +6431,7 @@ static void test_navigator(IHTMLDocument2 *doc) { bstr = NULL; hres = IOmNavigator_get_browserLanguage(navigator, &bstr); - ok(hres == S_OK, "get_browserLanguage failed: %08x\n", hres); + ok(hres == S_OK, "get_browserLanguage failed: %08lx\n", hres); test_language_string(bstr, pGetUserDefaultUILanguage()); SysFreeString(bstr); } @@ -6440,51 +6440,51 @@ static void test_navigator(IHTMLDocument2 *doc)
bstr = NULL; hres = IOmNavigator_get_userLanguage(navigator, &bstr); - ok(hres == S_OK, "get_userLanguage failed: %08x\n", hres); + ok(hres == S_OK, "get_userLanguage failed: %08lx\n", hres); test_language_string(bstr, LOCALE_USER_DEFAULT); SysFreeString(bstr);
hres = IOmNavigator_toString(navigator, NULL); - ok(hres == E_INVALIDARG, "toString failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "toString failed: %08lx\n", hres);
bstr = NULL; hres = IOmNavigator_toString(navigator, &bstr); - ok(hres == S_OK, "toString failed: %08x\n", hres); + ok(hres == S_OK, "toString failed: %08lx\n", hres); ok(!lstrcmpW(bstr, L"[object]"), "toString returned %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr);
b = 100; hres = IOmNavigator_get_onLine(navigator, &b); - ok(hres == S_OK, "get_onLine failed: %08x\n", hres); + ok(hres == S_OK, "get_onLine failed: %08lx\n", hres); ok(b == VARIANT_TRUE, "onLine = %x\n", b);
size = sizeof(buf); hres = ObtainUserAgentString(0, bufa, &size); - ok(hres == S_OK, "ObtainUserAgentString failed: %08x\n", hres); + ok(hres == S_OK, "ObtainUserAgentString failed: %08lx\n", hres);
MultiByteToWideChar(CP_ACP, 0, bufa, size, buf, ARRAY_SIZE(buf));
bstr = NULL; hres = IOmNavigator_get_userAgent(navigator, &bstr); - ok(hres == S_OK, "get_userAgent failed: %08x\n", hres); + ok(hres == S_OK, "get_userAgent failed: %08lx\n", hres); ok(!lstrcmpW(bstr, buf), "userAgent returned %s, expected "%s"\n", wine_dbgstr_w(bstr), wine_dbgstr_w(buf)); SysFreeString(bstr);
hres = UrlMkSetSessionOption(URLMON_OPTION_USERAGENT, ua, sizeof(ua), 0); - ok(hres == S_OK, "UrlMkSetSessionOption failed: %08x\n", hres); + ok(hres == S_OK, "UrlMkSetSessionOption failed: %08lx\n", hres); MultiByteToWideChar(CP_ACP, 0, ua, -1, buf, ARRAY_SIZE(buf));
hres = IOmNavigator_get_appVersion(navigator, &bstr); - ok(hres == S_OK, "get_appVersion failed: %08x\n", hres); + ok(hres == S_OK, "get_appVersion failed: %08lx\n", hres); ok(!lstrcmpW(bstr, buf+8), "appVersion returned %s, expected "%s"\n", wine_dbgstr_w(bstr), wine_dbgstr_w(buf+8)); SysFreeString(bstr);
hres = UrlMkSetSessionOption(URLMON_OPTION_USERAGENT, buf, lstrlenW(buf), 0); - ok(hres == S_OK, "UrlMkSetSessionOption failed: %08x\n", hres); + ok(hres == S_OK, "UrlMkSetSessionOption failed: %08lx\n", hres);
bstr = NULL; hres = IOmNavigator_get_appMinorVersion(navigator, &bstr); - ok(hres == S_OK, "get_appMonorVersion failed: %08x\n", hres); + ok(hres == S_OK, "get_appMonorVersion failed: %08lx\n", hres); ok(bstr != NULL, "appMinorVersion returned NULL\n"); SysFreeString(bstr);
@@ -6506,18 +6506,18 @@ static void test_screen(IHTMLWindow2 *window)
screen = NULL; hres = IHTMLWindow2_get_screen(window, &screen); - ok(hres == S_OK, "get_screen failed: %08x\n", hres); + ok(hres == S_OK, "get_screen failed: %08lx\n", hres); ok(screen != NULL, "screen == NULL\n");
screen2 = NULL; hres = IHTMLWindow2_get_screen(window, &screen2); - ok(hres == S_OK, "get_screen failed: %08x\n", hres); + ok(hres == S_OK, "get_screen failed: %08lx\n", hres); ok(screen2 != NULL, "screen == NULL\n"); ok(iface_cmp((IUnknown*)screen2, (IUnknown*)screen), "screen2 != screen\n"); IHTMLScreen_Release(screen2);
hres = IHTMLScreen_QueryInterface(screen, &IID_IDispatchEx, (void**)&dispex); - ok(hres == S_OK || broken(hres == E_NOINTERFACE), "Could not get IDispatchEx interface: %08x\n", hres); + ok(hres == S_OK || broken(hres == E_NOINTERFACE), "Could not get IDispatchEx interface: %08lx\n", hres); if(SUCCEEDED(hres)) { test_disp((IUnknown*)screen, &DIID_DispHTMLScreen, NULL, L"[object]"); IDispatchEx_Release(dispex); @@ -6528,20 +6528,20 @@ static void test_screen(IHTMLWindow2 *window) exl = GetDeviceCaps(hdc, HORZRES); l = 0xdeadbeef; hres = IHTMLScreen_get_width(screen, &l); - ok(hres == S_OK, "get_width failed: %08x\n", hres); - ok(l == exl, "width = %d, expected %d\n", l, exl); + ok(hres == S_OK, "get_width failed: %08lx\n", hres); + ok(l == exl, "width = %ld, expected %ld\n", l, exl);
exl = GetDeviceCaps(hdc, VERTRES); l = 0xdeadbeef; hres = IHTMLScreen_get_height(screen, &l); - ok(hres == S_OK, "get_height failed: %08x\n", hres); - ok(l == exl, "height = %d, expected %d\n", l, exl); + ok(hres == S_OK, "get_height failed: %08lx\n", hres); + ok(l == exl, "height = %ld, expected %ld\n", l, exl);
exl = GetDeviceCaps(hdc, BITSPIXEL); l = 0xdeadbeef; hres = IHTMLScreen_get_colorDepth(screen, &l); - ok(hres == S_OK, "get_height failed: %08x\n", hres); - ok(l == exl, "height = %d, expected %d\n", l, exl); + ok(hres == S_OK, "get_height failed: %08lx\n", hres); + ok(l == exl, "height = %ld, expected %ld\n", l, exl);
DeleteObject(hdc);
@@ -6549,13 +6549,13 @@ static void test_screen(IHTMLWindow2 *window)
l = 0xdeadbeef; hres = IHTMLScreen_get_availHeight(screen, &l); - ok(hres == S_OK, "get_availHeight failed: %08x\n", hres); - ok(l == work_area.bottom-work_area.top, "availHeight = %d, expected %d\n", l, work_area.bottom-work_area.top); + ok(hres == S_OK, "get_availHeight failed: %08lx\n", hres); + ok(l == work_area.bottom-work_area.top, "availHeight = %ld, expected %ld\n", l, work_area.bottom-work_area.top);
l = 0xdeadbeef; hres = IHTMLScreen_get_availWidth(screen, &l); - ok(hres == S_OK, "get_availWidth failed: %08x\n", hres); - ok(l == work_area.right-work_area.left, "availWidth = %d, expected %d\n", l, work_area.right-work_area.left); + ok(hres == S_OK, "get_availWidth failed: %08lx\n", hres); + ok(l == work_area.right-work_area.left, "availWidth = %ld, expected %ld\n", l, work_area.right-work_area.left);
IHTMLScreen_Release(screen); } @@ -6570,15 +6570,15 @@ static void test_default_selection(IHTMLDocument2 *doc) test_doc_selection_type(doc, L"None");
hres = IHTMLDocument2_get_selection(doc, &selection); - ok(hres == S_OK, "get_selection failed: %08x\n", hres); + ok(hres == S_OK, "get_selection failed: %08lx\n", hres);
hres = IHTMLSelectionObject_createRange(selection, &disp); IHTMLSelectionObject_Release(selection); - ok(hres == S_OK, "createRange failed: %08x\n", hres); + ok(hres == S_OK, "createRange failed: %08lx\n", hres);
hres = IDispatch_QueryInterface(disp, &IID_IHTMLTxtRange, (void**)&range); IDispatch_Release(disp); - ok(hres == S_OK, "Could not get IHTMLTxtRange interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLTxtRange interface: %08lx\n", hres);
test_range_text(range, NULL); IHTMLTxtRange_Release(range); @@ -6592,28 +6592,28 @@ static void test_doc_dir(IHTMLDocument2 *doc2)
dir = (BSTR)0xdeadbeef; hres = IHTMLDocument3_get_dir(doc, &dir); - ok(hres == S_OK, "get_dir failed: %08x\n", hres); + ok(hres == S_OK, "get_dir failed: %08lx\n", hres); ok(!dir, "dir = %s\n", wine_dbgstr_w(dir));
dir = SysAllocString(L"rtl"); hres = IHTMLDocument3_put_dir(doc, dir); - ok(hres == S_OK, "put_dir failed: %08x\n", hres); + ok(hres == S_OK, "put_dir failed: %08lx\n", hres); SysFreeString(dir);
dir = NULL; hres = IHTMLDocument3_get_dir(doc, &dir); - ok(hres == S_OK, "get_dir failed: %08x\n", hres); + ok(hres == S_OK, "get_dir failed: %08lx\n", hres); ok(!lstrcmpW(dir, L"rtl"), "dir = %s\n", wine_dbgstr_w(dir)); SysFreeString(dir);
dir = SysAllocString(L"ltr"); hres = IHTMLDocument3_put_dir(doc, dir); - ok(hres == S_OK, "put_dir failed: %08x\n", hres); + ok(hres == S_OK, "put_dir failed: %08lx\n", hres); SysFreeString(dir);
dir = NULL; hres = IHTMLDocument3_get_dir(doc, &dir); - ok(hres == S_OK, "get_dir failed: %08x\n", hres); + ok(hres == S_OK, "get_dir failed: %08lx\n", hres); ok(!lstrcmpW(dir, L"ltr"), "dir = %s\n", wine_dbgstr_w(dir)); SysFreeString(dir);
@@ -6632,11 +6632,11 @@ static void test_unique_id(IHTMLDocument2 *doc, IHTMLElement *elem) static const WCHAR prefixW[] = {'m','s','_','_','i','d',0};
hres = IHTMLDocument3_get_uniqueID(doc3, &id); - ok(hres == S_OK, "get_uniqueID failed: %08x\n", hres); + ok(hres == S_OK, "get_uniqueID failed: %08lx\n", hres); ok(SysStringLen(id) >= ARRAY_SIZE(prefixW), "id %s too short\n", wine_dbgstr_w(id));
hres = IHTMLDocument3_get_uniqueID(doc3, &id2); - ok(hres == S_OK, "get_uniqueID failed: %08x\n", hres); + ok(hres == S_OK, "get_uniqueID failed: %08lx\n", hres); ok(SysStringLen(id2) >= ARRAY_SIZE(prefixW), "id %s too short\n", wine_dbgstr_w(id2));
ok(lstrcmpW(id, id2), "same unique ids %s\n", wine_dbgstr_w(id)); @@ -6650,17 +6650,17 @@ static void test_unique_id(IHTMLDocument2 *doc, IHTMLElement *elem) SysFreeString(id2);
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLUniqueName, (void**)&unique_name); - ok(hres == S_OK, "Could not get IHTMLUniqueName iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLUniqueName iface: %08lx\n", hres);
hres = IHTMLUniqueName_get_uniqueID(unique_name, &id); - ok(hres == S_OK, "get_uniqueName failed: %08x\n", hres); + ok(hres == S_OK, "get_uniqueName failed: %08lx\n", hres);
hres = IHTMLUniqueName_get_uniqueID(unique_name, &id2); - ok(hres == S_OK, "get_uniqueName failed: %08x\n", hres); + ok(hres == S_OK, "get_uniqueName failed: %08lx\n", hres); ok(!lstrcmpW(id, id2), "unique names differ\n");
hres = IHTMLUniqueName_get_uniqueNumber(unique_name, &num); - ok(hres == S_OK, "get_uniqueName failed: %08x\n", hres); + ok(hres == S_OK, "get_uniqueName failed: %08lx\n", hres); ok(num, "num = 0\n");
swprintf(buf, ARRAY_SIZE(buf), L"ms__id%u", num); @@ -6686,17 +6686,17 @@ static void test_doc_elem(IHTMLDocument2 *doc) BSTR bstr;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3); - ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument3) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument3) failed: %08lx\n", hres);
hres = IHTMLDocument2_toString(doc, &bstr); - ok(hres == S_OK, "toString failed: %08x\n", hres); + ok(hres == S_OK, "toString failed: %08lx\n", hres); ok(!lstrcmpW(bstr, L"[object]"), "toString returned %s, expected [object]\n", wine_dbgstr_w(bstr)); SysFreeString(bstr);
hres = IHTMLDocument3_get_documentElement(doc3, &elem); IHTMLDocument3_Release(doc3); - ok(hres == S_OK, "get_documentElement failed: %08x\n", hres); + ok(hres == S_OK, "get_documentElement failed: %08lx\n", hres);
test_node_name((IUnknown*)elem, L"HTML"); test_elem_tag((IUnknown*)elem, L"HTML"); @@ -6718,19 +6718,19 @@ static void test_doc_elem(IHTMLDocument2 *doc) IHTMLElement_Release(elem);
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument4, (void**)&doc4); - ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument4) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument4) failed: %08lx\n", hres);
hres = IHTMLDocument4_get_namespaces(doc4, &disp); - ok(hres == S_OK, "get_namespaces failed: %08x\n", hres); + ok(hres == S_OK, "get_namespaces failed: %08lx\n", hres);
test_disp((IUnknown*)disp, &DIID_DispHTMLNamespaceCollection, NULL, L"[object]");
hres = IDispatch_QueryInterface(disp, &IID_IHTMLNamespaceCollection, (void**)&namespaces); - ok(hres == S_OK, "Could not get IHTMLNamespaceCollection iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLNamespaceCollection iface: %08lx\n", hres);
hres = IHTMLNamespaceCollection_get_length(namespaces, &l); - ok(hres == S_OK, "get_length failed: %08x\n", hres); - ok(l == 0, "length = %d\n", l); + ok(hres == S_OK, "get_length failed: %08lx\n", hres); + ok(l == 0, "length = %ld\n", l);
IHTMLNamespaceCollection_Release(namespaces); IDispatch_Release(disp); @@ -6746,7 +6746,7 @@ static void test_default_body(IHTMLBodyElement *body)
bstr = (void*)0xdeadbeef; hres = IHTMLBodyElement_get_background(body, &bstr); - ok(hres == S_OK, "get_background failed: %08x\n", hres); + ok(hres == S_OK, "get_background failed: %08lx\n", hres); ok(bstr == NULL, "bstr != NULL\n");
l = elem_get_scroll_height((IUnknown*)body); @@ -6754,7 +6754,7 @@ static void test_default_body(IHTMLBodyElement *body) l = elem_get_scroll_width((IUnknown*)body); ok(l != -1, "scrollWidth == -1\n"); l = elem_get_scroll_top((IUnknown*)body); - ok(!l, "scrollTop = %d\n", l); + ok(!l, "scrollTop = %ld\n", l); elem_get_scroll_left((IUnknown*)body);
test_elem_dir((IUnknown*)body, NULL); @@ -6762,7 +6762,7 @@ static void test_default_body(IHTMLBodyElement *body)
/* get_text tests */ hres = IHTMLBodyElement_get_text(body, &v); - ok(hres == S_OK, "expect S_OK got 0x%08d\n", hres); + ok(hres == S_OK, "expect S_OK got 0x%08ld\n", hres); ok(V_VT(&v) == VT_BSTR, "Expected VT_BSTR got %d\n", V_VT(&v)); ok(V_BSTR(&v) == NULL, "bstr != NULL\n");
@@ -6770,12 +6770,12 @@ static void test_default_body(IHTMLBodyElement *body) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"Invalid"); hres = IHTMLBodyElement_put_text(body, v); - ok(hres == S_OK, "expect S_OK got 0x%08d\n", hres); + ok(hres == S_OK, "expect S_OK got 0x%08ld\n", hres); VariantClear(&v);
V_VT(&v) = VT_NULL; hres = IHTMLBodyElement_get_text(body, &v); - ok(hres == S_OK, "expect S_OK got 0x%08d\n", hres); + ok(hres == S_OK, "expect S_OK got 0x%08ld\n", hres); ok(V_VT(&v) == VT_BSTR, "Expected VT_BSTR got %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"#00a0d0"), "v = %s, expected '#00a0d0'\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -6784,12 +6784,12 @@ static void test_default_body(IHTMLBodyElement *body) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"#FF0000"); hres = IHTMLBodyElement_put_text(body, v); - ok(hres == S_OK, "expect S_OK got 0x%08d\n", hres); + ok(hres == S_OK, "expect S_OK got 0x%08ld\n", hres); VariantClear(&v);
V_VT(&v) = VT_NULL; hres = IHTMLBodyElement_get_text(body, &v); - ok(hres == S_OK, "expect S_OK got 0x%08d\n", hres); + ok(hres == S_OK, "expect S_OK got 0x%08ld\n", hres); ok(V_VT(&v) == VT_BSTR, "Expected VT_BSTR got %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"#ff0000"), "v = %s, expected '#ff0000'\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -6802,7 +6802,7 @@ static void _test_body_scroll(unsigned line, IHTMLBodyElement *body, const WCHAR HRESULT hres;
hres = IHTMLBodyElement_get_scroll(body, &str); - ok_(__FILE__,line)(hres == S_OK, "get_scroll failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_scroll failed: %08lx\n", hres); ok_(__FILE__,line)(ex ? !lstrcmpW(str, ex) : !str, "scroll = %s\n", wine_dbgstr_w(str)); SysFreeString(str); } @@ -6814,7 +6814,7 @@ static void _set_body_scroll(unsigned line, IHTMLBodyElement *body, const WCHAR HRESULT hres;
hres = IHTMLBodyElement_put_scroll(body, str); - ok_(__FILE__,line)(hres == S_OK, "put_scroll failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_scroll failed: %08lx\n", hres); SysFreeString(str);
_test_body_scroll(line, body, val); @@ -6826,63 +6826,63 @@ static void test_body_funs(IHTMLBodyElement *body, IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLBodyElement_get_bgColor(body, &vDefaultbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vDefaultbg) == VT_BSTR, "bstr != NULL\n"); ok(!V_BSTR(&vDefaultbg), "V_BSTR(bgColor) = %s\n", wine_dbgstr_w(V_BSTR(&vDefaultbg)));
hres = IHTMLDocument2_get_bgColor(doc, &vbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vbg) == VT_BSTR && V_BSTR(&vbg) && !wcscmp(V_BSTR(&vbg), L"#ffffff"), "bgColor = %s\n", wine_dbgstr_variant(&vbg));
V_VT(&vbg) = VT_BSTR; V_BSTR(&vbg) = SysAllocString(L"red"); hres = IHTMLBodyElement_put_bgColor(body, vbg); - ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "put_bgColor failed: %08lx\n", hres); VariantClear(&vbg);
hres = IHTMLBodyElement_get_bgColor(body, &vbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vbg) == VT_BSTR, "V_VT(&vbg) != VT_BSTR\n"); ok(!lstrcmpW(V_BSTR(&vbg), L"#ff0000"), "Unexpected bgcolor %s\n", wine_dbgstr_w(V_BSTR(&vbg))); VariantClear(&vbg);
hres = IHTMLDocument2_get_bgColor(doc, &vbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vbg) == VT_BSTR && V_BSTR(&vbg) && !wcscmp(V_BSTR(&vbg), L"#ff0000"), "bgColor = %s\n", wine_dbgstr_variant(&vbg));
hres = IHTMLDocument2_get_bgColor(doc, &vbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vbg) == VT_BSTR, "V_VT(&vbg) != VT_BSTR\n"); ok(!lstrcmpW(V_BSTR(&vbg), L"#ff0000"), "Unexpected bgcolor %s\n", wine_dbgstr_w(V_BSTR(&vbg))); VariantClear(&vbg);
/* Restore Original */ hres = IHTMLBodyElement_put_bgColor(body, vDefaultbg); - ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "put_bgColor failed: %08lx\n", hres); VariantClear(&vDefaultbg);
/* Set via IHTMLDocument2 */ V_VT(&vbg) = VT_BSTR; V_BSTR(&vbg) = SysAllocString(L"red"); hres = IHTMLDocument2_put_bgColor(doc, vbg); - ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "put_bgColor failed: %08lx\n", hres); VariantClear(&vbg);
hres = IHTMLBodyElement_get_bgColor(body, &vbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vbg) == VT_BSTR, "V_VT(&vbg) != VT_BSTR\n"); ok(!lstrcmpW(V_BSTR(&vbg), L"#ff0000"), "Unexpected bgcolor %s\n", wine_dbgstr_w(V_BSTR(&vbg))); VariantClear(&vbg);
hres = IHTMLDocument2_get_bgColor(doc, &vbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vbg) == VT_BSTR, "V_VT(&vbg) != VT_BSTR\n"); ok(!lstrcmpW(V_BSTR(&vbg), L"#ff0000"), "Unexpected bgcolor %s\n", wine_dbgstr_w(V_BSTR(&vbg))); VariantClear(&vbg);
/* Restore Original */ hres = IHTMLBodyElement_put_bgColor(body, vDefaultbg); - ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "put_bgColor failed: %08lx\n", hres); VariantClear(&vDefaultbg);
test_body_scroll(body, NULL); @@ -6898,14 +6898,14 @@ static void test_history(IHTMLWindow2 *window)
history = NULL; hres = IHTMLWindow2_get_history(window, &history); - ok(hres == S_OK, "get_history failed: %08x\n", hres); + ok(hres == S_OK, "get_history failed: %08lx\n", hres); ok(history != NULL, "history = NULL\n");
test_disp2((IUnknown*)history, &DIID_DispHTMLHistory, &IID_IOmHistory, NULL, L"[object]");
history2 = NULL; hres = IHTMLWindow2_get_history(window, &history2); - ok(hres == S_OK, "get_history failed: %08x\n", hres); + ok(hres == S_OK, "get_history failed: %08lx\n", hres); ok(history2 != NULL, "history2 = NULL\n"); ok(iface_cmp((IUnknown*)history, (IUnknown*)history2), "history != history2\n");
@@ -6921,7 +6921,7 @@ static void test_xmlhttprequest(IHTMLWindow5 *window) IHTMLXMLHttpRequest *xml;
hres = IHTMLWindow5_get_XMLHttpRequest(window, &var); - ok(hres == S_OK, "get_XMLHttpRequest failed: %08x\n", hres); + ok(hres == S_OK, "get_XMLHttpRequest failed: %08lx\n", hres); ok(V_VT(&var) == VT_DISPATCH || broken(V_VT(&var) == VT_EMPTY), "expect VT_DISPATCH, got %s\n", debugstr_variant(&var));
if (V_VT(&var) == VT_EMPTY) { @@ -6931,12 +6931,12 @@ static void test_xmlhttprequest(IHTMLWindow5 *window)
factory = NULL; hres = IDispatch_QueryInterface(V_DISPATCH(&var), &IID_IHTMLXMLHttpRequestFactory, (void**)&factory); - ok(hres == S_OK, "QueryInterface(&IID_IHTMLXMLHttpRequestFactory) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(&IID_IHTMLXMLHttpRequestFactory) failed: %08lx\n", hres); ok(factory != NULL, "factory == NULL\n");
xml = NULL; hres = IHTMLXMLHttpRequestFactory_create(factory, &xml); - ok(hres == S_OK, "create failed: %08x\n", hres); + ok(hres == S_OK, "create failed: %08lx\n", hres); ok(xml != NULL, "xml == NULL\n"); if(is_ie9plus) test_disp((IUnknown*)xml, &DIID_DispHTMLXMLHttpRequest, &CLSID_HTMLXMLHttpRequest, L"[object]"); @@ -6953,15 +6953,15 @@ static void test_read_only_style(IHTMLCSSStyleDeclaration *style) HRESULT hres;
hres = IHTMLCSSStyleDeclaration_put_display(style, none); - ok(hres == 0x80700007, "put_display failed: %08x\n", hres); + ok(hres == 0x80700007, "put_display failed: %08lx\n", hres);
hres = IHTMLCSSStyleDeclaration_removeProperty(style, display, &str); - ok(hres == 0x80700007, "removeProperty failed: %08x\n", hres); + ok(hres == 0x80700007, "removeProperty failed: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = none; hres = IHTMLCSSStyleDeclaration_setProperty(style, display, &v, NULL); - ok(hres == 0x80700007, "setProperty returned: %08x\n", hres); + ok(hres == 0x80700007, "setProperty returned: %08lx\n", hres);
SysFreeString(none); SysFreeString(display); @@ -6980,7 +6980,7 @@ static void test_window(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres); test_ifaces((IUnknown*)window, window_iids); hres = IHTMLWindow2_QueryInterface(window, &IID_ITravelLogClient, (void**)&unk); if(hres == S_OK) @@ -6991,7 +6991,7 @@ static void test_window(IHTMLDocument2 *doc) test_disp((IUnknown*)window, &DIID_DispHTMLWindow2, &CLSID_HTMLWindow2, L"[object]");
hres = IHTMLWindow2_get_document(window, &doc2); - ok(hres == S_OK, "get_document failed: %08x\n", hres); + ok(hres == S_OK, "get_document failed: %08lx\n", hres); ok(doc2 != NULL, "doc2 == NULL\n");
if(is_ie9plus) @@ -7004,17 +7004,17 @@ static void test_window(IHTMLDocument2 *doc)
unk = (void*)0xdeadbeef; hres = IHTMLDocument2_QueryInterface(doc2, &IID_ICustomDoc, (void**)&unk); - ok(hres == E_NOINTERFACE, "QueryInterface(IID_ICustomDoc) returned: %08x\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface(IID_ICustomDoc) returned: %08lx\n", hres); ok(!unk, "unk = %p\n", unk);
IHTMLDocument2_Release(doc2);
hres = IHTMLWindow2_get_window(window, &window2); - ok(hres == S_OK, "get_window failed: %08x\n", hres); + ok(hres == S_OK, "get_window failed: %08lx\n", hres); ok(window2 != NULL, "window2 == NULL\n");
hres = IHTMLWindow2_get_self(window, &self); - ok(hres == S_OK, "get_self failed: %08x\n", hres); + ok(hres == S_OK, "get_self failed: %08lx\n", hres); ok(window2 != NULL, "self == NULL\n");
ok(self == window2, "self != window2\n"); @@ -7023,28 +7023,28 @@ static void test_window(IHTMLDocument2 *doc)
disp = NULL; hres = IHTMLDocument2_get_Script(doc, &disp); - ok(hres == S_OK, "get_Script failed: %08x\n", hres); + ok(hres == S_OK, "get_Script failed: %08lx\n", hres); ok(disp == (void*)window, "disp != window\n"); IDispatch_Release(disp);
hres = IHTMLWindow2_toString(window, NULL); - ok(hres == E_INVALIDARG, "toString failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "toString failed: %08lx\n", hres);
str = NULL; hres = IHTMLWindow2_toString(window, &str); - ok(hres == S_OK, "toString failed: %08x\n", hres); + ok(hres == S_OK, "toString failed: %08lx\n", hres); ok(!lstrcmpW(str, L"[object]") || !lstrcmpW(str, L"[object Window]") /* win7 ie9 */, "toString returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
V_VT(&v) = VT_ERROR; hres = IHTMLWindow2_get_opener(window, &v); - ok(hres == S_OK, "get_opener failed: %08x\n", hres); + ok(hres == S_OK, "get_opener failed: %08lx\n", hres); ok(V_VT(&v) == VT_EMPTY, "V_VT(opener) = %d\n", V_VT(&v));
parent = NULL; hres = IHTMLWindow2_get_parent(window, &parent); - ok(hres == S_OK, "get_parent failed: %08x\n", hres); + ok(hres == S_OK, "get_parent failed: %08lx\n", hres); ok(parent != NULL, "parent == NULL\n"); ok(parent == self, "parent != window\n"); IHTMLWindow2_Release(parent); @@ -7059,10 +7059,10 @@ static void test_window(IHTMLDocument2 *doc) test_history(window);
hres = IHTMLWindow2_moveBy(window, 0, 0); - ok(hres == S_FALSE, "moveBy failed: %08x\n", hres); + ok(hres == S_FALSE, "moveBy failed: %08lx\n", hres);
hres = IHTMLWindow2_resizeBy(window, 0, 0); - ok(hres == S_FALSE, "resizeBy failed: %08x\n", hres); + ok(hres == S_FALSE, "resizeBy failed: %08lx\n", hres);
hres = IHTMLWindow2_QueryInterface(window, &IID_IHTMLWindow5, (void**)&window5); if(SUCCEEDED(hres)) { @@ -7084,44 +7084,44 @@ static void test_window(IHTMLDocument2 *doc) ok(window7 != NULL, "window7 == NULL\n");
hres = IHTMLWindow7_get_performance(window7, &v); - ok(hres == S_OK, "get_performance failed: %08x\n", hres); + ok(hres == S_OK, "get_performance failed: %08lx\n", hres); if(SUCCEEDED(hres)) { ok(V_VT(&v) == VT_DISPATCH, "V_VT(performance) = %u\n", V_VT(&v));
hres = IDispatch_QueryInterface(V_DISPATCH(&v), &IID_IHTMLPerformance, (void**)&performance); - ok(hres == S_OK, "Could not get IHTMLPerformance iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLPerformance iface: %08lx\n", hres);
IHTMLPerformance_Release(performance);
V_VT(&v) = VT_I2; V_I2(&v) = 2; hres = IHTMLWindow7_put_performance(window7, v); - ok(hres == S_OK, "put_performance failed: %08x\n", hres); + ok(hres == S_OK, "put_performance failed: %08lx\n", hres);
V_VT(&v) = VT_ERROR; hres = IHTMLWindow7_get_performance(window7, &v); - ok(hres == S_OK, "get_performance failed: %08x\n", hres); + ok(hres == S_OK, "get_performance failed: %08lx\n", hres); ok(V_VT(&v) == VT_I2, "V_VT(performance) = %u\n", V_VT(&v)); ok(V_I2(&v) == 2, "V_I2(performance) = %d\n", V_I2(&v)); }
hres = IHTMLWindow7_get_pageXOffset(window7, &offset); - ok(hres == S_OK, "get_pageXOffset failed: %08x\n", hres); - ok(!offset, "Unexpected offset %d.\n", offset); + ok(hres == S_OK, "get_pageXOffset failed: %08lx\n", hres); + ok(!offset, "Unexpected offset %ld.\n", offset);
hres = IHTMLWindow7_get_pageYOffset(window7, &offset); - ok(hres == S_OK, "get_pageYOffset failed: %08x\n", hres); - ok(!offset, "Unexpected offset %d.\n", offset); + ok(hres == S_OK, "get_pageYOffset failed: %08lx\n", hres); + ok(!offset, "Unexpected offset %ld.\n", offset);
hres = IHTMLDocument2_get_body(doc, &elem); - ok(hres == S_OK, "get_body failed: %08x\n", hres); + ok(hres == S_OK, "get_body failed: %08lx\n", hres);
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLDOMNode, (void**)&node); - ok(hres == S_OK, "Could not get IHTMLDOMNode iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLDOMNode iface: %08lx\n", hres);
hres = IHTMLWindow7_getComputedStyle(window7, node, NULL, &computed_style); - ok(hres == S_OK, "getComputedStyle failed: %08x\n", hres); + ok(hres == S_OK, "getComputedStyle failed: %08lx\n", hres);
test_disp((IUnknown*)computed_style, &DIID_DispHTMLW3CComputedStyle, NULL, L"[object]"); test_ifaces((IUnknown*)computed_style, computed_style_iids); @@ -7153,7 +7153,7 @@ static void test_dom_implementation(IHTMLDocument2 *doc)
hres = IHTMLDocument5_get_implementation(doc5, &dom_implementation); IHTMLDocument5_Release(doc5); - ok(hres == S_OK, "get_implementation failed: %08x\n", hres); + ok(hres == S_OK, "get_implementation failed: %08lx\n", hres); ok(dom_implementation != NULL, "dom_implementation == NULL\n");
str = SysAllocString(L"test"); @@ -7163,7 +7163,7 @@ static void test_dom_implementation(IHTMLDocument2 *doc) hres = IHTMLDOMImplementation_hasFeature(dom_implementation, str, v, &b); SysFreeString(str); VariantClear(&v); - ok(hres == S_OK, "hasFeature failed: %08x\n", hres); + ok(hres == S_OK, "hasFeature failed: %08lx\n", hres); ok(!b, "hasFeature returned %x\n", b);
hres = IHTMLDOMImplementation_QueryInterface(dom_implementation, &IID_IHTMLDOMImplementation2, @@ -7180,34 +7180,34 @@ static void test_dom_implementation(IHTMLDocument2 *doc)
str = SysAllocString(L"test"); hres = IHTMLDOMImplementation2_createHTMLDocument(dom_implementation2, str, &new_document); - ok(hres == S_OK, "createHTMLDocument failed: %08x\n", hres); + ok(hres == S_OK, "createHTMLDocument failed: %08lx\n", hres);
test_disp((IUnknown*)new_document, &DIID_DispHTMLDocument, &CLSID_HTMLDocument, L"[object]"); test_ifaces((IUnknown*)new_document, doc_node_iids);
hres = IHTMLDocument7_get_defaultView(new_document, &window); - ok(hres == S_OK, "get_defaultView returned: %08x\n", hres); + ok(hres == S_OK, "get_defaultView returned: %08lx\n", hres); ok(!window, "window = %p\n", window);
hres = IHTMLDocument7_get_parentWindow(new_document, &window); - ok(hres == S_OK, "get_parentWindow returned: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow returned: %08lx\n", hres); ok(!window, "window = %p\n", window);
hres = IHTMLDocument7_QueryInterface(new_document, &IID_IHTMLDocument2, (void**)&new_document2); - ok(hres == S_OK, "Could not get IHTMLDocument2 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLDocument2 iface: %08lx\n", hres);
hres = IHTMLDocument2_get_parentWindow(new_document2, &window); - ok(hres == E_FAIL, "get_parentWindow returned: %08x\n", hres); + ok(hres == E_FAIL, "get_parentWindow returned: %08lx\n", hres);
hres = IHTMLDocument2_get_Script(new_document2, &disp); - ok(hres == E_PENDING, "get_Script returned: %08x\n", hres); + ok(hres == E_PENDING, "get_Script returned: %08lx\n", hres);
hres = IHTMLDocument2_get_location(new_document2, &location); - ok(hres == E_UNEXPECTED, "get_location returned: %08x\n", hres); + ok(hres == E_UNEXPECTED, "get_location returned: %08lx\n", hres);
memset(&v, 0xcc, sizeof(v)); hres = IHTMLDocument7_get_onmsthumbnailclick(new_document, &v); - ok(hres == S_OK, "get_onmsthumbnailclick returned: %08x\n", hres); + ok(hres == S_OK, "get_onmsthumbnailclick returned: %08lx\n", hres); ok(V_VT(&v) == VT_NULL, "got %u\n", V_VT(&v)); ok((DWORD)(DWORD_PTR)V_DISPATCH(&v) == 0xcccccccc, "got %p\n", V_DISPATCH(&v));
@@ -7230,14 +7230,14 @@ static void test_xhr(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres);
hres = IHTMLWindow2_QueryInterface(window, &IID_IDispatchEx, (void**)&dispex); - ok(hres == S_OK, "Could not get IDispatchEx iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDispatchEx iface: %08lx\n", hres);
str = SysAllocString(L"XMLHttpRequest"); hres = IDispatchEx_GetDispID(dispex, str, 0, &id); - ok(hres == S_OK, "GetDispID failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID failed: %08lx\n", hres); SysFreeString(str);
IHTMLWindow2_Release(window); @@ -7261,10 +7261,10 @@ static void test_defaults(IHTMLDocument2 *doc) elem = doc_get_body(doc);
hres = IHTMLDocument2_get_images(doc, NULL); - ok(hres == E_INVALIDARG, "hres %08x\n", hres); + ok(hres == E_INVALIDARG, "hres %08lx\n", hres);
hres = IHTMLDocument2_get_images(doc, &collection); - ok(hres == S_OK, "get_images failed: %08x\n", hres); + ok(hres == S_OK, "get_images failed: %08lx\n", hres); if(hres == S_OK) { test_elem_collection((IUnknown*)collection, NULL, 0); @@ -7272,10 +7272,10 @@ static void test_defaults(IHTMLDocument2 *doc) }
hres = IHTMLDocument2_get_applets(doc, NULL); - ok(hres == E_INVALIDARG, "hres %08x\n", hres); + ok(hres == E_INVALIDARG, "hres %08lx\n", hres);
hres = IHTMLDocument2_get_applets(doc, &collection); - ok(hres == S_OK, "get_applets failed: %08x\n", hres); + ok(hres == S_OK, "get_applets failed: %08lx\n", hres); if(hres == S_OK) { test_elem_collection((IUnknown*)collection, NULL, 0); @@ -7283,10 +7283,10 @@ static void test_defaults(IHTMLDocument2 *doc) }
hres = IHTMLDocument2_get_links(doc, NULL); - ok(hres == E_INVALIDARG, "hres %08x\n", hres); + ok(hres == E_INVALIDARG, "hres %08lx\n", hres);
hres = IHTMLDocument2_get_links(doc, &collection); - ok(hres == S_OK, "get_links failed: %08x\n", hres); + ok(hres == S_OK, "get_links failed: %08lx\n", hres); if(hres == S_OK) { test_elem_collection((IUnknown*)collection, NULL, 0); @@ -7294,10 +7294,10 @@ static void test_defaults(IHTMLDocument2 *doc) }
hres = IHTMLDocument2_get_forms(doc, NULL); - ok(hres == E_INVALIDARG, "hres %08x\n", hres); + ok(hres == E_INVALIDARG, "hres %08lx\n", hres);
hres = IHTMLDocument2_get_forms(doc, &collection); - ok(hres == S_OK, "get_forms failed: %08x\n", hres); + ok(hres == S_OK, "get_forms failed: %08lx\n", hres); if(hres == S_OK) { test_elem_collection((IUnknown*)collection, NULL, 0); @@ -7305,10 +7305,10 @@ static void test_defaults(IHTMLDocument2 *doc) }
hres = IHTMLDocument2_get_anchors(doc, NULL); - ok(hres == E_INVALIDARG, "hres %08x\n", hres); + ok(hres == E_INVALIDARG, "hres %08lx\n", hres);
hres = IHTMLDocument2_get_anchors(doc, &collection); - ok(hres == S_OK, "get_anchors failed: %08x\n", hres); + ok(hres == S_OK, "get_anchors failed: %08lx\n", hres); if(hres == S_OK) { test_elem_collection((IUnknown*)collection, NULL, 0); @@ -7318,7 +7318,7 @@ static void test_defaults(IHTMLDocument2 *doc) test_xhr(doc);
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLBodyElement, (void**)&body); - ok(hres == S_OK, "Could not get IHTMBodyElement: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMBodyElement: %08lx\n", hres); test_default_body(body); test_body_funs(body, doc); IHTMLBodyElement_Release(body); @@ -7328,7 +7328,7 @@ static void test_defaults(IHTMLDocument2 *doc) test_elem_istextedit(elem, VARIANT_TRUE);
hres = IHTMLElement_get_style(elem, &style); - ok(hres == S_OK, "get_style failed: %08x\n", hres); + ok(hres == S_OK, "get_style failed: %08lx\n", hres);
test_disp((IUnknown*)style, &DIID_DispHTMLStyle, NULL, L"[object]"); test_ifaces((IUnknown*)style, style_iids); @@ -7336,7 +7336,7 @@ static void test_defaults(IHTMLDocument2 *doc)
str = NULL; hres = IHTMLDocument2_get_charset(doc, &str); - ok(hres == S_OK, "get_charset failed: %08x\n", hres); + ok(hres == S_OK, "get_charset failed: %08lx\n", hres); ok(str && *str, "charset is empty\n"); /* FIXME: better tests */ SysFreeString(str);
@@ -7348,7 +7348,7 @@ static void test_defaults(IHTMLDocument2 *doc)
elem2 = get_elem2_iface((IUnknown*)elem); hres = IHTMLElement2_get_currentStyle(elem2, &cstyle); - ok(hres == S_OK, "get_currentStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_currentStyle failed: %08lx\n", hres); if(SUCCEEDED(hres)) { IUnknown *unk;
@@ -7380,12 +7380,12 @@ static void test_defaults(IHTMLDocument2 *doc) IHTMLElement_Release(elem);
hres = IHTMLDocument2_get_styleSheets(doc, &stylesheetcol); - ok(hres == S_OK, "get_styleSheets failed: %08x\n", hres); + ok(hres == S_OK, "get_styleSheets failed: %08lx\n", hres);
l = 0xdeadbeef; hres = IHTMLStyleSheetsCollection_get_length(stylesheetcol, &l); - ok(hres == S_OK, "get_length failed: %08x\n", hres); - ok(l == 0, "length = %d\n", l); + ok(hres == S_OK, "get_length failed: %08lx\n", hres); + ok(l == 0, "length = %ld\n", l);
IHTMLStyleSheetsCollection_Release(stylesheetcol);
@@ -7397,7 +7397,7 @@ static void test_defaults(IHTMLDocument2 *doc) V_VT(&v) = VT_EMPTY; hres = IHTMLDocument2_execCommand(doc, str, FALSE, v, &b); ok(hres == OLECMDERR_E_NOTSUPPORTED || hres == E_INVALIDARG, - "execCommand failed: %08x, expected OLECMDERR_E_NOTSUPPORTED or E_INVALIDARG\n", hres); + "execCommand failed: %08lx, expected OLECMDERR_E_NOTSUPPORTED or E_INVALIDARG\n", hres); SysFreeString(str);
str = SysAllocString(L"respectvisibilityindesign"); @@ -7405,7 +7405,7 @@ static void test_defaults(IHTMLDocument2 *doc) V_VT(&v) = VT_BOOL; V_BOOL(&v) = VARIANT_TRUE; hres = IHTMLDocument2_execCommand(doc, str, FALSE, v, &b); - ok(hres == S_OK, "execCommand failed: %08x, expected DRAGDROP_E_NOTREGISTERED\n", hres); + ok(hres == S_OK, "execCommand failed: %08lx, expected DRAGDROP_E_NOTREGISTERED\n", hres); SysFreeString(str);
test_default_selection(doc); @@ -7414,7 +7414,7 @@ static void test_defaults(IHTMLDocument2 *doc)
str = (BSTR)0xdeadbeef; hres = IHTMLDocument2_get_cookie(doc, &str); - ok(hres == S_OK, "get_cookie failed: %08x\n", hres); + ok(hres == S_OK, "get_cookie failed: %08lx\n", hres); ok(!str, "cookie = %s\n", wine_dbgstr_w(str)); }
@@ -7427,7 +7427,7 @@ static void _test_button_name(unsigned line, IHTMLElement *elem, const WCHAR *ex
str = (void*)0xdeadbeef; hres = IHTMLButtonElement_get_name(button, &str); - ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08lx\n", hres); if(exname) ok_(__FILE__,line)(!lstrcmpW(str, exname), "name = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exname)); else @@ -7444,7 +7444,7 @@ static void _set_button_name(unsigned line, IHTMLElement *elem, const WCHAR *nam HRESULT hres;
hres = IHTMLButtonElement_put_name(button, str); - ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_name failed: %08lx\n", hres); SysFreeString(str); IHTMLButtonElement_Release(button);
@@ -7459,7 +7459,7 @@ static void _test_button_get_disabled(unsigned line, IHTMLElement *elem, VARIANT HRESULT hres;
hres = IHTMLButtonElement_get_disabled(button, &disabled); - ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_disabled failed: %08lx\n", hres); ok_(__FILE__,line) (disabled == exb, "disabled=%x, expected %x\n", disabled, exb); IHTMLButtonElement_Release(button);
@@ -7473,7 +7473,7 @@ static void _test_button_set_disabled(unsigned line, IHTMLElement *elem, VARIANT HRESULT hres;
hres = IHTMLButtonElement_put_disabled(button, b); - ok_(__FILE__,line) (hres == S_OK, "put_disabled failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "put_disabled failed: %08lx\n", hres); IHTMLButtonElement_Release(button);
_test_button_get_disabled(line, elem, b); @@ -7487,7 +7487,7 @@ static void _test_button_type(unsigned line, IHTMLElement *elem, const WCHAR *ex HRESULT hres;
hres = IHTMLButtonElement_get_type(button, &str); - ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(str, extype), "type = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(extype)); SysFreeString(str);
@@ -7502,7 +7502,7 @@ static void _test_button_value(unsigned line, IHTMLElement *elem, const WCHAR *e HRESULT hres;
hres = IHTMLButtonElement_get_value(button, &str); - ok_(__FILE__,line)(hres == S_OK, "get_value failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_value failed: %08lx\n", hres); if(exvalue) ok_(__FILE__,line)(!lstrcmpW(str, exvalue), "value = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exvalue)); else @@ -7520,7 +7520,7 @@ static void _set_button_value(unsigned line, IHTMLElement *elem, const WCHAR *va HRESULT hres;
hres = IHTMLButtonElement_put_value(button, str); - ok_(__FILE__,line)(hres == S_OK, "put_value failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_value failed: %08lx\n", hres); IHTMLButtonElement_Release(button); SysFreeString(str);
@@ -7535,7 +7535,7 @@ static IHTMLFormElement *_get_button_form(unsigned line, IHTMLElement *elem) HRESULT hres;
hres = IHTMLButtonElement_get_form(button, &form); - ok_(__FILE__,line)(hres == S_OK, "get_form failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_form failed: %08lx\n", hres); IHTMLButtonElement_Release(button);
return form; @@ -7568,17 +7568,17 @@ static void _test_tr_possess(unsigned line, IHTMLElement *elem, VARIANT var;
hres = IHTMLTableRow_get_cells(row, &col); - ok_(__FILE__, line)(hres == S_OK, "get_cells failed: %08x\n", hres); + ok_(__FILE__, line)(hres == S_OK, "get_cells failed: %08lx\n", hres); ok_(__FILE__, line)(col != NULL, "get_cells returned NULL\n");
hres = IHTMLElementCollection_get_length(col, &lval); - ok_(__FILE__, line)(hres == S_OK, "get length failed: %08x\n", hres); - ok_(__FILE__, line)(lval == len, "expected len = %d, got %d\n", len, lval); + ok_(__FILE__, line)(hres == S_OK, "get length failed: %08lx\n", hres); + ok_(__FILE__, line)(lval == len, "expected len = %ld, got %ld\n", len, lval);
V_VT(&var) = VT_BSTR; V_BSTR(&var) = SysAllocString(id); hres = IHTMLElementCollection_tags(col, var, &disp); - ok_(__FILE__, line)(hres == S_OK, "search by tags(%s) failed: %08x\n", wine_dbgstr_w(id), hres); + ok_(__FILE__, line)(hres == S_OK, "search by tags(%s) failed: %08lx\n", wine_dbgstr_w(id), hres); ok_(__FILE__, line)(disp != NULL, "disp == NULL\n");
VariantClear(&var); @@ -7593,14 +7593,14 @@ static void test_tr_modify(IHTMLElement *elem, IHTMLTableRow *row) IHTMLTableCell *cell;
hres = IHTMLTableRow_deleteCell(row, 0); - ok(hres == S_OK, "deleteCell failed: %08x\n", hres); + ok(hres == S_OK, "deleteCell failed: %08lx\n", hres); test_tr_possess(elem, row, 1, L"td2");
hres = IHTMLTableRow_insertCell(row, 0, &disp); - ok(hres == S_OK, "insertCell failed: %08x\n", hres); + ok(hres == S_OK, "insertCell failed: %08lx\n", hres); ok(disp != NULL, "disp == NULL\n"); hres = IDispatch_QueryInterface(disp, &IID_IHTMLTableCell, (void **)&cell); - ok(hres == S_OK, "Could not get IID_IHTMLTableCell interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IID_IHTMLTableCell interface: %08lx\n", hres); ok(cell != NULL, "cell == NULL\n"); if (SUCCEEDED(hres)) IHTMLTableCell_Release(cell); @@ -7620,13 +7620,13 @@ static void test_tr_elem(IHTMLElement *elem) static const elem_type_t cell_types[] = {ET_TD,ET_TD};
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLTableRow, (void**)&row); - ok(hres == S_OK, "Could not get IHTMLTableRow iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLTableRow iface: %08lx\n", hres); if(FAILED(hres)) return;
col = NULL; hres = IHTMLTableRow_get_cells(row, &col); - ok(hres == S_OK, "get_cells failed: %08x\n", hres); + ok(hres == S_OK, "get_cells failed: %08lx\n", hres); ok(col != NULL, "get_cells returned NULL\n");
test_elem_collection((IUnknown*)col, cell_types, ARRAY_SIZE(cell_types)); @@ -7634,51 +7634,51 @@ static void test_tr_elem(IHTMLElement *elem)
bstr = SysAllocString(L"left"); hres = IHTMLTableRow_put_align(row, bstr); - ok(hres == S_OK, "set_align failed: %08x\n", hres); + ok(hres == S_OK, "set_align failed: %08lx\n", hres); SysFreeString(bstr);
bstr = NULL; hres = IHTMLTableRow_get_align(row, &bstr); - ok(hres == S_OK, "get_align failed: %08x\n", hres); + ok(hres == S_OK, "get_align failed: %08lx\n", hres); ok(bstr != NULL, "get_align returned NULL\n"); ok(!lstrcmpW(bstr, L"left"), "get_align returned %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr);
bstr = SysAllocString(L"top"); hres = IHTMLTableRow_put_vAlign(row, bstr); - ok(hres == S_OK, "set_valign failed: %08x\n", hres); + ok(hres == S_OK, "set_valign failed: %08lx\n", hres); SysFreeString(bstr);
bstr = NULL; hres = IHTMLTableRow_get_vAlign(row, &bstr); - ok(hres == S_OK, "get_valign failed: %08x\n", hres); + ok(hres == S_OK, "get_valign failed: %08lx\n", hres); ok(bstr != NULL, "get_valign returned NULL\n"); ok(!lstrcmpW(bstr, L"top"), "get_valign returned %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr);
lval = 0xdeadbeef; hres = IHTMLTableRow_get_rowIndex(row, &lval); - ok(hres == S_OK, "get_rowIndex failed: %08x\n", hres); - ok(lval == 1, "get_rowIndex returned %d\n", lval); + ok(hres == S_OK, "get_rowIndex failed: %08lx\n", hres); + ok(lval == 1, "get_rowIndex returned %ld\n", lval);
lval = 0xdeadbeef; hres = IHTMLTableRow_get_sectionRowIndex(row, &lval); - ok(hres == S_OK, "get_sectionRowIndex failed: %08x\n", hres); - ok(lval == 1, "get_sectionRowIndex returned %d\n", lval); + ok(hres == S_OK, "get_sectionRowIndex failed: %08lx\n", hres); + ok(lval == 1, "get_sectionRowIndex returned %ld\n", lval);
hres = IHTMLTableRow_get_bgColor(row, &vDefaultbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vDefaultbg) == VT_BSTR, "bstr != NULL\n"); ok(!V_BSTR(&vDefaultbg), "V_BSTR(bgColor) = %s\n", wine_dbgstr_w(V_BSTR(&vDefaultbg)));
V_VT(&vbg) = VT_BSTR; V_BSTR(&vbg) = SysAllocString(L"red"); hres = IHTMLTableRow_put_bgColor(row, vbg); - ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "put_bgColor failed: %08lx\n", hres); VariantClear(&vbg);
hres = IHTMLTableRow_get_bgColor(row, &vbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vbg) == VT_BSTR, "V_VT(&vbg) != VT_BSTR\n"); ok(!lstrcmpW(V_BSTR(&vbg), L"#ff0000"), "Unexpected bgcolor %s\n", wine_dbgstr_w(V_BSTR(&vbg))); VariantClear(&vbg); @@ -7686,18 +7686,18 @@ static void test_tr_elem(IHTMLElement *elem) V_VT(&vbg) = VT_I4; V_I4(&vbg) = 0xff0000; hres = IHTMLTableRow_put_bgColor(row, vbg); - ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "put_bgColor failed: %08lx\n", hres); VariantClear(&vbg);
hres = IHTMLTableRow_get_bgColor(row, &vbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vbg) == VT_BSTR, "V_VT(&vbg) != VT_BSTR\n"); ok(!lstrcmpW(V_BSTR(&vbg), L"#ff0000"), "Unexpected bgcolor %s\n", wine_dbgstr_w(V_BSTR(&vbg))); VariantClear(&vbg);
/* Restore Original */ hres = IHTMLTableRow_put_bgColor(row, vDefaultbg); - ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "put_bgColor failed: %08lx\n", hres); VariantClear(&vDefaultbg);
test_tr_modify(elem, row); @@ -7723,22 +7723,22 @@ static void test_td_elem(IHTMLDocument2 *doc, IHTMLElement *div)
elem = get_doc_elem_by_id(doc, L"td1"); hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLTableCell, (void**)&cell); - ok(hres == S_OK, "Could not get IHTMLTableRow iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLTableRow iface: %08lx\n", hres); IHTMLElement_Release(elem);
lval = 0xdeadbeef; hres = IHTMLTableCell_get_cellIndex(cell, &lval); - ok(hres == S_OK, "get cellIndex failed: %08x\n", hres); - ok(!lval, "Expected 0, got %d\n", lval); + ok(hres == S_OK, "get cellIndex failed: %08lx\n", hres); + ok(!lval, "Expected 0, got %ld\n", lval);
str = SysAllocString(L"left"); hres = IHTMLTableCell_put_align(cell, str); - ok(hres == S_OK, "put_align failed: %08x\n", hres); + ok(hres == S_OK, "put_align failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLTableCell_get_align(cell, &str); - ok(hres == S_OK, "get_align failed: %08x\n", hres); + ok(hres == S_OK, "get_align failed: %08lx\n", hres); ok(str != NULL, "str is NULL\n"); if (str != NULL && hres == S_OK) { ok(!lstrcmpW(str, L"left"), "got %s\n", wine_dbgstr_w(str)); @@ -7746,18 +7746,18 @@ static void test_td_elem(IHTMLDocument2 *doc, IHTMLElement *div) }
hres = IHTMLTableCell_get_bgColor(cell, &vDefaultbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vDefaultbg) == VT_BSTR, "bstr != NULL\n"); ok(!V_BSTR(&vDefaultbg), "V_BSTR(bgColor) = %s\n", wine_dbgstr_w(V_BSTR(&vDefaultbg)));
V_VT(&vbg) = VT_BSTR; V_BSTR(&vbg) = SysAllocString(L"red"); hres = IHTMLTableCell_put_bgColor(cell, vbg); - ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "put_bgColor failed: %08lx\n", hres); VariantClear(&vbg);
hres = IHTMLTableCell_get_bgColor(cell, &vbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vbg) == VT_BSTR, "V_VT(&vbg) != VT_BSTR\n"); ok(!lstrcmpW(V_BSTR(&vbg), L"#ff0000"), "Unexpected bgcolor %s\n", wine_dbgstr_w(V_BSTR(&vbg))); VariantClear(&vbg); @@ -7765,11 +7765,11 @@ static void test_td_elem(IHTMLDocument2 *doc, IHTMLElement *div) V_VT(&vbg) = VT_I4; V_I4(&vbg) = 0xff0000; hres = IHTMLTableCell_put_bgColor(cell, vbg); - ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "put_bgColor failed: %08lx\n", hres); VariantClear(&vbg);
hres = IHTMLTableCell_get_bgColor(cell, &vbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vbg) == VT_BSTR, "V_VT(&vbg) != VT_BSTR\n"); ok(!lstrcmpW(V_BSTR(&vbg), L"#ff0000"), "Unexpected bgcolor %s\n", wine_dbgstr_w(V_BSTR(&vbg))); VariantClear(&vbg); @@ -7777,87 +7777,87 @@ static void test_td_elem(IHTMLDocument2 *doc, IHTMLElement *div) V_VT(&v) = VT_I4; V_I4(&v) = 100; hres = IHTMLTableCell_put_height(cell, v); - ok(hres == S_OK, "put_height failed: %08x\n", hres); + ok(hres == S_OK, "put_height failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLTableCell_get_height(cell, &v); - ok(hres == S_OK, "get_height failed: %08x\n", hres); + ok(hres == S_OK, "get_height failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR && !lstrcmpW(V_BSTR(&v), L"100"), "height = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"110px"); hres = IHTMLTableCell_put_height(cell, v); - ok(hres == S_OK, "put_height failed: %08x\n", hres); + ok(hres == S_OK, "put_height failed: %08lx\n", hres); SysFreeString(V_BSTR(&v));
V_VT(&v) = VT_EMPTY; hres = IHTMLTableCell_get_height(cell, &v); - ok(hres == S_OK, "get_height failed: %08x\n", hres); + ok(hres == S_OK, "get_height failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR && !lstrcmpW(V_BSTR(&v), L"110"), "height = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
V_VT(&v) = VT_I4; V_I4(&v) = 200; hres = IHTMLTableCell_put_width(cell, v); - ok(hres == S_OK, "put_width failed: %08x\n", hres); + ok(hres == S_OK, "put_width failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLTableCell_get_width(cell, &v); - ok(hres == S_OK, "get_width failed: %08x\n", hres); + ok(hres == S_OK, "get_width failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR && !lstrcmpW(V_BSTR(&v), L"200"), "width = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"210px"); hres = IHTMLTableCell_put_width(cell, v); - ok(hres == S_OK, "put_width failed: %08x\n", hres); + ok(hres == S_OK, "put_width failed: %08lx\n", hres); SysFreeString(V_BSTR(&v));
V_VT(&v) = VT_EMPTY; hres = IHTMLTableCell_get_width(cell, &v); - ok(hres == S_OK, "get_width failed: %08x\n", hres); + ok(hres == S_OK, "get_width failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR && !lstrcmpW(V_BSTR(&v), L"210"), "width = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
/* Restore Original */ hres = IHTMLTableCell_put_bgColor(cell, vDefaultbg); - ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "put_bgColor failed: %08lx\n", hres); VariantClear(&vDefaultbg);
hres = IHTMLTableCell_get_rowSpan(cell, &lval); - ok(hres == S_OK, "get_rowSpan failed: %08x\n", hres); - ok(lval == 1, "rowSpan = %d\n", lval); + ok(hres == S_OK, "get_rowSpan failed: %08lx\n", hres); + ok(lval == 1, "rowSpan = %ld\n", lval);
hres = IHTMLTableCell_put_rowSpan(cell, -1); - ok(hres == E_INVALIDARG, "put_rowSpan failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "put_rowSpan failed: %08lx\n", hres);
hres = IHTMLTableCell_put_rowSpan(cell, 0); - ok(hres == E_INVALIDARG, "put_rowSpan failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "put_rowSpan failed: %08lx\n", hres);
hres = IHTMLTableCell_put_rowSpan(cell, 2); - ok(hres == S_OK, "put_rowSpan failed: %08x\n", hres); + ok(hres == S_OK, "put_rowSpan failed: %08lx\n", hres);
hres = IHTMLTableCell_get_rowSpan(cell, &lval); - ok(hres == S_OK, "get_rowSpan failed: %08x\n", hres); - ok(lval == 2, "rowSpan = %d\n", lval); + ok(hres == S_OK, "get_rowSpan failed: %08lx\n", hres); + ok(lval == 2, "rowSpan = %ld\n", lval);
hres = IHTMLTableCell_get_colSpan(cell, &lval); - ok(hres == S_OK, "get_rowSpan failed: %08x\n", hres); - ok(lval == 1, "rowSpan = %d\n", lval); + ok(hres == S_OK, "get_rowSpan failed: %08lx\n", hres); + ok(lval == 1, "rowSpan = %ld\n", lval);
hres = IHTMLTableCell_put_colSpan(cell, -1); - ok(hres == E_INVALIDARG, "put_rowSpan failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "put_rowSpan failed: %08lx\n", hres);
hres = IHTMLTableCell_put_colSpan(cell, 0); - ok(hres == E_INVALIDARG, "put_rowSpan failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "put_rowSpan failed: %08lx\n", hres);
hres = IHTMLTableCell_put_colSpan(cell, 2); - ok(hres == S_OK, "put_rowSpan failed: %08x\n", hres); + ok(hres == S_OK, "put_rowSpan failed: %08lx\n", hres);
hres = IHTMLTableCell_get_colSpan(cell, &lval); - ok(hres == S_OK, "get_rowSpan failed: %08x\n", hres); - ok(lval == 2, "rowSpan = %d\n", lval); + ok(hres == S_OK, "get_rowSpan failed: %08lx\n", hres); + ok(lval == 2, "rowSpan = %ld\n", lval);
IHTMLTableCell_Release(cell); } @@ -7872,29 +7872,29 @@ static void test_label_elem(IHTMLElement *elem)
str = NULL; hres = IHTMLLabelElement_get_htmlFor(label, &str); - ok(hres == S_OK, "get_htmlFor failed: %08x\n", hres); + ok(hres == S_OK, "get_htmlFor failed: %08lx\n", hres); ok(!lstrcmpW(str, L"in"), "htmlFor = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L""); hres = IHTMLLabelElement_put_htmlFor(label, str); - ok(hres == S_OK, "put_htmlFor failed: %08x\n", hres); + ok(hres == S_OK, "put_htmlFor failed: %08lx\n", hres); SysFreeString(str);
str = (void*)0xdeadbeef; hres = IHTMLLabelElement_get_htmlFor(label, &str); - ok(hres == S_OK, "get_htmlFor failed: %08x\n", hres); + ok(hres == S_OK, "get_htmlFor failed: %08lx\n", hres); ok(!lstrcmpW(str, L""), "htmlFor = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"abc"); hres = IHTMLLabelElement_put_htmlFor(label, str); - ok(hres == S_OK, "put_htmlFor failed: %08x\n", hres); + ok(hres == S_OK, "put_htmlFor failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLLabelElement_get_htmlFor(label, &str); - ok(hres == S_OK, "get_htmlFor failed: %08x\n", hres); + ok(hres == S_OK, "get_htmlFor failed: %08lx\n", hres); ok(!lstrcmpW(str, L"abc"), "htmlFor = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
@@ -7909,7 +7909,7 @@ static void _test_table_cell_spacing(unsigned line, IHTMLTable *table, const WCH
V_VT(&v) = VT_ERROR; hres = IHTMLTable_get_cellSpacing(table, &v); - ok_(__FILE__,line)(hres == S_OK, "get_cellSpacing failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_cellSpacing failed: %08lx\n", hres); ok_(__FILE__,line)(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); if(exstr) ok_(__FILE__,line)(!lstrcmpW(V_BSTR(&v), exstr), "cellSpacing = %s, expected %s\n", wine_dbgstr_w(V_BSTR(&v)), wine_dbgstr_w(exstr)); @@ -7926,7 +7926,7 @@ static void _test_table_cell_padding(unsigned line, IHTMLTable *table, const WCH
V_VT(&v) = VT_ERROR; hres = IHTMLTable_get_cellPadding(table, &v); - ok_(__FILE__,line)(hres == S_OK, "get_cellPadding failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_cellPadding failed: %08lx\n", hres); ok_(__FILE__,line)(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); if(exstr) ok_(__FILE__,line)(!lstrcmpW(V_BSTR(&v), exstr), "cellPadding = %s, expected %s\n", wine_dbgstr_w(V_BSTR(&v)), wine_dbgstr_w(exstr)); @@ -7945,7 +7945,7 @@ static void test_table_modify(IHTMLTable *table) test_table_length(table, 2);
hres = IHTMLTable_insertRow(table, 0, &disp); - ok(hres == S_OK, "insertRow failed: %08x\n", hres); + ok(hres == S_OK, "insertRow failed: %08lx\n", hres); ok(disp != NULL, "disp == NULL\n"); test_table_length(table, 3); if (hres != S_OK || disp == NULL) @@ -7954,18 +7954,18 @@ static void test_table_modify(IHTMLTable *table) hres = IDispatch_QueryInterface(disp, &IID_IHTMLTableRow, (void**)&row); IDispatch_Release(disp);
- ok(hres == S_OK, "QueryInterface failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface failed: %08lx\n", hres); ok(row != NULL, "row == NULL\n");
index = 0xdeadbeef; hres = IHTMLTableRow_get_rowIndex(row, &index); - ok(hres == S_OK, "get_rowIndex failed: %08x\n", hres); - ok(index == 0, "index = %d, expected 0\n", index); + ok(hres == S_OK, "get_rowIndex failed: %08lx\n", hres); + ok(index == 0, "index = %ld, expected 0\n", index);
IHTMLTableRow_Release(row);
hres = IHTMLTable_deleteRow(table, 0); - ok(hres == S_OK, "deleteRow failed: %08x\n", hres); + ok(hres == S_OK, "deleteRow failed: %08lx\n", hres); test_table_length(table, 2); }
@@ -7985,18 +7985,18 @@ static void test_table_elem(IHTMLElement *elem) static const elem_type_t tbodies_types[] = {ET_TBODY};
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLTable, (void**)&table); - ok(hres == S_OK, "Could not get IHTMLTable iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLTable iface: %08lx\n", hres); if(FAILED(hres)) return;
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLTable3, (void**)&table3); - ok(hres == S_OK, "Could not get IHTMLTable3 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLTable3 iface: %08lx\n", hres); if(FAILED(hres)) return;
col = NULL; hres = IHTMLTable_get_rows(table, &col); - ok(hres == S_OK, "get_rows failed: %08x\n", hres); + ok(hres == S_OK, "get_rows failed: %08lx\n", hres); ok(col != NULL, "get_rows returned NULL\n");
test_elem_collection((IUnknown*)col, row_types, ARRAY_SIZE(row_types)); @@ -8016,7 +8016,7 @@ static void test_table_elem(IHTMLElement *elem)
col = NULL; hres = IHTMLTable_get_tBodies(table, &col); - ok(hres == S_OK, "get_tBodies failed: %08x\n", hres); + ok(hres == S_OK, "get_tBodies failed: %08lx\n", hres); ok(col != NULL, "get_tBodies returned NULL\n");
test_elem_collection((IUnknown*)col, tbodies_types, ARRAY_SIZE(tbodies_types)); @@ -8027,13 +8027,13 @@ static void test_table_elem(IHTMLElement *elem) V_VT(&v) = VT_I4; V_I4(&v) = 10; hres = IHTMLTable_put_cellSpacing(table, v); - ok(hres == S_OK, "put_cellSpacing = %08x\n", hres); + ok(hres == S_OK, "put_cellSpacing = %08lx\n", hres); test_table_cell_spacing(table, L"10");
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"11"); hres = IHTMLTable_put_cellSpacing(table, v); - ok(hres == S_OK, "put_cellSpacing = %08x\n", hres); + ok(hres == S_OK, "put_cellSpacing = %08lx\n", hres); test_table_cell_spacing(table, L"11"); VariantClear(&v);
@@ -8042,47 +8042,47 @@ static void test_table_elem(IHTMLElement *elem) V_VT(&v) = VT_I4; V_I4(&v) = 10; hres = IHTMLTable_put_cellPadding(table, v); - ok(hres == S_OK, "put_cellPadding = %08x\n", hres); + ok(hres == S_OK, "put_cellPadding = %08lx\n", hres); test_table_cell_padding(table, L"10");
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"11"); hres = IHTMLTable_put_cellPadding(table, v); - ok(hres == S_OK, "put_cellPadding = %08x\n", hres); + ok(hres == S_OK, "put_cellPadding = %08lx\n", hres); test_table_cell_padding(table, L"11"); VariantClear(&v);
V_VT(&v) = VT_R8; V_R8(&v) = 5; hres = IHTMLTable_put_cellPadding(table, v); - ok(hres == S_OK, "put_cellPadding = %08x\n", hres); + ok(hres == S_OK, "put_cellPadding = %08lx\n", hres); test_table_cell_padding(table, L"5");
bstr = SysAllocString(L"left"); hres = IHTMLTable_put_align(table, bstr); - ok(hres == S_OK, "set_align failed: %08x\n", hres); + ok(hres == S_OK, "set_align failed: %08lx\n", hres); SysFreeString(bstr);
bstr = NULL; hres = IHTMLTable_get_align(table, &bstr); - ok(hres == S_OK, "get_align failed: %08x\n", hres); + ok(hres == S_OK, "get_align failed: %08lx\n", hres); ok(bstr != NULL, "get_align returned NULL\n"); ok(!lstrcmpW(bstr, L"left"), "get_align returned %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr);
hres = IHTMLTable_get_bgColor(table, &vDefaultbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vDefaultbg) == VT_BSTR, "bstr != NULL\n"); ok(!V_BSTR(&vDefaultbg), "V_BSTR(bgColor) = %s\n", wine_dbgstr_w(V_BSTR(&vDefaultbg)));
V_VT(&vbg) = VT_BSTR; V_BSTR(&vbg) = SysAllocString(L"red"); hres = IHTMLTable_put_bgColor(table, vbg); - ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "put_bgColor failed: %08lx\n", hres); VariantClear(&vbg);
hres = IHTMLTable_get_bgColor(table, &vbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vbg) == VT_BSTR, "V_VT(&vbg) != VT_BSTR\n"); ok(!lstrcmpW(V_BSTR(&vbg), L"#ff0000"), "Unexpected bgcolor %s\n", wine_dbgstr_w(V_BSTR(&vbg))); VariantClear(&vbg); @@ -8090,95 +8090,95 @@ static void test_table_elem(IHTMLElement *elem) V_VT(&vbg) = VT_I4; V_I4(&vbg) = 0xff0000; hres = IHTMLTable_put_bgColor(table, vbg); - ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "put_bgColor failed: %08lx\n", hres); VariantClear(&vbg);
hres = IHTMLTable_get_bgColor(table, &vbg); - ok(hres == S_OK, "get_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "get_bgColor failed: %08lx\n", hres); ok(V_VT(&vbg) == VT_BSTR, "V_VT(&vbg) != VT_BSTR\n"); ok(!lstrcmpW(V_BSTR(&vbg), L"#ff0000"), "Unexpected bgcolor %s\n", wine_dbgstr_w(V_BSTR(&vbg))); VariantClear(&vbg);
/* Restore Original */ hres = IHTMLTable_put_bgColor(table, vDefaultbg); - ok(hres == S_OK, "put_bgColor failed: %08x\n", hres); + ok(hres == S_OK, "put_bgColor failed: %08lx\n", hres); VariantClear(&vDefaultbg);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"12px"); hres = IHTMLTable_put_width(table, v); - ok(hres == S_OK, "put_width = %08x\n", hres); + ok(hres == S_OK, "put_width = %08lx\n", hres); VariantClear(&v); hres = IHTMLTable_get_width(table, &v); - ok(hres == S_OK, "get_width = %08x\n", hres); + ok(hres == S_OK, "get_width = %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"12"), "Expected 12, got %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"11"); hres = IHTMLTable_put_width(table, v); - ok(hres == S_OK, "put_width = %08x\n", hres); + ok(hres == S_OK, "put_width = %08lx\n", hres); VariantClear(&v); hres = IHTMLTable_get_width(table, &v); - ok(hres == S_OK, "get_width = %08x\n", hres); + ok(hres == S_OK, "get_width = %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"11"), "Expected 11, got %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"11.9"); hres = IHTMLTable_put_width(table, v); - ok(hres == S_OK, "put_width = %08x\n", hres); + ok(hres == S_OK, "put_width = %08lx\n", hres); VariantClear(&v); hres = IHTMLTable_get_width(table, &v); - ok(hres == S_OK, "get_width = %08x\n", hres); + ok(hres == S_OK, "get_width = %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"11"), "Expected 11, got %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"40.2%"); hres = IHTMLTable_put_width(table, v); - ok(hres == S_OK, "put_width = %08x\n", hres); + ok(hres == S_OK, "put_width = %08lx\n", hres); VariantClear(&v); hres = IHTMLTable_get_width(table, &v); - ok(hres == S_OK, "get_width = %08x\n", hres); + ok(hres == S_OK, "get_width = %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"40.2%"), "Expected 40.2%%, got %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
V_VT(&v) = VT_I4; V_I4(&v) = 11; hres = IHTMLTable_put_width(table, v); - ok(hres == S_OK, "put_width = %08x\n", hres); + ok(hres == S_OK, "put_width = %08lx\n", hres); hres = IHTMLTable_get_width(table, &v); - ok(hres == S_OK, "get_width = %08x\n", hres); + ok(hres == S_OK, "get_width = %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"11"), "Expected 11, got %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
V_VT(&v) = VT_R8; V_R8(&v) = 11.9; hres = IHTMLTable_put_width(table, v); - ok(hres == S_OK, "put_width = %08x\n", hres); + ok(hres == S_OK, "put_width = %08lx\n", hres); hres = IHTMLTable_get_width(table, &v); - ok(hres == S_OK, "get_width = %08x\n", hres); + ok(hres == S_OK, "get_width = %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"11"), "Expected 11, got %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
bstr = SysAllocString(L"box"); hres = IHTMLTable_put_frame(table, bstr); - ok(hres == S_OK, "put_frame = %08x\n", hres); + ok(hres == S_OK, "put_frame = %08lx\n", hres); SysFreeString(bstr); hres = IHTMLTable_get_frame(table, &bstr); - ok(hres == S_OK, "get_frame = %08x\n", hres); + ok(hres == S_OK, "get_frame = %08lx\n", hres); ok(!lstrcmpW(bstr, L"box"), "Expected box, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr);
test_table_modify(table); bstr = SysAllocString(L"summary"); hres = IHTMLTable3_put_summary(table3, bstr); - ok(hres == S_OK, "put_summary = %08x\n", hres); + ok(hres == S_OK, "put_summary = %08lx\n", hres); SysFreeString(bstr);
hres = IHTMLTable3_get_summary(table3, &bstr); - ok(hres == S_OK, "get_summary = %08x\n", hres); + ok(hres == S_OK, "get_summary = %08lx\n", hres); ok(!lstrcmpW(bstr, L"summary"), "Expected summary, got %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr);
@@ -8197,7 +8197,7 @@ static void doc_write(IHTMLDocument2 *doc, BOOL ln, const WCHAR *text) dim.cElements = 1; sa = SafeArrayCreate(VT_VARIANT, 1, &dim); hres = SafeArrayAccessData(sa, (void**)&var); - ok(hres == S_OK, "Failed to access array data: %08x\n", hres); + ok(hres == S_OK, "Failed to access array data: %08lx\n", hres); V_VT(var) = VT_BSTR; V_BSTR(var) = SysAllocString(text); SafeArrayUnaccessData(sa); @@ -8206,7 +8206,7 @@ static void doc_write(IHTMLDocument2 *doc, BOOL ln, const WCHAR *text) hres = IHTMLDocument2_writeln(doc, sa); else hres = IHTMLDocument2_write(doc, sa); - ok(hres == S_OK, "write failed: %08x\n", hres); + ok(hres == S_OK, "write failed: %08lx\n", hres);
SafeArrayDestroy(sa); } @@ -8220,7 +8220,7 @@ static void doc_complex_write(IHTMLDocument2 *doc)
sa = SafeArrayCreate(VT_VARIANT, 1, &dim); hres = SafeArrayAccessData(sa, (void**)&args); - ok(hres == S_OK, "Failed to access array data: %08x\n", hres); + ok(hres == S_OK, "Failed to access array data: %08lx\n", hres);
V_VT(args) = VT_BSTR; V_BSTR(args) = SysAllocString(L"<body i4val=""); @@ -8235,7 +8235,7 @@ static void doc_complex_write(IHTMLDocument2 *doc) SafeArrayUnaccessData(sa);
hres = IHTMLDocument2_write(doc, sa); - ok(hres == S_OK, "write failed: %08x\n", hres); + ok(hres == S_OK, "write failed: %08lx\n", hres);
SafeArrayDestroy(sa); } @@ -8261,7 +8261,7 @@ static void test_frame_doc(IUnknown *frame_elem, BOOL iframe) IDispatch *disp = NULL;
hres = IHTMLFrameElement3_get_contentDocument(frame_elem3, &disp); - ok(hres == S_OK, "get_contentDocument failed: %08x\n", hres); + ok(hres == S_OK, "get_contentDocument failed: %08lx\n", hres); ok(disp != NULL, "contentDocument == NULL\n"); ok(iface_cmp((IUnknown*)disp, (IUnknown*)window_doc), "contentDocument != contentWindow.document\n");
@@ -8284,7 +8284,7 @@ static void _test_iframe_height(unsigned line, IHTMLElement *elem, const WCHAR * HRESULT hres;
hres = IHTMLIFrameElement2_get_height(iframe, &v); - ok_(__FILE__,line)(hres == S_OK, "get_height failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_height failed: %08lx\n", hres); ok_(__FILE__,line)(V_VT(&v) == VT_BSTR, "V_VT(height) = %d\n", V_VT(&v)); if(exval) ok_(__FILE__,line)(!lstrcmpW(V_BSTR(&v), exval), "height = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -8304,7 +8304,7 @@ static void _set_iframe_height(unsigned line, IHTMLElement *elem, const WCHAR *v V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(val); hres = IHTMLIFrameElement2_put_height(iframe, v); - ok_(__FILE__,line)(hres == S_OK, "put_height failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_height failed: %08lx\n", hres); VariantClear(&v); IHTMLIFrameElement2_Release(iframe); } @@ -8317,7 +8317,7 @@ static void _test_iframe_width(unsigned line, IHTMLElement *elem, const WCHAR *e HRESULT hres;
hres = IHTMLIFrameElement2_get_width(iframe, &v); - ok_(__FILE__,line)(hres == S_OK, "get_width failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_width failed: %08lx\n", hres); ok_(__FILE__,line)(V_VT(&v) == VT_BSTR, "V_VT(width) = %d\n", V_VT(&v)); if(exval) ok_(__FILE__,line)(!lstrcmpW(V_BSTR(&v), exval), "width = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -8337,7 +8337,7 @@ static void _set_iframe_width(unsigned line, IHTMLElement *elem, const WCHAR *va V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(val); hres = IHTMLIFrameElement2_put_width(iframe, v); - ok_(__FILE__,line)(hres == S_OK, "put_width failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_width failed: %08lx\n", hres); VariantClear(&v); IHTMLIFrameElement2_Release(iframe); } @@ -8376,7 +8376,7 @@ static void test_iframe_elem(IHTMLElement *elem) hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLIFrameElement3, (void**)&iframe3); if(SUCCEEDED(hres)) { hres = IHTMLIFrameElement3_get_contentDocument(iframe3, &disp); - ok(hres == S_OK, "get_contentDocument failed: %08x\n", hres); + ok(hres == S_OK, "get_contentDocument failed: %08lx\n", hres); ok(iface_cmp((IUnknown*)content_doc, (IUnknown*)disp), "content_doc != disp\n"); IDispatch_Release(disp);
@@ -8395,7 +8395,7 @@ static void test_iframe_elem(IHTMLElement *elem) V_VT(&v) = VT_I4; V_I4(&v) = 100; hres = IHTMLIFrameElement2_put_height(iframe2, v); - ok(hres == S_OK, "put_height failed: %08x\n", hres); + ok(hres == S_OK, "put_height failed: %08lx\n", hres); test_iframe_height(elem, L"100");
test_iframe_width(elem, NULL); @@ -8407,7 +8407,7 @@ static void test_iframe_elem(IHTMLElement *elem) V_VT(&v) = VT_I4; V_I4(&v) = 110; hres = IHTMLIFrameElement2_put_width(iframe2, v); - ok(hres == S_OK, "put_height failed: %08x\n", hres); + ok(hres == S_OK, "put_height failed: %08lx\n", hres); test_iframe_width(elem, L"110");
str = SysAllocString(L"text/html"); @@ -8415,7 +8415,7 @@ static void test_iframe_elem(IHTMLElement *elem) disp = NULL; hres = IHTMLDocument2_open(content_doc, str, errv, errv, errv, &disp); SysFreeString(str); - ok(hres == S_OK, "open failed: %08x\n", hres); + ok(hres == S_OK, "open failed: %08lx\n", hres); ok(disp != NULL, "disp == NULL\n"); ok(iface_cmp((IUnknown*)disp, (IUnknown*)content_window), "disp != content_window\n"); IDispatch_Release(disp); @@ -8426,7 +8426,7 @@ static void test_iframe_elem(IHTMLElement *elem) doc_write(content_doc, TRUE, L"</html>");
hres = IHTMLDocument2_get_all(content_doc, &col); - ok(hres == S_OK, "get_all failed: %08x\n", hres); + ok(hres == S_OK, "get_all failed: %08lx\n", hres); test_elem_collection((IUnknown*)col, all_types, ARRAY_SIZE(all_types)); IHTMLElementCollection_Release(col);
@@ -8437,7 +8437,7 @@ static void test_iframe_elem(IHTMLElement *elem) IHTMLIFrameElement2_Release(iframe2);
hres = IHTMLDocument2_close(content_doc); - ok(hres == S_OK, "close failed: %08x\n", hres); + ok(hres == S_OK, "close failed: %08lx\n", hres);
owner_doc = get_owner_doc((IUnknown*)content_doc); ok(!owner_doc, "owner_doc = %p\n", owner_doc); @@ -8456,32 +8456,32 @@ static void test_elem_spellcheck(IHTMLElement *iface) win_skip("IHTMLElement7 not supported\n"); return; } - ok(hres == S_OK, "Could not get IHTMLElement7 interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLElement7 interface: %08lx\n", hres);
V_VT(&v) = VT_ERROR; hres = IHTMLElement7_get_spellcheck(elem, &v); - ok(hres == S_OK, "get_spellcheck failed: %08x\n", hres); + ok(hres == S_OK, "get_spellcheck failed: %08lx\n", hres); ok(V_VT(&v) == VT_BOOL && !V_BOOL(&v), "spellcheck = %s\n", wine_dbgstr_variant(&v));
V_VT(&v) = VT_BOOL; V_BOOL(&v) = VARIANT_TRUE; hres = IHTMLElement7_put_spellcheck(elem, v); - ok(hres == S_OK, "put_spellcheck failed: %08x\n", hres); + ok(hres == S_OK, "put_spellcheck failed: %08lx\n", hres);
V_VT(&v) = VT_ERROR; hres = IHTMLElement7_get_spellcheck(elem, &v); - ok(hres == S_OK, "get_spellcheck failed: %08x\n", hres); + ok(hres == S_OK, "get_spellcheck failed: %08lx\n", hres); ok(V_VT(&v) == VT_BOOL && V_BOOL(&v) == VARIANT_TRUE, "spellcheck = %s\n", wine_dbgstr_variant(&v));
V_VT(&v) = VT_BOOL; V_BOOL(&v) = VARIANT_FALSE; hres = IHTMLElement7_put_spellcheck(elem, v); - ok(hres == S_OK, "put_spellcheck failed: %08x\n", hres); + ok(hres == S_OK, "put_spellcheck failed: %08lx\n", hres);
V_VT(&v) = VT_ERROR; hres = IHTMLElement7_get_spellcheck(elem, &v); - ok(hres == S_OK, "get_spellcheck failed: %08x\n", hres); + ok(hres == S_OK, "get_spellcheck failed: %08lx\n", hres); ok(V_VT(&v) == VT_BOOL && !V_BOOL(&v), "spellcheck = %s\n", wine_dbgstr_variant(&v));
IHTMLElement7_Release(elem); @@ -8494,7 +8494,7 @@ static void _test_stylesheet_csstext(unsigned line, IHTMLStyleSheet *stylesheet, HRESULT hres;
hres = IHTMLStyleSheet_get_cssText(stylesheet, &str); - ok_(__FILE__,line)(hres == S_OK, "get_cssText failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_cssText failed: %08lx\n", hres); todo_wine_if(is_todo) { if(exstr) ok_(__FILE__,line)(str && !wcsncmp(str, exstr, lstrlenW(exstr)), "cssText = %s\n", wine_dbgstr_w(str)); @@ -8513,7 +8513,7 @@ static void _set_stylesheet_csstext(unsigned line, IHTMLStyleSheet *stylesheet,
hres = IHTMLStyleSheet_put_cssText(stylesheet, str); todo_wine_if(is_todo) - ok_(__FILE__,line)(hres == S_OK, "put_cssText failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_cssText failed: %08lx\n", hres); SysFreeString(str); }
@@ -8528,10 +8528,10 @@ static void test_stylesheet(IDispatch *disp) test_disp2((IUnknown*)disp, &DIID_DispHTMLStyleSheet, &IID_IHTMLStyleSheet, NULL, L"[object]");
hres = IDispatch_QueryInterface(disp, &IID_IHTMLStyleSheet, (void**)&stylesheet); - ok(hres == S_OK, "Could not get IHTMLStyleSheet: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLStyleSheet: %08lx\n", hres);
hres = IHTMLStyleSheet_get_rules(stylesheet, &col); - ok(hres == S_OK, "get_rules failed: %08x\n", hres); + ok(hres == S_OK, "get_rules failed: %08lx\n", hres); ok(col != NULL, "col == NULL\n");
test_disp2((IUnknown*)col, &DIID_DispHTMLStyleSheetRulesCollection, &IID_IHTMLStyleSheetRulesCollection, NULL, L"[object]"); @@ -8539,7 +8539,7 @@ static void test_stylesheet(IDispatch *disp)
href = (void*)0xdeadbeef; hres = IHTMLStyleSheet_get_href(stylesheet, &href); - ok(hres == S_OK, "get_href failed: %08x\n", hres); + ok(hres == S_OK, "get_href failed: %08lx\n", hres); ok(href == NULL, "got href != NULL\n"); SysFreeString(href);
@@ -8552,17 +8552,17 @@ static void test_stylesheet(IDispatch *disp) test_stylesheet_csstext(stylesheet, L".div {", FALSE);
hres = IHTMLStyleSheet_get_rules(stylesheet, &col); - ok(hres == S_OK, "get_rules failed: %08x\n", hres); + ok(hres == S_OK, "get_rules failed: %08lx\n", hres); ok(col != NULL, "col == NULL\n");
hres = IHTMLStyleSheetRulesCollection_item(col, 0, &rule); - ok(hres == S_OK, "IHTMLStyleSheetRulesCollection_item failed: %08x\n", hres); + ok(hres == S_OK, "IHTMLStyleSheetRulesCollection_item failed: %08lx\n", hres); ok(rule != NULL, "rule = NULL\n"); test_disp((IUnknown*)rule, &DIID_DispHTMLStyleSheetRule, NULL, L"[object]"); IHTMLStyleSheetRule_Release(rule);
hres = IHTMLStyleSheetRulesCollection_item(col, 1, &rule); - ok(hres == E_INVALIDARG, "IHTMLStyleSheetRulesCollection_item failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "IHTMLStyleSheetRulesCollection_item failed: %08lx\n", hres);
IHTMLStyleSheetRulesCollection_Release(col);
@@ -8577,21 +8577,21 @@ static void test_stylesheets(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_styleSheets(doc, &col); - ok(hres == S_OK, "get_styleSheets failed: %08x\n", hres); + ok(hres == S_OK, "get_styleSheets failed: %08lx\n", hres); ok(col != NULL, "col == NULL\n");
test_disp2((IUnknown*)col, &DIID_DispHTMLStyleSheetsCollection, &IID_IHTMLStyleSheetsCollection, NULL, L"[object]");
hres = IHTMLStyleSheetsCollection_get_length(col, &len); - ok(hres == S_OK, "get_length failed: %08x\n", hres); - ok(len == 1, "len=%d\n", len); + ok(hres == S_OK, "get_length failed: %08lx\n", hres); + ok(len == 1, "len=%ld\n", len);
VariantInit(&res); V_VT(&idx) = VT_I4; V_I4(&idx) = 0;
hres = IHTMLStyleSheetsCollection_item(col, &idx, &res); - ok(hres == S_OK, "item failed: %08x\n", hres); + ok(hres == S_OK, "item failed: %08lx\n", hres); ok(V_VT(&res) == VT_DISPATCH, "V_VT(res) = %d\n", V_VT(&res)); ok(V_DISPATCH(&res) != NULL, "V_DISPATCH(&res) == NULL\n"); test_stylesheet(V_DISPATCH(&res)); @@ -8602,7 +8602,7 @@ static void test_stylesheets(IHTMLDocument2 *doc) V_I4(&idx) = 1;
hres = IHTMLStyleSheetsCollection_item(col, &idx, &res); - ok(hres == E_INVALIDARG, "item failed: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "item failed: %08lx, expected E_INVALIDARG\n", hres); ok(V_VT(&res) == VT_EMPTY, "V_VT(res) = %d\n", V_VT(&res)); VariantClear(&res);
@@ -8625,27 +8625,27 @@ static void test_child_col_disp(IHTMLDOMChildrenCollection *col) static const WCHAR w100[] = {'1','0','0',0};
hres = IHTMLDOMChildrenCollection_QueryInterface(col, &IID_IDispatchEx, (void**)&dispex); - ok(hres == S_OK, "Could not get IDispatchEx: %08x\n", hres); + ok(hres == S_OK, "Could not get IDispatchEx: %08lx\n", hres);
bstr = SysAllocString(w0); hres = IDispatchEx_GetDispID(dispex, bstr, fdexNameCaseSensitive, &id); - ok(hres == S_OK, "GetDispID failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID failed: %08lx\n", hres); SysFreeString(bstr);
VariantInit(&var); hres = IDispatchEx_InvokeEx(dispex, id, LOCALE_NEUTRAL, INVOKE_PROPERTYGET, &dp, &var, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&var) == VT_DISPATCH, "V_VT(var)=%d\n", V_VT(&var)); ok(V_DISPATCH(&var) != NULL, "V_DISPATCH(var) == NULL\n"); node = get_node_iface((IUnknown*)V_DISPATCH(&var)); type = get_node_type((IUnknown*)node); - ok(type == 3, "type=%d\n", type); + ok(type == 3, "type=%ld\n", type); IHTMLDOMNode_Release(node); VariantClear(&var);
bstr = SysAllocString(w100); hres = IDispatchEx_GetDispID(dispex, bstr, fdexNameCaseSensitive, &id); - ok(hres == DISP_E_UNKNOWNNAME, "GetDispID failed: %08x, expected DISP_E_UNKNOWNNAME\n", hres); + ok(hres == DISP_E_UNKNOWNNAME, "GetDispID failed: %08lx, expected DISP_E_UNKNOWNNAME\n", hres); SysFreeString(bstr);
IDispatchEx_Release(dispex); @@ -8659,15 +8659,15 @@ static void test_enum_children(IUnknown *unk, unsigned len) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IEnumVARIANT, (void**)&enum_var); - ok(hres == S_OK, "Could not get IEnumVARIANT iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IEnumVARIANT iface: %08lx\n", hres);
for(i=0; i<len; i++) { fetched = 0; V_VT(&v) = VT_ERROR; hres = IEnumVARIANT_Next(enum_var, 1, &v, i ? &fetched : NULL); - ok(hres == S_OK, "Next failed: %08x\n", hres); + ok(hres == S_OK, "Next failed: %08lx\n", hres); if(i) - ok(fetched == 1, "fetched = %d\n", fetched); + ok(fetched == 1, "fetched = %ld\n", fetched); ok(V_VT(&v) == VT_DISPATCH && V_DISPATCH(&v), "V_VT(v) = %d\n", V_VT(&v)); IDispatch_Release(V_DISPATCH(&v)); } @@ -8675,28 +8675,28 @@ static void test_enum_children(IUnknown *unk, unsigned len) fetched = 0xdeadbeef; V_VT(&v) = VT_BOOL; hres = IEnumVARIANT_Next(enum_var, 1, &v, &fetched); - ok(hres == S_FALSE, "Next returned %08x, expected S_FALSE\n", hres); - ok(fetched == 0, "fetched = %d\n", fetched); + ok(hres == S_FALSE, "Next returned %08lx, expected S_FALSE\n", hres); + ok(fetched == 0, "fetched = %ld\n", fetched); ok(V_VT(&v) == VT_BOOL, "V_VT(v) = %d\n", V_VT(&v));
hres = IEnumVARIANT_Reset(enum_var); - ok(hres == S_OK, "Reset failed: %08x\n", hres); + ok(hres == S_OK, "Reset failed: %08lx\n", hres);
fetched = 0xdeadbeef; V_VT(&v) = VT_BOOL; hres = IEnumVARIANT_Next(enum_var, 0, &v, &fetched); - ok(hres == S_OK, "Next returned %08x, expected S_FALSE\n", hres); - ok(fetched == 0, "fetched = %d\n", fetched); + ok(hres == S_OK, "Next returned %08lx, expected S_FALSE\n", hres); + ok(fetched == 0, "fetched = %ld\n", fetched); ok(V_VT(&v) == VT_BOOL, "V_VT(v) = %d\n", V_VT(&v));
hres = IEnumVARIANT_Skip(enum_var, len > 2 ? len-2 : 0); - ok(hres == S_OK, "Skip failed: %08x\n", hres); + ok(hres == S_OK, "Skip failed: %08lx\n", hres);
hres = IEnumVARIANT_Reset(enum_var); - ok(hres == S_OK, "Reset failed: %08x\n", hres); + ok(hres == S_OK, "Reset failed: %08lx\n", hres);
hres = IEnumVARIANT_Skip(enum_var, len+1); - ok(hres == S_FALSE, "Skip failed: %08x\n", hres); + ok(hres == S_FALSE, "Skip failed: %08lx\n", hres);
IEnumVARIANT_Release(enum_var); } @@ -8712,7 +8712,7 @@ static void test_selectors(IHTMLDocument2 *doc, IHTMLElement *div) test_elem_set_innerhtml((IUnknown*)div, L"<div class="cl1"><form class="cl1"></form></div><div class="cl2"></div>");
hres = IHTMLDocument2_QueryInterface(doc, &IID_IDocumentSelector, (void**)&doc_selector); - ok(hres == S_OK || broken(hres == E_NOINTERFACE), "Could not get IDocumentSelector iface: %08x\n", hres); + ok(hres == S_OK || broken(hres == E_NOINTERFACE), "Could not get IDocumentSelector iface: %08lx\n", hres); if(FAILED(hres)) { win_skip("IDocumentSelector tests skipped.\n"); return; @@ -8721,7 +8721,7 @@ static void test_selectors(IHTMLDocument2 *doc, IHTMLElement *div) collection = NULL; str = SysAllocString(L"nomatch"); hres = IDocumentSelector_querySelectorAll(doc_selector, str, &collection); - ok(hres == S_OK, "querySelectorAll failed: %08x\n", hres); + ok(hres == S_OK, "querySelectorAll failed: %08lx\n", hres); ok(collection != NULL, "collection == NULL\n"); test_children_collection_length(collection, 0); IHTMLDOMChildrenCollection_Release(collection); @@ -8730,7 +8730,7 @@ static void test_selectors(IHTMLDocument2 *doc, IHTMLElement *div) collection = NULL; str = SysAllocString(L".cl1"); hres = IDocumentSelector_querySelectorAll(doc_selector, str, &collection); - ok(hres == S_OK, "querySelectorAll failed: %08x\n", hres); + ok(hres == S_OK, "querySelectorAll failed: %08lx\n", hres); ok(collection != NULL, "collection == NULL\n"); test_children_collection_length(collection, 2); IHTMLDOMChildrenCollection_Release(collection); @@ -8739,12 +8739,12 @@ static void test_selectors(IHTMLDocument2 *doc, IHTMLElement *div) IDocumentSelector_Release(doc_selector);
hres = IHTMLElement_QueryInterface(div, &IID_IElementSelector, (void**)&elem_selector); - ok(hres == S_OK, "Could not get IElementSelector iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IElementSelector iface: %08lx\n", hres);
collection = NULL; str = SysAllocString(L"nomatch"); hres = IElementSelector_querySelectorAll(elem_selector, str, &collection); - ok(hres == S_OK, "querySelectorAll failed: %08x\n", hres); + ok(hres == S_OK, "querySelectorAll failed: %08lx\n", hres); ok(collection != NULL, "collection == NULL\n"); test_children_collection_length(collection, 0); IHTMLDOMChildrenCollection_Release(collection); @@ -8753,7 +8753,7 @@ static void test_selectors(IHTMLDocument2 *doc, IHTMLElement *div) collection = NULL; str = SysAllocString(L".cl1"); hres = IElementSelector_querySelectorAll(elem_selector, str, &collection); - ok(hres == S_OK, "querySelectorAll failed: %08x\n", hres); + ok(hres == S_OK, "querySelectorAll failed: %08lx\n", hres); ok(collection != NULL, "collection == NULL\n"); test_children_collection_length(collection, 2); IHTMLDOMChildrenCollection_Release(collection); @@ -8774,7 +8774,7 @@ static void test_elemsbyclass(IHTMLElement *div) test_elem_set_innerhtml((IUnknown*)div, L"<div class="cl1"><form class="cl1"></form></div><div class="cl2"></div>");
hres = IHTMLElement_QueryInterface(div, &IID_IHTMLElement6, (void**)&elem); - ok(hres == S_OK || broken(hres == E_NOINTERFACE), "Could not get IHTMLElement6 iface: %08x\n", hres); + ok(hres == S_OK || broken(hres == E_NOINTERFACE), "Could not get IHTMLElement6 iface: %08lx\n", hres); if(FAILED(hres)) { win_skip("IHTMLElement6 tests skipped.\n"); return; @@ -8783,7 +8783,7 @@ static void test_elemsbyclass(IHTMLElement *div) collection = NULL; str = SysAllocString(L"nomatch"); hres = IHTMLElement6_getElementsByClassName(elem, str, &collection); - ok(hres == S_OK, "getElementsByClassName failed: %08x\n", hres); + ok(hres == S_OK, "getElementsByClassName failed: %08lx\n", hres); ok(collection != NULL, "collection == NULL\n"); test_elem_collection((IUnknown*)collection, NULL, 0); IHTMLElementCollection_Release(collection); @@ -8792,7 +8792,7 @@ static void test_elemsbyclass(IHTMLElement *div) collection = NULL; str = SysAllocString(L"cl1"); hres = IHTMLElement6_getElementsByClassName(elem, str, &collection); - ok(hres == S_OK, "getElementsByClassName failed: %08x\n", hres); + ok(hres == S_OK, "getElementsByClassName failed: %08lx\n", hres); ok(collection != NULL, "collection == NULL\n"); test_elem_collection((IUnknown*)collection, types, ARRAY_SIZE(types)); IHTMLElementCollection_Release(collection); @@ -8856,7 +8856,7 @@ static void test_elems(IHTMLDocument2 *doc) };
hres = IHTMLDocument2_get_all(doc, &col); - ok(hres == S_OK, "get_all failed: %08x\n", hres); + ok(hres == S_OK, "get_all failed: %08lx\n", hres); test_elem_collection((IUnknown*)col, all_types, ARRAY_SIZE(all_types)); test_elem_col_item(col, L"x", item_types, ARRAY_SIZE(item_types));
@@ -8871,7 +8871,7 @@ static void test_elems(IHTMLDocument2 *doc) IHTMLElementCollection_Release(col);
hres = IHTMLDocument2_get_images(doc, &collection); - ok(hres == S_OK, "get_images failed: %08x\n", hres); + ok(hres == S_OK, "get_images failed: %08lx\n", hres); if(hres == S_OK) { static const elem_type_t images_types[] = {ET_IMG}; @@ -8881,7 +8881,7 @@ static void test_elems(IHTMLDocument2 *doc) }
hres = IHTMLDocument2_get_links(doc, &collection); - ok(hres == S_OK, "get_links failed: %08x\n", hres); + ok(hres == S_OK, "get_links failed: %08lx\n", hres); if(hres == S_OK) { static const elem_type_t link_types[] = {ET_A,ET_AREA}; @@ -8891,7 +8891,7 @@ static void test_elems(IHTMLDocument2 *doc) }
hres = IHTMLDocument2_get_anchors(doc, &collection); - ok(hres == S_OK, "get_anchors failed: %08x\n", hres); + ok(hres == S_OK, "get_anchors failed: %08lx\n", hres); if(hres == S_OK) { static const elem_type_t anchor_types[] = {ET_A}; @@ -8901,7 +8901,7 @@ static void test_elems(IHTMLDocument2 *doc) }
hres = IHTMLDocument2_get_scripts(doc, &collection); - ok(hres == S_OK, "get_scripts failed: %08x\n", hres); + ok(hres == S_OK, "get_scripts failed: %08lx\n", hres); if(hres == S_OK) { static const elem_type_t script_types[] = {ET_SCRIPT}; test_elem_collection((IUnknown*)collection, script_types, 1); @@ -8947,7 +8947,7 @@ static void test_elems(IHTMLDocument2 *doc) { test_node_name((IUnknown*)node, L"#document"); type = get_node_type((IUnknown*)node); - ok(type == 9, "type=%d, expected 9\n", type); + ok(type == 9, "type=%ld, expected 9\n", type); node2 = test_node_get_parent((IUnknown*)node); IHTMLDOMNode_Release(node); ok(node2 == NULL, "node != NULL\n"); @@ -9007,7 +9007,7 @@ static void test_elems(IHTMLDocument2 *doc) }
type = get_node_type((IUnknown*)select); - ok(type == 1, "type=%d\n", type); + ok(type == 1, "type=%ld\n", type);
IHTMLSelectElement_Release(select);
@@ -9031,7 +9031,7 @@ static void test_elems(IHTMLDocument2 *doc) BSTR type;
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLScriptElement, (void**)&script); - ok(hres == S_OK, "Could not get IHTMLScriptElement interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLScriptElement interface: %08lx\n", hres);
test_elem_language(elem, NULL); test_elem_istextedit(elem, VARIANT_FALSE); @@ -9041,17 +9041,17 @@ static void test_elems(IHTMLDocument2 *doc) VARIANT_BOOL vb;
hres = IHTMLScriptElement_put_type (script, NULL); - ok(hres == S_OK, "put_type failed: %08x\n", hres); + ok(hres == S_OK, "put_type failed: %08lx\n", hres); hres = IHTMLScriptElement_get_type(script, &type); - ok(hres == S_OK, "get_type failed: %08x\n", hres); + ok(hres == S_OK, "get_type failed: %08lx\n", hres); ok(type == NULL, "Unexpected type %s\n", wine_dbgstr_w(type));
type = SysAllocString(L"text/javascript"); hres = IHTMLScriptElement_put_type (script, type); - ok(hres == S_OK, "put_type failed: %08x\n", hres); + ok(hres == S_OK, "put_type failed: %08lx\n", hres); SysFreeString(type); hres = IHTMLScriptElement_get_type(script, &type); - ok(hres == S_OK, "get_type failed: %08x\n", hres); + ok(hres == S_OK, "get_type failed: %08lx\n", hres); ok(!lstrcmpW(type, L"text/javascript"), "Unexpected type %s\n", wine_dbgstr_w(type)); SysFreeString(type);
@@ -9059,23 +9059,23 @@ static void test_elems(IHTMLDocument2 *doc)
/* test defer */ hres = IHTMLScriptElement_put_defer(script, VARIANT_TRUE); - ok(hres == S_OK, "put_defer failed: %08x\n", hres); + ok(hres == S_OK, "put_defer failed: %08lx\n", hres);
hres = IHTMLScriptElement_get_defer(script, &vb); - ok(hres == S_OK, "get_defer failed: %08x\n", hres); - ok(vb == VARIANT_TRUE, "get_defer result is %08x\n", hres); + ok(hres == S_OK, "get_defer failed: %08lx\n", hres); + ok(vb == VARIANT_TRUE, "get_defer result is %08lx\n", hres);
hres = IHTMLScriptElement_put_defer(script, VARIANT_FALSE); - ok(hres == S_OK, "put_defer failed: %08x\n", hres); + ok(hres == S_OK, "put_defer failed: %08lx\n", hres);
str = (BSTR)0xdeadbeef; hres = IHTMLScriptElement_get_src(script, &str); - ok(hres == S_OK, "get_src failed: %08x\n", hres); + ok(hres == S_OK, "get_src failed: %08lx\n", hres); ok(!str, "src = %s\n", wine_dbgstr_w(str));
str = (BSTR)0xdeadbeef; hres = IHTMLScriptElement_get_htmlFor(script, &str); - ok(hres == S_OK, "get_htmlFor failed: %08x\n", hres); + ok(hres == S_OK, "get_htmlFor failed: %08lx\n", hres); ok(!str, "htmlFor = %s\n", wine_dbgstr_w(str)); }
@@ -9090,7 +9090,7 @@ static void test_elems(IHTMLDocument2 *doc) IHTMLInputElement *input;
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLInputElement, (void**)&input); - ok(hres == S_OK, "Could not get IHTMLInputElement: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLInputElement: %08lx\n", hres);
test_elem_id((IUnknown*)elem, L"in"); test_elem_put_id((IUnknown*)elem, L"newin"); @@ -9331,14 +9331,14 @@ static void test_elems(IHTMLDocument2 *doc) ok(!node2, "node2 != NULL\n");
type = get_node_type((IUnknown*)node); - ok(type == 3, "type=%d\n", type); + ok(type == 3, "type=%ld\n", type);
test_node_get_value_str((IUnknown*)node, L"text test"); test_node_put_value_str((IUnknown*)elem, L"test text"); test_node_get_value_str((IUnknown*)node, L"text test");
hres = IHTMLDOMNode_get_attributes(node, &disp); - ok(hres == S_OK, "get_attributes failed: %08x\n", hres); + ok(hres == S_OK, "get_attributes failed: %08lx\n", hres); ok(!disp, "disp != NULL\n");
IHTMLDOMNode_Release(node); @@ -9360,7 +9360,7 @@ static void test_elems(IHTMLDocument2 *doc) IHTMLDOMNode *prev;
type = get_node_type((IUnknown*)node); - ok(type == 3, "type=%d\n", type); + ok(type == 3, "type=%ld\n", type); node2 = node_get_next((IUnknown*)node);
prev = node_get_prev((IUnknown*)node2); @@ -9374,7 +9374,7 @@ static void test_elems(IHTMLDocument2 *doc) ok(node != NULL, "node == NULL\n"); if(node) { type = get_node_type((IUnknown*)node); - ok(type == 8, "type=%d\n", type); + ok(type == 8, "type=%ld\n", type);
test_elem_id((IUnknown*)node, NULL); ok(iface_cmp((IUnknown*)node2, (IUnknown*)node), "node2 != node\n"); @@ -9383,21 +9383,21 @@ static void test_elems(IHTMLDocument2 *doc) }
hres = IHTMLDOMChildrenCollection_item(child_col, length - 1, NULL); - ok(hres == E_POINTER, "item failed: %08x, expected E_POINTER\n", hres); + ok(hres == E_POINTER, "item failed: %08lx, expected E_POINTER\n", hres);
hres = IHTMLDOMChildrenCollection_item(child_col, length, NULL); - ok(hres == E_POINTER, "item failed: %08x, expected E_POINTER\n", hres); + ok(hres == E_POINTER, "item failed: %08lx, expected E_POINTER\n", hres);
hres = IHTMLDOMChildrenCollection_item(child_col, 6000, &disp); - ok(hres == E_INVALIDARG, "item failed: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "item failed: %08lx, expected E_INVALIDARG\n", hres);
hres = IHTMLDOMChildrenCollection_item(child_col, length, &disp); - ok(hres == E_INVALIDARG, "item failed: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "item failed: %08lx, expected E_INVALIDARG\n", hres);
test_child_col_disp(child_col);
hres = IHTMLDOMChildrenCollection_get__newEnum(child_col, &enum_unk); - ok(hres == S_OK, "get__newEnum failed: %08x\n", hres); + ok(hres == S_OK, "get__newEnum failed: %08lx\n", hres);
test_enum_children(enum_unk, length);
@@ -9435,18 +9435,18 @@ static void test_elems(IHTMLDocument2 *doc)
disp = NULL; hres = IHTMLDocument2_get_Script(doc, &disp); - ok(hres == S_OK, "get_Script failed: %08x\n", hres); + ok(hres == S_OK, "get_Script failed: %08lx\n", hres); if(hres == S_OK) { IDispatchEx *dispex; hres = IDispatch_QueryInterface(disp, &IID_IDispatchEx, (void**)&dispex); - ok(hres == S_OK, "IDispatch_QueryInterface failed: %08x\n", hres); + ok(hres == S_OK, "IDispatch_QueryInterface failed: %08lx\n", hres); if(hres == S_OK) { DISPID pid = -1; BSTR str = SysAllocString(L"Testing"); hres = IDispatchEx_GetDispID(dispex, str, 1, &pid); - ok(hres == S_OK, "GetDispID failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID failed: %08lx\n", hres); ok(pid != -1, "pid == -1\n"); SysFreeString(str); IDispatchEx_Release(dispex); @@ -9472,10 +9472,10 @@ static void test_elems(IHTMLDocument2 *doc) IHTMLElement_Release(elem);
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3); - ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08lx\n", hres);
hres = IHTMLDocument3_recalc(doc3, VARIANT_TRUE); - ok(hres == S_OK, "recalc failed: %08x\n", hres); + ok(hres == S_OK, "recalc failed: %08lx\n", hres);
IHTMLDocument3_Release(doc3);
@@ -9562,7 +9562,7 @@ static void test_attr(IHTMLDocument2 *doc, IHTMLElement *elem) set_dispex_value((IUnknown*)elem, L"dispprop", &v); attr = get_elem_attr_node((IUnknown*)elem, L"dispprop", TRUE); get_attr_node_value(attr, &v, VT_I4); - ok(V_I4(&v) == 100, "V_I4(v) = %d\n", V_I4(&v)); + ok(V_I4(&v) == 100, "V_I4(v) = %ld\n", V_I4(&v)); test_attr_specified(attr, VARIANT_TRUE);
V_VT(&v) = VT_I4; @@ -9570,7 +9570,7 @@ static void test_attr(IHTMLDocument2 *doc, IHTMLElement *elem) put_attr_node_value(attr, v);
get_attr_node_value(attr, &v, VT_I4); - ok(V_I4(&v) == 150, "V_I4(v) = %d\n", V_I4(&v)); + ok(V_I4(&v) == 150, "V_I4(v) = %ld\n", V_I4(&v));
put_attr_value(attr, L"160"); get_attr_node_value(attr, &v, VT_BSTR); @@ -9601,7 +9601,7 @@ static void test_attr(IHTMLDocument2 *doc, IHTMLElement *elem) put_attr_node_value(attr, v);
get_attr_node_value(attr, &v, VT_I4); - ok(V_I4(&v) == 1, "nodeValue = %d\n", V_I4(&v)); + ok(V_I4(&v) == 1, "nodeValue = %ld\n", V_I4(&v)); test_attr_value(attr, L"1");
V_VT(&v) = VT_EMPTY; @@ -9617,7 +9617,7 @@ static void test_attr(IHTMLDocument2 *doc, IHTMLElement *elem) elem4 = get_elem4_iface((IUnknown*)elem);
hres = IHTMLElement4_setAttributeNode(elem4, attr, &attr2); - ok(hres == S_OK, "setAttributeNode failed: %08x\n", hres); + ok(hres == S_OK, "setAttributeNode failed: %08lx\n", hres); ok(!attr2, "attr2 != NULL\n");
test_elem_attr(elem, L"Test", L"testing"); @@ -9632,7 +9632,7 @@ static void test_attr(IHTMLDocument2 *doc, IHTMLElement *elem) put_attr_value(attr3, L"replace test");
hres = IHTMLElement4_setAttributeNode(elem4, attr3, &attr2); - ok(hres == S_OK, "setAttributeNode failed: %08x\n", hres); + ok(hres == S_OK, "setAttributeNode failed: %08lx\n", hres); ok(iface_cmp((IUnknown*)attr2, (IUnknown*)attr), "attr2 != attr\n"); IHTMLDOMAttribute_Release(attr2);
@@ -9656,12 +9656,12 @@ static void test_attr(IHTMLDocument2 *doc, IHTMLElement *elem)
/* Attached attributes cause errors. */ hres = IHTMLElement4_setAttributeNode(elem4, attr3, &attr2); - ok(hres == E_INVALIDARG, "setAttributeNode failed: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "setAttributeNode failed: %08lx, expected E_INVALIDARG\n", hres); IHTMLDOMAttribute_Release(attr3);
attr2 = get_elem_attr_node((IUnknown*)elem, L"id", TRUE); hres = IHTMLElement4_setAttributeNode(elem4, attr2, &attr3); - ok(hres == E_INVALIDARG, "setAttributeNode failed: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "setAttributeNode failed: %08lx, expected E_INVALIDARG\n", hres); IHTMLDOMAttribute_Release(attr2);
IHTMLElement4_Release(elem4); @@ -9702,7 +9702,7 @@ static IHTMLElementCollection *_doc_get_elems_by_name(unsigned line, IHTMLDocume HRESULT hres;
hres = IHTMLDocument3_getElementsByName(doc3, str, &col); - ok_(__FILE__,line)(hres == S_OK, "getElementsByName failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "getElementsByName failed: %08lx\n", hres); ok_(__FILE__,line)(col != NULL, "col = NULL\n");
IHTMLDocument3_Release(doc3); @@ -9730,8 +9730,8 @@ static void test_elem_names(IHTMLDocument2 *doc) /* case insensivity test */ col = doc_get_elems_by_name(doc, L"Xxx"); hres = IHTMLElementCollection_get_length(col, &len); - ok(hres == S_OK, "get_length failed: %08x\n", hres); - todo_wine ok(len == 1, "len = %d\n", len); + ok(hres == S_OK, "get_length failed: %08lx\n", hres); + todo_wine ok(len == 1, "len = %ld\n", len); IHTMLElementCollection_Release(col); }
@@ -9996,7 +9996,7 @@ static void test_create_elems(IHTMLDocument2 *doc) elem = test_create_elem(doc, L"TEST"); test_elem_tag((IUnknown*)elem, L"TEST"); type = get_node_type((IUnknown*)elem); - ok(type == 1, "type=%d\n", type); + ok(type == 1, "type=%ld\n", type); test_ifaces((IUnknown*)elem, elem_iids); test_disp((IUnknown*)elem, &DIID_DispHTMLGenericElement, &CLSID_HTMLGenericElement, L"[object]"); test_elem_source_index(elem, -1); @@ -10010,14 +10010,14 @@ static void test_create_elems(IHTMLDocument2 *doc) IHTMLElement_Release(elem2);
hres = IHTMLElement_get_all(body, &disp); - ok(hres == S_OK, "get_all failed: %08x\n", hres); + ok(hres == S_OK, "get_all failed: %08lx\n", hres); test_elem_collection((IUnknown*)disp, types1, ARRAY_SIZE(types1)); IDispatch_Release(disp);
test_node_remove_child((IUnknown*)body, node);
hres = IHTMLElement_get_all(body, &disp); - ok(hres == S_OK, "get_all failed: %08x\n", hres); + ok(hres == S_OK, "get_all failed: %08lx\n", hres); test_elem_collection((IUnknown*)disp, NULL, 0); IDispatch_Release(disp); test_node_has_child((IUnknown*)body, VARIANT_FALSE); @@ -10066,11 +10066,11 @@ static void test_create_elems(IHTMLDocument2 *doc) str = SysAllocString(L"testing"); hres = IHTMLDocument5_createComment(doc5, str, &comment); SysFreeString(str); - ok(hres == S_OK, "createComment failed: %08x\n", hres); + ok(hres == S_OK, "createComment failed: %08lx\n", hres); if(hres == S_OK) { type = get_node_type((IUnknown*)comment); - ok(type == 8, "type=%d, expected 8\n", type); + ok(type == 8, "type=%ld, expected 8\n", type);
test_node_get_value_str((IUnknown*)comment, L"testing"); test_elem_title((IUnknown*)comment, NULL); @@ -10119,7 +10119,7 @@ static void test_replacechild_elems(IHTMLDocument2 *doc) nodeBody = _get_node_iface(__LINE__, (IUnknown *)body);
hres = IHTMLDOMNode_replaceChild(nodeBody, node3, node2, &nodeNew); - ok(hres == S_OK, "Expected S_OK, got 0x%08x\n", hres); + ok(hres == S_OK, "Expected S_OK, got 0x%08lx\n", hres);
test_elem_innertext(body, L"replaced");
@@ -10151,7 +10151,7 @@ static void test_noscript(IHTMLDocument2 *doc) };
hres = IHTMLDocument2_get_all(doc, &col); - ok(hres == S_OK, "get_all failed: %08x\n", hres); + ok(hres == S_OK, "get_all failed: %08lx\n", hres); test_elem_collection((IUnknown*)col, all_types, ARRAY_SIZE(all_types)); IHTMLElementCollection_Release(col);
@@ -10188,11 +10188,11 @@ static void test_null_write(IHTMLDocument2 *doc)
hres = IHTMLDocument2_write(doc, NULL); ok(hres == S_OK, - "Expected IHTMLDocument2::write to return S_OK, got 0x%08x\n", hres); + "Expected IHTMLDocument2::write to return S_OK, got 0x%08lx\n", hres);
hres = IHTMLDocument2_writeln(doc, NULL); ok(hres == S_OK, - "Expected IHTMLDocument2::writeln to return S_OK, got 0x%08x\n", hres); + "Expected IHTMLDocument2::writeln to return S_OK, got 0x%08lx\n", hres); }
static void test_create_stylesheet(IHTMLDocument2 *doc) @@ -10223,7 +10223,7 @@ static void test_create_stylesheet(IHTMLDocument2 *doc) test_doc_all(doc, all_types, ARRAY_SIZE(all_types));
hres = IHTMLDocument2_createStyleSheet(doc, NULL, -1, &stylesheet); - ok(hres == S_OK, "createStyleSheet failed: %08x\n", hres); + ok(hres == S_OK, "createStyleSheet failed: %08lx\n", hres);
test_doc_all(doc, all_types2, ARRAY_SIZE(all_types2));
@@ -10234,20 +10234,20 @@ static void test_create_stylesheet(IHTMLDocument2 *doc)
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLStyleElement, (void**)&style_elem); IHTMLElement_Release(elem); - ok(hres == S_OK, "Could not get IHTMLStyleElement iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLStyleElement iface: %08lx\n", hres);
stylesheet2 = NULL; hres = IHTMLStyleElement_get_styleSheet(style_elem, &stylesheet2); - ok(hres == S_OK, "get_styleSheet failed: %08x\n", hres); + ok(hres == S_OK, "get_styleSheet failed: %08lx\n", hres); ok(stylesheet2 != NULL, "stylesheet2 == NULL\n"); ok(iface_cmp((IUnknown*)stylesheet, (IUnknown*)stylesheet2), "stylesheet != stylesheet2\n"); IHTMLStyleSheet_Release(stylesheet2);
hres = IHTMLStyleElement_QueryInterface(style_elem, &IID_IHTMLStyleElement2, (void**)&style_elem2); - ok(hres == S_OK, "Could not get IHTMLStyleElement2: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLStyleElement2: %08lx\n", hres);
hres = IHTMLStyleElement2_get_sheet(style_elem2, &stylesheet2); - ok(hres == S_OK, "get_styleSheet failed: %08x\n", hres); + ok(hres == S_OK, "get_styleSheet failed: %08lx\n", hres); ok(stylesheet2 != NULL, "stylesheet2 == NULL\n"); ok(iface_cmp((IUnknown*)stylesheet, (IUnknown*)stylesheet2), "stylesheet != stylesheet2\n"); IHTMLStyleSheet_Release(stylesheet2); @@ -10264,10 +10264,10 @@ static void test_exec(IUnknown *unk, const GUID *grpid, DWORD cmdid, VARIANT *in HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IOleCommandTarget, (void**)&cmdtrg); - ok(hres == S_OK, "Could not get IOleCommandTarget interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IOleCommandTarget interface: %08lx\n", hres);
hres = IOleCommandTarget_Exec(cmdtrg, grpid, cmdid, 0, in, out); - ok(hres == S_OK, "Exec failed: %08x\n", hres); + ok(hres == S_OK, "Exec failed: %08lx\n", hres);
IOleCommandTarget_Release(cmdtrg); } @@ -10299,7 +10299,7 @@ static void test_indent(IHTMLDocument2 *doc) };
hres = IHTMLDocument2_get_all(doc, &col); - ok(hres == S_OK, "get_all failed: %08x\n", hres); + ok(hres == S_OK, "get_all failed: %08lx\n", hres); test_elem_collection((IUnknown*)col, all_types, ARRAY_SIZE(all_types)); IHTMLElementCollection_Release(col);
@@ -10308,7 +10308,7 @@ static void test_indent(IHTMLDocument2 *doc) IHTMLTxtRange_Release(range);
hres = IHTMLDocument2_get_all(doc, &col); - ok(hres == S_OK, "get_all failed: %08x\n", hres); + ok(hres == S_OK, "get_all failed: %08lx\n", hres); test_elem_collection((IUnknown*)col, indent_types, ARRAY_SIZE(indent_types)); IHTMLElementCollection_Release(col); } @@ -10327,7 +10327,7 @@ static void test_cond_comment(IHTMLDocument2 *doc) };
hres = IHTMLDocument2_get_all(doc, &col); - ok(hres == S_OK, "get_all failed: %08x\n", hres); + ok(hres == S_OK, "get_all failed: %08lx\n", hres); test_elem_collection((IUnknown*)col, all_types, ARRAY_SIZE(all_types)); IHTMLElementCollection_Release(col); } @@ -10366,12 +10366,12 @@ static void test_frame(IDispatch *disp, const WCHAR *exp_id) HRESULT hres;
hres = IDispatch_QueryInterface(disp, &IID_IHTMLWindow4, (void**)&frame); - ok(hres == S_OK, "Could not get IHTMLWindow4 interface: 0x%08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLWindow4 interface: 0x%08lx\n", hres); if(FAILED(hres)) return;
hres = IHTMLWindow4_get_frameElement(frame, &frame_elem); - ok(hres == S_OK, "IHTMLWindow4_get_frameElement failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLWindow4_get_frameElement failed: 0x%08lx\n", hres); IHTMLWindow4_Release(frame); if(FAILED(hres)) return; @@ -10382,42 +10382,42 @@ static void test_frame(IDispatch *disp, const WCHAR *exp_id) IHTMLFrameBase_Release(frame_elem);
hres = IDispatch_QueryInterface(disp, &IID_IHTMLWindow2, (void**)&frame2); - ok(hres == S_OK, "Could not get IHTMLWindow2 interface: 0x%08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLWindow2 interface: 0x%08lx\n", hres); if(FAILED(hres)) return;
hres = IHTMLWindow2_get_parent(frame2, &parent); - ok(hres == S_OK, "IHTMLWindow2_get_parent failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLWindow2_get_parent failed: 0x%08lx\n", hres); if(FAILED(hres)){ IHTMLWindow2_Release(frame2); return; }
hres = IHTMLWindow2_QueryInterface(frame2, &IID_IObjectIdentity, (void**)&obj_ident); - ok(hres == S_OK, "Could not get IObjectIdentity interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IObjectIdentity interface: %08lx\n", hres); hres = IHTMLWindow2_QueryInterface(frame2, &IID_ITravelLogClient, (void**)&tlc); if(hres == E_NOINTERFACE) { win_skip("IID_ITravelLogClient not available\n"); tlc = NULL; }else { - ok(hres == S_OK, "Could not get ITravelLogClient interface: %08x\n", hres); + ok(hres == S_OK, "Could not get ITravelLogClient interface: %08lx\n", hres);
hres = IObjectIdentity_IsEqualObject(obj_ident, (IUnknown*)tlc); - ok(hres == S_OK, "IsEqualObject returned: 0x%08x\n", hres); + ok(hres == S_OK, "IsEqualObject returned: 0x%08lx\n", hres); ITravelLogClient_Release(tlc); }
hres = IObjectIdentity_IsEqualObject(obj_ident, (IUnknown*)obj_ident); - ok(hres == S_OK, "IsEqualObject returned: 0x%08x\n", hres); + ok(hres == S_OK, "IsEqualObject returned: 0x%08lx\n", hres); hres = IObjectIdentity_IsEqualObject(obj_ident, (IUnknown*)parent); - ok(hres == S_FALSE, "IsEqualObject returned: 0x%08x\n", hres); + ok(hres == S_FALSE, "IsEqualObject returned: 0x%08lx\n", hres); hres = IObjectIdentity_IsEqualObject(obj_ident, &obj_ident_test); - ok(hres == E_NOINTERFACE, "IsEqualObject returned: 0x%08x\n", hres); + ok(hres == E_NOINTERFACE, "IsEqualObject returned: 0x%08lx\n", hres);
IObjectIdentity_Release(obj_ident);
hres = IHTMLWindow2_get_document(parent, &parent_doc); - ok(hres == S_OK, "IHTMLWindow2_get_document failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLWindow2_get_document failed: 0x%08lx\n", hres); IHTMLWindow2_Release(parent); if(FAILED(hres)){ IHTMLWindow2_Release(frame2); @@ -10429,13 +10429,13 @@ static void test_frame(IDispatch *disp, const WCHAR *exp_id)
/* test get_top */ hres = IHTMLWindow2_get_top(frame2, &top); - ok(hres == S_OK, "IHTMLWindow2_get_top failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLWindow2_get_top failed: 0x%08lx\n", hres); IHTMLWindow2_Release(frame2); if(FAILED(hres)) return;
hres = IHTMLWindow2_get_document(top, &top_doc); - ok(hres == S_OK, "IHTMLWindow2_get_document failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLWindow2_get_document failed: 0x%08lx\n", hres); IHTMLWindow2_Release(top); if(FAILED(hres)) return; @@ -10452,14 +10452,14 @@ static void test_frames_collection(IHTMLFramesCollection2 *frames, const WCHAR *
/* test result length */ hres = IHTMLFramesCollection2_get_length(frames, &length); - ok(hres == S_OK, "IHTMLFramesCollection2_get_length failed: 0x%08x\n", hres); - ok(length == 3, "IHTMLFramesCollection2_get_length should have been 3, was: %d\n", length); + ok(hres == S_OK, "IHTMLFramesCollection2_get_length failed: 0x%08lx\n", hres); + ok(length == 3, "IHTMLFramesCollection2_get_length should have been 3, was: %ld\n", length);
/* test first frame */ V_VT(&index_var) = VT_I4; V_I4(&index_var) = 0; hres = IHTMLFramesCollection2_item(frames, &index_var, &result_var); - ok(hres == S_OK, "IHTMLFramesCollection2_item failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLFramesCollection2_item failed: 0x%08lx\n", hres); if(SUCCEEDED(hres)) { ok(V_VT(&result_var) == VT_DISPATCH, "result type should have been VT_DISPATCH, was: 0x%x\n", V_VT(&result_var)); test_frame((IDispatch*)V_DISPATCH(&result_var), L"fr1"); @@ -10469,7 +10469,7 @@ static void test_frames_collection(IHTMLFramesCollection2 *frames, const WCHAR * /* test second frame */ V_I4(&index_var) = 1; hres = IHTMLFramesCollection2_item(frames, &index_var, &result_var); - ok(hres == S_OK, "IHTMLFramesCollection2_item failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLFramesCollection2_item failed: 0x%08lx\n", hres); if(SUCCEEDED(hres)) { ok(V_VT(&result_var) == VT_DISPATCH, "result type should have been VT_DISPATCH, was: 0x%x\n", V_VT(&result_var)); test_frame((IDispatch*)V_DISPATCH(&result_var), L"fr2"); @@ -10480,14 +10480,14 @@ static void test_frames_collection(IHTMLFramesCollection2 *frames, const WCHAR * V_I4(&index_var) = 3; hres = IHTMLFramesCollection2_item(frames, &index_var, &result_var); ok(hres == DISP_E_MEMBERNOTFOUND, "IHTMLFramesCollection2_item should have" - "failed with DISP_E_MEMBERNOTFOUND, instead: 0x%08x\n", hres); + "failed with DISP_E_MEMBERNOTFOUND, instead: 0x%08lx\n", hres); VariantClear(&result_var);
/* string argument (element id lookup) */ V_VT(&index_var) = VT_BSTR; V_BSTR(&index_var) = SysAllocString(frid); hres = IHTMLFramesCollection2_item(frames, &index_var, &result_var); - ok(hres == S_OK, "IHTMLFramesCollection2_item failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLFramesCollection2_item failed: 0x%08lx\n", hres); if(SUCCEEDED(hres)) { ok(V_VT(&result_var) == VT_DISPATCH, "result type should have been VT_DISPATCH, was: 0x%x\n", V_VT(&result_var)); test_frame(V_DISPATCH(&result_var), frid); @@ -10500,7 +10500,7 @@ static void test_frames_collection(IHTMLFramesCollection2 *frames, const WCHAR * V_BOOL(&index_var) = VARIANT_TRUE; hres = IHTMLFramesCollection2_item(frames, &index_var, &result_var); ok(hres == E_INVALIDARG, "IHTMLFramesCollection2_item should have" - "failed with E_INVALIDARG, instead: 0x%08x\n", hres); + "failed with E_INVALIDARG, instead: 0x%08lx\n", hres); VariantClear(&result_var); }
@@ -10517,7 +10517,7 @@ static void test_frameset(IHTMLDocument2 *doc) /* test using IHTMLFramesCollection object */
hres = IHTMLWindow2_get_frames(window, &frames); - ok(hres == S_OK, "IHTMLWindow2_get_frames failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLWindow2_get_frames failed: 0x%08lx\n", hres); if(FAILED(hres)) return;
@@ -10525,7 +10525,7 @@ static void test_frameset(IHTMLDocument2 *doc) IHTMLFramesCollection2_Release(frames);
hres = IHTMLDocument2_get_frames(doc, &frames); - ok(hres == S_OK, "IHTMLDocument2_get_frames failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLDocument2_get_frames failed: 0x%08lx\n", hres); if(FAILED(hres)) return;
@@ -10546,13 +10546,13 @@ static void test_frameset(IHTMLDocument2 *doc)
str = SysAllocString(L"nm1"); hres = IHTMLDocument6_getElementById(doc6, str, &elem2); - ok(hres == S_OK, "getElementById failed: %08x\n", hres); + ok(hres == S_OK, "getElementById failed: %08lx\n", hres); ok(!elem2, "elem = %p\n", elem2); SysFreeString(str);
str = SysAllocString(L"fr1"); hres = IHTMLDocument6_getElementById(doc6, str, &elem2); - ok(hres == S_OK, "getElementById failed: %08x\n", hres); + ok(hres == S_OK, "getElementById failed: %08lx\n", hres); ok(elem2 != NULL, "elem2 is NULL\n"); test_elem_id((IUnknown*)elem2, L"fr1"); SysFreeString(str); @@ -10587,11 +10587,11 @@ static IHTMLDocument2 *create_docfrag(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3); - ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08lx\n", hres);
hres = IHTMLDocument3_createDocumentFragment(doc3, &frag); IHTMLDocument3_Release(doc3); - ok(hres == S_OK, "createDocumentFragment failed: %08x\n", hres); + ok(hres == S_OK, "createDocumentFragment failed: %08lx\n", hres); ok(frag != NULL, "frag == NULL\n");
return frag; @@ -10620,12 +10620,12 @@ static void test_docfrag(IHTMLDocument2 *doc)
body = (void*)0xdeadbeef; hres = IHTMLDocument2_get_body(frag, &body); - ok(hres == S_OK, "get_body failed: %08x\n", hres); + ok(hres == S_OK, "get_body failed: %08lx\n", hres); ok(!body, "body != NULL\n");
location = (void*)0xdeadbeef; hres = IHTMLDocument2_get_location(frag, &location); - ok(hres == E_UNEXPECTED, "get_location failed: %08x\n", hres); + ok(hres == E_UNEXPECTED, "get_location failed: %08lx\n", hres); ok(location == (void*)0xdeadbeef, "location changed\n");
br = test_create_elem(doc, L"BR"); @@ -10642,7 +10642,7 @@ static void test_docfrag(IHTMLDocument2 *doc) IHTMLElement_Release(div);
hres = IHTMLDocument2_get_all(doc, &col); - ok(hres == S_OK, "get_all failed: %08x\n", hres); + ok(hres == S_OK, "get_all failed: %08lx\n", hres); test_elem_collection((IUnknown*)col, all_types, ARRAY_SIZE(all_types)); IHTMLElementCollection_Release(col);
@@ -10674,12 +10674,12 @@ static void test_quirks_mode_offsetHeight(IHTMLDocument2 *doc) LONG oh;
hres = IHTMLDocument2_get_body(doc, &elem); - ok(hres == S_OK, "get_body fauled: %08x\n", hres); + ok(hres == S_OK, "get_body fauled: %08lx\n", hres);
/* body.offsetHeight value depends on window size in quirks mode */ hres = IHTMLElement_get_offsetHeight(elem, &oh); - ok(hres == S_OK, "get_offsetHeight failed: %08x\n", hres); - todo_wine ok(oh == 500, "offsetHeight = %d\n", oh); + ok(hres == S_OK, "get_offsetHeight failed: %08lx\n", hres); + todo_wine ok(oh == 500, "offsetHeight = %ld\n", oh); IHTMLElement_Release(elem); }
@@ -10715,7 +10715,7 @@ static HRESULT WINAPI PropertyNotifySink_OnChanged(IPropertyNotifySink *iface, D HRESULT hres;
hres = IHTMLDocument2_get_readyState(notif_doc, &state); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres);
if(!lstrcmpW(state, L"complete")) doc_complete = TRUE; @@ -11053,23 +11053,23 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum HRESULT hres;
hres = IOleDocumentView_QueryInterface(pViewToActivate, &IID_IOleDocument, (void**)&document); - ok(hres == S_OK, "could not get IOleDocument: %08x\n", hres); + ok(hres == S_OK, "could not get IOleDocument: %08lx\n", hres);
hres = IOleDocument_CreateView(document, &InPlaceSite, NULL, 0, &view); IOleDocument_Release(document); - ok(hres == S_OK, "CreateView failed: %08x\n", hres); + ok(hres == S_OK, "CreateView failed: %08lx\n", hres);
hres = IOleDocumentView_SetInPlaceSite(view, &InPlaceSite); - ok(hres == S_OK, "SetInPlaceSite failed: %08x\n", hres); + ok(hres == S_OK, "SetInPlaceSite failed: %08lx\n", hres);
hres = IOleDocumentView_UIActivate(view, TRUE); - ok(hres == S_OK, "UIActivate failed: %08x\n", hres); + ok(hres == S_OK, "UIActivate failed: %08lx\n", hres);
hres = IOleDocumentView_SetRect(view, &rect); - ok(hres == S_OK, "SetRect failed: %08x\n", hres); + ok(hres == S_OK, "SetRect failed: %08lx\n", hres);
hres = IOleDocumentView_Show(view, TRUE); - ok(hres == S_OK, "Show failed: %08x\n", hres); + ok(hres == S_OK, "Show failed: %08lx\n", hres);
return S_OK; } @@ -11111,19 +11111,19 @@ static void set_client_site(IHTMLDocument2 *doc, BOOL set) }
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleObject, (void**)&oleobj); - ok(hres == S_OK, "Could not et IOleObject: %08x\n", hres); + ok(hres == S_OK, "Could not et IOleObject: %08lx\n", hres);
hres = IOleObject_SetClientSite(oleobj, set ? &ClientSite : NULL); - ok(hres == S_OK, "SetClientSite failed: %08x\n", hres); + ok(hres == S_OK, "SetClientSite failed: %08lx\n", hres);
if(set) { IHlinkTarget *hlink;
hres = IOleObject_QueryInterface(oleobj, &IID_IHlinkTarget, (void**)&hlink); - ok(hres == S_OK, "Could not get IHlinkTarget iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHlinkTarget iface: %08lx\n", hres);
hres = IHlinkTarget_Navigate(hlink, 0, NULL); - ok(hres == S_OK, "Navgate failed: %08x\n", hres); + ok(hres == S_OK, "Navgate failed: %08lx\n", hres);
IHlinkTarget_Release(hlink); } @@ -11149,10 +11149,10 @@ static IHTMLDocument2 *create_doc_with_string(const char *str) mem = GlobalAlloc(0, len); memcpy(mem, str, len); hr = CreateStreamOnHGlobal(mem, TRUE, &stream); - ok(hr == S_OK, "Failed to create a stream, hr %#x.\n", hr); + ok(hr == S_OK, "Failed to create a stream, hr %#lx.\n", hr);
hr = IHTMLDocument2_QueryInterface(doc, &IID_IPersistStreamInit, (void**)&init); - ok(hr == S_OK, "Failed to get IPersistStreamInit, hr %#x.\n", hr); + ok(hr == S_OK, "Failed to get IPersistStreamInit, hr %#lx.\n", hr);
IPersistStreamInit_Load(init, stream); IPersistStreamInit_Release(init); @@ -11169,15 +11169,15 @@ static void do_advise(IUnknown *unk, REFIID riid, IUnknown *unk_advise) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IConnectionPointContainer, (void**)&container); - ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08lx\n", hres);
hres = IConnectionPointContainer_FindConnectionPoint(container, riid, &cp); IConnectionPointContainer_Release(container); - ok(hres == S_OK, "FindConnectionPoint failed: %08x\n", hres); + ok(hres == S_OK, "FindConnectionPoint failed: %08lx\n", hres);
hres = IConnectionPoint_Advise(cp, unk_advise, &cookie); IConnectionPoint_Release(cp); - ok(hres == S_OK, "Advise failed: %08x\n", hres); + ok(hres == S_OK, "Advise failed: %08lx\n", hres); }
typedef void (*domtest_t)(IHTMLDocument2*); @@ -11205,7 +11205,7 @@ static void run_domtest(const char *str, domtest_t test) set_client_site(doc, FALSE); ref = IHTMLDocument2_Release(doc); ok(!ref || broken(ref == 1), /* Vista */ - "ref = %d\n", ref); + "ref = %ld\n", ref); }
static float expected_document_mode; @@ -11224,11 +11224,11 @@ static void test_document_mode(IHTMLDocument2 *doc2) win_skip("IHTMLDocument6 not supported\n"); return; } - ok(hres == S_OK, "Could not get IHTMLDocument6 interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLDocument6 interface: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLDocument6_get_documentMode(doc, &v); - ok(hres == S_OK, "get_documentMode failed: %08x\n", hres); + ok(hres == S_OK, "get_documentMode failed: %08lx\n", hres); ok(V_VT(&v) == VT_R4, "V_VT(documentMode) = %u\n", V_VT(&v)); ok(V_R4(&v) == expected_document_mode, "documentMode = %f\n", V_R4(&v)); IHTMLDocument6_Release(doc); @@ -11237,10 +11237,10 @@ static void test_document_mode(IHTMLDocument2 *doc2)
hres = IHTMLDocument2_QueryInterface(doc_node, &IID_IEventTarget, (void**)&event_target); if(expected_document_mode >= 9) { - ok(hres == S_OK, "Could not get IEventTarget interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IEventTarget interface: %08lx\n", hres); IEventTarget_Release(event_target); }else { - ok(hres == E_NOINTERFACE, "QI(IEventTarget) returned %08x\n", hres); + ok(hres == E_NOINTERFACE, "QI(IEventTarget) returned %08lx\n", hres); }
IHTMLDocument2_Release(doc_node); @@ -11250,10 +11250,10 @@ static void test_document_mode(IHTMLDocument2 *doc2)
hres = IHTMLElement_QueryInterface(body, &IID_IEventTarget, (void**)&event_target); if(expected_document_mode >= 9) { - ok(hres == S_OK, "Could not get IEventTarget interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IEventTarget interface: %08lx\n", hres); IEventTarget_Release(event_target); }else { - ok(hres == E_NOINTERFACE, "QI(IEventTarget) returned %08x\n", hres); + ok(hres == E_NOINTERFACE, "QI(IEventTarget) returned %08lx\n", hres); }
IHTMLElement_Release(body); diff --git a/dlls/mshtml/tests/events.c b/dlls/mshtml/tests/events.c index cf6018687eb..4ceee799dd4 100644 --- a/dlls/mshtml/tests/events.c +++ b/dlls/mshtml/tests/events.c @@ -159,23 +159,23 @@ static void _test_disp(unsigned line, IUnknown *unk, const IID *diid) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IDispatchEx, (void**)&dispex); - ok_(__FILE__,line) (hres == S_OK, "Could not get IDispatch: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IDispatch: %08lx\n", hres); if(FAILED(hres)) return;
ticnt = 0xdeadbeef; hres = IDispatchEx_GetTypeInfoCount(dispex, &ticnt); - ok_(__FILE__,line) (hres == S_OK, "GetTypeInfoCount failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "GetTypeInfoCount failed: %08lx\n", hres); ok_(__FILE__,line) (ticnt == 1, "ticnt=%u\n", ticnt);
hres = IDispatchEx_GetTypeInfo(dispex, 0, 0, &typeinfo); - ok_(__FILE__,line) (hres == S_OK, "GetTypeInfo failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "GetTypeInfo failed: %08lx\n", hres);
if(SUCCEEDED(hres)) { TYPEATTR *type_attr;
hres = ITypeInfo_GetTypeAttr(typeinfo, &type_attr); - ok_(__FILE__,line) (hres == S_OK, "GetTypeAttr failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "GetTypeAttr failed: %08lx\n", hres); if(diid) ok_(__FILE__,line) (IsEqualGUID(&type_attr->guid, diid), "unexpected guid %s\n", wine_dbgstr_guid(&type_attr->guid)); @@ -194,7 +194,7 @@ static IHTMLDocument3 *_get_doc3_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLDocument3, (void**)&doc3); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDocument3 iface: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLDocument3 iface: %08lx\n", hres);
return doc3; } @@ -206,7 +206,7 @@ static IHTMLElement *_get_elem_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLElement, (void**)&elem); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement iface: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement iface: %08lx\n", hres);
return elem; } @@ -218,7 +218,7 @@ static IHTMLElement2 *_get_elem2_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLElement2, (void**)&elem2); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement2 iface: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement2 iface: %08lx\n", hres);
return elem2; } @@ -230,7 +230,7 @@ static IHTMLElement3 *_get_elem3_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLElement3, (void**)&elem3); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement3 iface: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement3 iface: %08lx\n", hres);
return elem3; } @@ -242,7 +242,7 @@ static IHTMLElement4 *_get_elem4_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLElement4, (void**)&elem4); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement4 iface: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement4 iface: %08lx\n", hres);
return elem4; } @@ -254,7 +254,7 @@ static IHTMLIFrameElement *_get_iframe_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLIFrameElement, (void**)&iframe); - ok_(__FILE__,line)(hres == S_OK, "QueryInterface(IID_IHTMLIFrameElement) failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "QueryInterface(IID_IHTMLIFrameElement) failed: %08lx\n", hres);
return iframe; } @@ -266,7 +266,7 @@ static IHTMLElement *_doc_get_body(unsigned line, IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_body(doc, &body); - ok_(__FILE__,line) (hres == S_OK, "get_body failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_body failed: %08lx\n", hres); ok_(__FILE__,line) (body != NULL, "body == NULL\n");
return body; @@ -284,7 +284,7 @@ static IHTMLElement *_get_elem_id(unsigned line, IHTMLDocument2 *doc, const WCHA hres = IHTMLDocument3_getElementById(doc3, str, &elem); SysFreeString(str); IHTMLDocument3_Release(doc3); - ok_(__FILE__,line) (hres == S_OK, "getElementById failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "getElementById failed: %08lx\n", hres); ok_(__FILE__,line) (elem != NULL, "elem == NULL\n");
return elem; @@ -299,7 +299,7 @@ static void _test_elem_tag(unsigned line, IUnknown *unk, const WCHAR *extag)
hres = IHTMLElement_get_tagName(elem, &tag); IHTMLElement_Release(elem); - ok_(__FILE__, line) (hres == S_OK, "get_tagName failed: %08x\n", hres); + ok_(__FILE__, line) (hres == S_OK, "get_tagName failed: %08lx\n", hres); ok_(__FILE__, line) (!lstrcmpW(tag, extag), "got tag: %s, expected %s\n", wine_dbgstr_w(tag), wine_dbgstr_w(extag));
SysFreeString(tag); @@ -312,7 +312,7 @@ static IHTMLEventObj *_get_event_obj(unsigned line) HRESULT hres;
hres = IHTMLWindow2_get_event(window, &event); - ok_(__FILE__,line) (hres == S_OK, "get_event failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_event failed: %08lx\n", hres); ok_(__FILE__,line) (event != NULL, "event = NULL\n");
/* Native IE uses an undocumented DIID in IE9+ mode */ @@ -329,7 +329,7 @@ static void _set_elem_innerhtml(unsigned line, IHTMLElement *elem, const WCHAR *
html = SysAllocString(inner_html); hres = IHTMLElement_put_innerHTML(elem, html); - ok_(__FILE__,line)(hres == S_OK, "put_innerHTML failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_innerHTML failed: %08lx\n", hres); SysFreeString(html); }
@@ -347,7 +347,7 @@ static void _elem_fire_event(unsigned line, IUnknown *unk, const WCHAR *event, V hres = IHTMLElement3_fireEvent(elem3, str, evobj, &b); in_fire_event--; SysFreeString(str); - ok_(__FILE__,line)(hres == S_OK, "fireEvent failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "fireEvent failed: %08lx\n", hres); ok_(__FILE__,line)(b == VARIANT_TRUE, "fireEvent returned %x\n", b); }
@@ -355,12 +355,12 @@ static void _elem_fire_event(unsigned line, IUnknown *unk, const WCHAR *event, V static void _test_event_args(unsigned line, const IID *dispiid, DISPID id, WORD wFlags, DISPPARAMS *pdp, VARIANT *pvarRes, EXCEPINFO *pei, IServiceProvider *pspCaller) { - ok_(__FILE__,line) (id == DISPID_VALUE, "id = %d\n", id); + ok_(__FILE__,line) (id == DISPID_VALUE, "id = %ld\n", id); ok_(__FILE__,line) (wFlags == DISPATCH_METHOD, "wFlags = %x\n", wFlags); ok_(__FILE__,line) (pdp != NULL, "pdp == NULL\n"); ok_(__FILE__,line) (pdp->cArgs == (document_mode < 9 ? 1 : 2), "pdp->cArgs = %d\n", pdp->cArgs); ok_(__FILE__,line) (pdp->cNamedArgs == 1, "pdp->cNamedArgs = %d\n", pdp->cNamedArgs); - ok_(__FILE__,line) (pdp->rgdispidNamedArgs[0] == DISPID_THIS, "pdp->rgdispidNamedArgs[0] = %d\n", + ok_(__FILE__,line) (pdp->rgdispidNamedArgs[0] == DISPID_THIS, "pdp->rgdispidNamedArgs[0] = %ld\n", pdp->rgdispidNamedArgs[0]); ok_(__FILE__,line) (V_VT(pdp->rgvarg) == VT_DISPATCH, "V_VT(rgvarg) = %d\n", V_VT(pdp->rgvarg)); if(pdp->cArgs > 1) @@ -379,15 +379,15 @@ static void _test_event_args(unsigned line, const IID *dispiid, DISPID id, WORD
hres = IDispatch_QueryInterface(V_DISPATCH(pdp->rgvarg+1), &IID_IDOMEvent, (void**)&event); if(in_fire_event) - ok(hres == E_NOINTERFACE, "QI(IID_IDOMEvent) returned %08x\n", hres); + ok(hres == E_NOINTERFACE, "QI(IID_IDOMEvent) returned %08lx\n", hres); else - ok(hres == S_OK, "Could not get IDOMEvent iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDOMEvent iface: %08lx\n", hres);
hres = IDispatch_QueryInterface(V_DISPATCH(pdp->rgvarg+1), &IID_IHTMLEventObj, (void**)&event_obj); if(in_fire_event) - ok(hres == S_OK, "Could not get IDOMEventObj iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDOMEventObj iface: %08lx\n", hres); else - ok(hres == E_NOINTERFACE, "QI(IID_IHTMLEventObj) returned %08x\n", hres); + ok(hres == E_NOINTERFACE, "QI(IID_IHTMLEventObj) returned %08lx\n", hres);
if(event) IDOMEvent_Release(event); @@ -395,7 +395,7 @@ static void _test_event_args(unsigned line, const IID *dispiid, DISPID id, WORD IHTMLEventObj_Release(event_obj);
hres = IHTMLWindow2_get_event(window, &window_event); - ok(hres == S_OK, "get_event failed: %08x\n", hres); + ok(hres == S_OK, "get_event failed: %08lx\n", hres); if(window_event) { todo_wine_if(in_fire_event) ok(!iface_cmp((IUnknown*)V_DISPATCH(pdp->rgvarg+1), (IUnknown*)window_event), @@ -411,7 +411,7 @@ static void _test_attached_event_args(unsigned line, DISPID id, WORD wFlags, DIS { IHTMLEventObj *event;
- ok(id == DISPID_VALUE, "id = %d\n", id); + ok(id == DISPID_VALUE, "id = %ld\n", id); ok(wFlags == DISPATCH_METHOD, "wFlags = %x\n", wFlags); ok(pdp != NULL, "pDispParams == NULL\n"); ok(pdp->cArgs == 1, "pdp->cArgs = %d\n", pdp->cArgs); @@ -439,7 +439,7 @@ static IHTMLElement *_get_event_src(unsigned line)
hres = IHTMLEventObj_get_srcElement(event, &src_elem); IHTMLEventObj_Release(event); - ok_(__FILE__,line) (hres == S_OK, "get_srcElement failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_srcElement failed: %08lx\n", hres);
return src_elem; } @@ -464,7 +464,7 @@ static void _test_event_altkey(unsigned line, IHTMLEventObj *event, VARIANT_BOOL HRESULT hres;
hres = IHTMLEventObj_get_altKey(event, &b); - ok_(__FILE__,line)(hres == S_OK, "get_altKey failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_altKey failed: %08lx\n", hres); ok_(__FILE__,line)(b == exval, "altKey = %x, expected %x\n", b, exval); }
@@ -474,7 +474,7 @@ static void _test_event_ctrlkey(unsigned line, IHTMLEventObj *event, VARIANT_BOO HRESULT hres;
hres = IHTMLEventObj_get_ctrlKey(event, &b); - ok_(__FILE__,line)(hres == S_OK, "get_ctrlKey failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_ctrlKey failed: %08lx\n", hres); ok_(__FILE__,line)(b == exval, "ctrlKey = %x, expected %x\n", b, exval); }
@@ -484,7 +484,7 @@ static void _test_event_shiftkey(unsigned line, IHTMLEventObj *event, VARIANT_BO HRESULT hres;
hres = IHTMLEventObj_get_shiftKey(event, &b); - ok_(__FILE__,line)(hres == S_OK, "get_shiftKey failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_shiftKey failed: %08lx\n", hres); ok_(__FILE__,line)(b == exval, "shiftKey = %x, expected %x\n", b, exval); }
@@ -495,7 +495,7 @@ static void _test_event_cancelbubble(unsigned line, IHTMLEventObj *event, VARIAN HRESULT hres;
hres = IHTMLEventObj_get_cancelBubble(event, &b); - ok_(__FILE__,line)(hres == S_OK, "get_cancelBubble failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_cancelBubble failed: %08lx\n", hres); ok_(__FILE__,line)(b == exval, "cancelBubble = %x, expected %x\n", b, exval); }
@@ -505,7 +505,7 @@ static void _test_event_fromelem(unsigned line, IHTMLEventObj *event, const WCHA HRESULT hres;
hres = IHTMLEventObj_get_fromElement(event, &elem); - ok_(__FILE__,line)(hres == S_OK, "get_fromElement failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_fromElement failed: %08lx\n", hres); if(from_tag) _test_elem_tag(line, (IUnknown*)elem, from_tag); else @@ -520,7 +520,7 @@ static void _test_event_toelem(unsigned line, IHTMLEventObj *event, const WCHAR HRESULT hres;
hres = IHTMLEventObj_get_toElement(event, &elem); - ok_(__FILE__,line)(hres == S_OK, "get_toElement failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_toElement failed: %08lx\n", hres); if(to_tag) _test_elem_tag(line, (IUnknown*)elem, to_tag); else @@ -535,8 +535,8 @@ static void _test_event_keycode(unsigned line, IHTMLEventObj *event, LONG exl) HRESULT hres;
hres = IHTMLEventObj_get_keyCode(event, &l); - ok_(__FILE__,line)(hres == S_OK, "get_keyCode failed: %08x\n", hres); - ok_(__FILE__,line)(l == exl, "keyCode = %x, expected %x\n", l, exl); + ok_(__FILE__,line)(hres == S_OK, "get_keyCode failed: %08lx\n", hres); + ok_(__FILE__,line)(l == exl, "keyCode = %lx, expected %lx\n", l, exl); }
static void _test_event_button(unsigned line, IHTMLEventObj *event, LONG exl) @@ -545,8 +545,8 @@ static void _test_event_button(unsigned line, IHTMLEventObj *event, LONG exl) HRESULT hres;
hres = IHTMLEventObj_get_button(event, &l); - ok_(__FILE__,line)(hres == S_OK, "get_button failed: %08x\n", hres); - ok_(__FILE__,line)(l == exl, "button = %x, expected %x\n", l, exl); + ok_(__FILE__,line)(hres == S_OK, "get_button failed: %08lx\n", hres); + ok_(__FILE__,line)(l == exl, "button = %lx, expected %lx\n", l, exl); }
static void _test_event_reason(unsigned line, IHTMLEventObj *event, LONG exl) @@ -555,8 +555,8 @@ static void _test_event_reason(unsigned line, IHTMLEventObj *event, LONG exl) HRESULT hres;
hres = IHTMLEventObj_get_reason(event, &l); - ok_(__FILE__,line)(hres == S_OK, "get_reason failed: %08x\n", hres); - ok_(__FILE__,line)(l == exl, "reason = %x, expected %x\n", l, exl); + ok_(__FILE__,line)(hres == S_OK, "get_reason failed: %08lx\n", hres); + ok_(__FILE__,line)(l == exl, "reason = %lx, expected %lx\n", l, exl); }
static void _test_event_x(unsigned line, IHTMLEventObj *event, LONG exl) @@ -565,9 +565,9 @@ static void _test_event_x(unsigned line, IHTMLEventObj *event, LONG exl) HRESULT hres;
hres = IHTMLEventObj_get_x(event, &l); - ok_(__FILE__,line)(hres == S_OK, "get_x failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_x failed: %08lx\n", hres); if(exl != -10) /* don't test the exact value */ - ok_(__FILE__,line)(l == exl, "x = %d, expected %d\n", l, exl); + ok_(__FILE__,line)(l == exl, "x = %ld, expected %ld\n", l, exl); }
static void _test_event_y(unsigned line, IHTMLEventObj *event, LONG exl) @@ -576,9 +576,9 @@ static void _test_event_y(unsigned line, IHTMLEventObj *event, LONG exl) HRESULT hres;
hres = IHTMLEventObj_get_y(event, &l); - ok_(__FILE__,line)(hres == S_OK, "get_y failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_y failed: %08lx\n", hres); if(exl != -10) /* don't test the exact value */ - ok_(__FILE__,line)(l == exl, "y = %d, expected %d\n", l, exl); + ok_(__FILE__,line)(l == exl, "y = %ld, expected %ld\n", l, exl); }
static void _test_event_clientx(unsigned line, IHTMLEventObj *event, LONG exl) @@ -587,9 +587,9 @@ static void _test_event_clientx(unsigned line, IHTMLEventObj *event, LONG exl) HRESULT hres;
hres = IHTMLEventObj_get_clientX(event, &l); - ok_(__FILE__,line)(hres == S_OK, "get_clientX failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_clientX failed: %08lx\n", hres); if(exl != -10) /* don't test the exact value */ - ok_(__FILE__,line)(l == exl, "clientX = %d, expected %d\n", l, exl); + ok_(__FILE__,line)(l == exl, "clientX = %ld, expected %ld\n", l, exl); }
static void _test_event_clienty(unsigned line, IHTMLEventObj *event, LONG exl) @@ -598,9 +598,9 @@ static void _test_event_clienty(unsigned line, IHTMLEventObj *event, LONG exl) HRESULT hres;
hres = IHTMLEventObj_get_clientY(event, &l); - ok_(__FILE__,line)(hres == S_OK, "get_clientY failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_clientY failed: %08lx\n", hres); if(exl != -10) /* don't test the exact value */ - ok_(__FILE__,line)(l == exl, "clientY = %d, expected %d\n", l, exl); + ok_(__FILE__,line)(l == exl, "clientY = %ld, expected %ld\n", l, exl); }
static void _test_event_offsetx(unsigned line, IHTMLEventObj *event, LONG exl) @@ -609,9 +609,9 @@ static void _test_event_offsetx(unsigned line, IHTMLEventObj *event, LONG exl) HRESULT hres;
hres = IHTMLEventObj_get_offsetX(event, &l); - ok_(__FILE__,line)(hres == S_OK, "get_offsetX failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_offsetX failed: %08lx\n", hres); if(exl != -10) /* don't test the exact value */ - ok_(__FILE__,line)(l == exl, "offsetX = %d, expected %d\n", l, exl); + ok_(__FILE__,line)(l == exl, "offsetX = %ld, expected %ld\n", l, exl); }
static void _test_event_offsety(unsigned line, IHTMLEventObj *event, LONG exl) @@ -620,9 +620,9 @@ static void _test_event_offsety(unsigned line, IHTMLEventObj *event, LONG exl) HRESULT hres;
hres = IHTMLEventObj_get_offsetY(event, &l); - ok_(__FILE__,line)(hres == S_OK, "get_offsetY failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_offsetY failed: %08lx\n", hres); if(exl != -10) /* don't test the exact value */ - ok_(__FILE__,line)(l == exl, "offsetY = %d, expected %d\n", l, exl); + ok_(__FILE__,line)(l == exl, "offsetY = %ld, expected %ld\n", l, exl); }
static void _test_event_screenx(unsigned line, IHTMLEventObj *event, LONG exl) @@ -631,9 +631,9 @@ static void _test_event_screenx(unsigned line, IHTMLEventObj *event, LONG exl) HRESULT hres;
hres = IHTMLEventObj_get_screenX(event, &l); - ok_(__FILE__,line)(hres == S_OK, "get_screenX failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_screenX failed: %08lx\n", hres); if(exl != -10) /* don't test the exact value */ - ok_(__FILE__,line)(l == exl, "screenX = %d, expected %d\n", l, exl); + ok_(__FILE__,line)(l == exl, "screenX = %ld, expected %ld\n", l, exl); }
static void _test_event_screeny(unsigned line, IHTMLEventObj *event, LONG exl) @@ -642,9 +642,9 @@ static void _test_event_screeny(unsigned line, IHTMLEventObj *event, LONG exl) HRESULT hres;
hres = IHTMLEventObj_get_screenY(event, &l); - ok_(__FILE__,line)(hres == S_OK, "get_screenY failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_screenY failed: %08lx\n", hres); if(exl != -10) /* don't test the exact value for -10 */ - ok_(__FILE__,line)(l == exl, "screenY = %d, expected %d\n", l, exl); + ok_(__FILE__,line)(l == exl, "screenY = %ld, expected %ld\n", l, exl); }
static void _test_event_type(unsigned line, IHTMLEventObj *event, const WCHAR *exstr) @@ -653,7 +653,7 @@ static void _test_event_type(unsigned line, IHTMLEventObj *event, const WCHAR *e HRESULT hres;
hres = IHTMLEventObj_get_type(event, &str); - ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_type failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(str, exstr), "type = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exstr)); }
@@ -663,7 +663,7 @@ static void _test_event_qualifier(unsigned line, IHTMLEventObj *event, const WCH HRESULT hres;
hres = IHTMLEventObj_get_qualifier(event, &str); - ok_(__FILE__,line)(hres == S_OK, "get_qualifier failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_qualifier failed: %08lx\n", hres); if(exstr) ok_(__FILE__,line)(!lstrcmpW(str, exstr), "qualifier = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exstr)); @@ -677,7 +677,7 @@ static void _test_event_srcfilter(unsigned line, IHTMLEventObj *event) HRESULT hres;
hres = IHTMLEventObj_get_srcFilter(event, &disp); - ok_(__FILE__,line)(hres == S_OK, "get_srcFilter failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_srcFilter failed: %08lx\n", hres); ok_(__FILE__,line)(!disp, "srcFilter != NULL\n"); }
@@ -712,7 +712,7 @@ static void _test_event_obj(unsigned line, const WCHAR *type, const xy_test_t *x
V_VT(&v) = VT_NULL; hres = IHTMLEventObj_get_returnValue(event, &v); - ok_(__FILE__,line)(hres == S_OK, "get_returnValue failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_returnValue failed: %08lx\n", hres); /* Depending on source of event, returnValue may be true bool in IE9+ mode */ ok_(__FILE__,line)(V_VT(&v) == VT_EMPTY || (document_mode >= 9 && V_VT(&v) == VT_BOOL), "V_VT(returnValue) = %d\n", V_VT(&v)); @@ -720,7 +720,7 @@ static void _test_event_obj(unsigned line, const WCHAR *type, const xy_test_t *x ok_(__FILE__,line)(V_BOOL(&v) == VARIANT_TRUE, "V_BOOL(returnValue) = %x\n", V_BOOL(&v));
hres = IHTMLEventObj_QueryInterface(event, &IID_IDOMEvent, (void**)&dom_event); - ok(hres == E_NOINTERFACE, "Could not get IDOMEvent iface: %08x\n", hres); + ok(hres == E_NOINTERFACE, "Could not get IDOMEvent iface: %08lx\n", hres);
IHTMLEventObj_Release(event); } @@ -737,7 +737,7 @@ static void _elem_attach_event(unsigned line, IUnknown *unk, const WCHAR *namew, hres = IHTMLElement2_attachEvent(elem, name, disp, &res); IHTMLElement2_Release(elem); SysFreeString(name); - ok_(__FILE__,line)(hres == S_OK, "attachEvent failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "attachEvent failed: %08lx\n", hres); ok_(__FILE__,line)(res == VARIANT_TRUE, "attachEvent returned %x\n", res); }
@@ -749,12 +749,12 @@ static void _add_event_listener(unsigned line, IUnknown *unk, const WCHAR *type, HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IEventTarget, (void**)&event_target); - ok_(__FILE__,line)(hres == S_OK, "Could not get IEventTarget iface: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Could not get IEventTarget iface: %08lx\n", hres);
str = SysAllocString(type); hres = IEventTarget_addEventListener(event_target, str, listener, use_capture); SysFreeString(str); - ok_(__FILE__,line)(hres == S_OK, "addEventListener failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "addEventListener failed: %08lx\n", hres);
IEventTarget_Release(event_target); } @@ -767,12 +767,12 @@ static void _remove_event_listener(unsigned line, IUnknown *unk, const WCHAR *ty HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IEventTarget, (void**)&event_target); - ok_(__FILE__,line)(hres == S_OK, "Could not get IEventTarget iface: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Could not get IEventTarget iface: %08lx\n", hres);
str = SysAllocString(type); hres = IEventTarget_removeEventListener(event_target, str, listener, use_capture); SysFreeString(str); - ok_(__FILE__,line)(hres == S_OK, "removeEventListener failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "removeEventListener failed: %08lx\n", hres);
IEventTarget_Release(event_target); } @@ -788,7 +788,7 @@ static void _elem_detach_event(unsigned line, IUnknown *unk, const WCHAR *namew, hres = IHTMLElement2_detachEvent(elem, name, disp); IHTMLElement2_Release(elem); SysFreeString(name); - ok_(__FILE__,line)(hres == S_OK, "detachEvent failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "detachEvent failed: %08lx\n", hres); }
#define doc_attach_event(a,b,c) _doc_attach_event(__LINE__,a,b,c) @@ -803,7 +803,7 @@ static void _doc_attach_event(unsigned line, IHTMLDocument2 *doc, const WCHAR *n hres = IHTMLDocument3_attachEvent(doc3, name, disp, &res); IHTMLDocument3_Release(doc3); SysFreeString(name); - ok_(__FILE__,line)(hres == S_OK, "attachEvent failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "attachEvent failed: %08lx\n", hres); ok_(__FILE__,line)(res == VARIANT_TRUE, "attachEvent returned %x\n", res); }
@@ -818,7 +818,7 @@ static void _doc_detach_event(unsigned line, IHTMLDocument2 *doc, const WCHAR *n hres = IHTMLDocument3_detachEvent(doc3, name, disp); IHTMLDocument3_Release(doc3); SysFreeString(name); - ok_(__FILE__,line)(hres == S_OK, "detachEvent failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "detachEvent failed: %08lx\n", hres); }
static HRESULT WINAPI DispatchEx_QueryInterface(IDispatchEx *iface, REFIID riid, void **ppv) @@ -902,7 +902,7 @@ static HRESULT WINAPI DispatchEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc
static HRESULT WINAPI DispatchEx_DeleteMemberByName(IDispatchEx *iface, BSTR bstrName, DWORD grfdex) { - ok(0, "unexpected call %s %x\n", wine_dbgstr_w(bstrName), grfdex); + ok(0, "unexpected call %s %lx\n", wine_dbgstr_w(bstrName), grfdex); return E_NOTIMPL; }
@@ -1214,7 +1214,7 @@ static HRESULT WINAPI submit_onclick_attached_check_cancel(IDispatchEx *iface, D
event = NULL; hres = IHTMLWindow2_get_event(window, &event); - ok(hres == S_OK, "get_event failed: %08x\n", hres); + ok(hres == S_OK, "get_event failed: %08lx\n", hres); ok(event != NULL, "event == NULL\n");
test_event_cancelbubble(event, VARIANT_TRUE); @@ -1238,12 +1238,12 @@ static HRESULT WINAPI submit_onclick_setret(IDispatchEx *iface, DISPID id, LCID
event = NULL; hres = IHTMLWindow2_get_event(window, &event); - ok(hres == S_OK, "get_event failed: %08x\n", hres); + ok(hres == S_OK, "get_event failed: %08lx\n", hres); ok(event != NULL, "event == NULL\n");
V_VT(&v) = VT_ERROR; hres = IHTMLEventObj_get_returnValue(event, &v); - ok(hres == S_OK, "get_returnValue failed: %08x\n", hres); + ok(hres == S_OK, "get_returnValue failed: %08lx\n", hres); if(document_mode < 9) { ok(V_VT(&v) == VT_EMPTY, "V_VT(returnValue) = %d\n", V_VT(&v)); }else todo_wine { @@ -1252,11 +1252,11 @@ static HRESULT WINAPI submit_onclick_setret(IDispatchEx *iface, DISPID id, LCID }
hres = IHTMLEventObj_put_returnValue(event, onclick_event_retval); - ok(hres == S_OK, "put_returnValue failed: %08x\n", hres); + ok(hres == S_OK, "put_returnValue failed: %08lx\n", hres);
V_VT(&v) = VT_ERROR; hres = IHTMLEventObj_get_returnValue(event, &v); - ok(hres == S_OK, "get_returnValue failed: %08x\n", hres); + ok(hres == S_OK, "get_returnValue failed: %08lx\n", hres); ok(VarCmp(&v, &onclick_event_retval, 0, 0) == VARCMP_EQ, "unexpected returnValue\n");
IHTMLEventObj_Release(event); @@ -1278,13 +1278,13 @@ static HRESULT WINAPI submit_onclick_cancel(IDispatchEx *iface, DISPID id, LCID
event = NULL; hres = IHTMLWindow2_get_event(window, &event); - ok(hres == S_OK, "get_event failed: %08x\n", hres); + ok(hres == S_OK, "get_event failed: %08lx\n", hres); ok(event != NULL, "event == NULL\n");
test_event_cancelbubble(event, VARIANT_FALSE);
hres = IHTMLEventObj_put_cancelBubble(event, VARIANT_TRUE); - ok(hres == S_OK, "put_returnValue failed: %08x\n", hres); + ok(hres == S_OK, "put_returnValue failed: %08lx\n", hres);
test_event_cancelbubble(event, VARIANT_TRUE); IHTMLEventObj_Release(event); @@ -1304,7 +1304,7 @@ static HRESULT WINAPI iframedoc_onreadystatechange(IDispatchEx *iface, DISPID id
event = (void*)0xdeadbeef; hres = IHTMLWindow2_get_event(window, &event); - ok(hres == S_OK, "get_event failed: %08x\n", hres); + ok(hres == S_OK, "get_event failed: %08lx\n", hres); ok(!event, "event = %p\n", event);
return S_OK; @@ -1333,29 +1333,29 @@ static HRESULT WINAPI iframe_onreadystatechange(IDispatchEx *iface, DISPID id, L
V_VT(&v) = VT_EMPTY; hres = IHTMLElement2_get_readyState(elem2, &v); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(readyState) = %d\n", V_VT(&v));
hres = IHTMLElement2_QueryInterface(elem2, &IID_IHTMLFrameBase2, (void**)&iframe); IHTMLElement2_Release(elem2); - ok(hres == S_OK, "Could not get IHTMLFrameBase2 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLFrameBase2 iface: %08lx\n", hres);
str = NULL; hres = IHTMLFrameBase2_get_readyState(iframe, &str); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres); ok(str != NULL, "readyState == NULL\n"); ok(!lstrcmpW(str, V_BSTR(&v)), "ready states differ\n"); VariantClear(&v);
hres = IHTMLFrameBase2_get_contentWindow(iframe, &iframe_window); - ok(hres == S_OK, "get_contentDocument failed: %08x\n", hres); + ok(hres == S_OK, "get_contentDocument failed: %08lx\n", hres);
hres = IHTMLWindow2_get_document(iframe_window, &iframe_doc); IHTMLWindow2_Release(iframe_window); - ok(hres == S_OK, "get_document failed: %08x\n", hres); + ok(hres == S_OK, "get_document failed: %08lx\n", hres);
hres = IHTMLDocument2_get_readyState(iframe_doc, &str2); - ok(hres == S_OK, "get_document failed: %08x\n", hres); + ok(hres == S_OK, "get_document failed: %08lx\n", hres); ok(!lstrcmpW(str, str2), "unexpected document readyState %s\n", wine_dbgstr_w(str2)); SysFreeString(str2);
@@ -1365,7 +1365,7 @@ static HRESULT WINAPI iframe_onreadystatechange(IDispatchEx *iface, DISPID id, L V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&iframedoc_onreadystatechange_obj; hres = IHTMLDocument2_put_onreadystatechange(iframe_doc, v); - ok(hres == S_OK, "put_onreadystatechange: %08x\n", hres); + ok(hres == S_OK, "put_onreadystatechange: %08lx\n", hres); }else if(!lstrcmpW(str, L"interactive")) CHECK_EXPECT(iframe_onreadystatechange_interactive); else if(!lstrcmpW(str, L"complete")) @@ -1437,7 +1437,7 @@ static void _test_cp_args(unsigned line, REFIID riid, WORD flags, DISPPARAMS *dp ok_(__FILE__,line)(dp->rgvarg != NULL, "dp->rgvarg = %p\n", dp->rgvarg); ok_(__FILE__,line)(V_VT(&dp->rgvarg[0]) == VT_DISPATCH, "vt = %d\n", V_VT(&dp->rgvarg[0])); hr = IDispatch_QueryInterface(V_DISPATCH(&dp->rgvarg[0]), &IID_IHTMLEventObj, (void **)&event); - ok_(__FILE__,line)(hr == S_OK, "Could not get IHTMLEventObj iface: %08x\n", hr); + ok_(__FILE__,line)(hr == S_OK, "Could not get IHTMLEventObj iface: %08lx\n", hr); IHTMLEventObj_Release(event); } else @@ -1489,7 +1489,7 @@ static HRESULT WINAPI doccp(IDispatchEx *iface, DISPID dispIdMember, test_cp_args(riid, wFlags, pdp, pVarResult, pei, puArgErr, FALSE); break; default: - ok(0, "unexpected call %d\n", dispIdMember); + ok(0, "unexpected call %ld\n", dispIdMember); return E_NOTIMPL; }
@@ -1508,7 +1508,7 @@ static HRESULT WINAPI doccp2(IDispatchEx *iface, DISPID dispIdMember, test_cp_args(riid, wFlags, pdp, pVarResult, pei, puArgErr, TRUE); break; default: - ok(0, "unexpected call %d\n", dispIdMember); + ok(0, "unexpected call %ld\n", dispIdMember); return E_NOTIMPL; }
@@ -1528,7 +1528,7 @@ static HRESULT WINAPI doccp_onclick_cancel(IDispatchEx *iface, DISPID dispIdMemb V_BOOL(pVarResult) = VARIANT_FALSE; break; default: - ok(0, "unexpected call %d\n", dispIdMember); + ok(0, "unexpected call %ld\n", dispIdMember); return E_NOTIMPL; }
@@ -1546,7 +1546,7 @@ static HRESULT WINAPI elem2_cp(IDispatchEx *iface, DISPID dispIdMember, REFIID r test_cp_eventarg(riid, wFlags, pdp, pVarResult, pei, puArgErr); break; default: - ok(0, "unexpected call %d\n", dispIdMember); + ok(0, "unexpected call %ld\n", dispIdMember); return E_NOTIMPL; }
@@ -1561,10 +1561,10 @@ static HRESULT WINAPI timeoutFunc_Invoke(IDispatchEx *iface, DISPID dispIdMember { CHECK_EXPECT(timeout);
- ok(dispIdMember == DISPID_VALUE, "dispIdMember = %d\n", dispIdMember); + ok(dispIdMember == DISPID_VALUE, "dispIdMember = %ld\n", dispIdMember); ok(IsEqualGUID(&IID_NULL, riid), "riid = %s\n", wine_dbgstr_guid(riid)); ok(wFlags == DISPATCH_METHOD, "wFlags = %x\n", wFlags); - ok(!lcid, "lcid = %x\n", lcid); + ok(!lcid, "lcid = %lx\n", lcid); ok(pDispParams != NULL, "pDispParams == NULL\n"); ok(!pDispParams->cArgs, "pdp->cArgs = %d\n", pDispParams->cArgs); ok(!pDispParams->cNamedArgs, "pdp->cNamedArgs = %d\n", pDispParams->cNamedArgs); @@ -1676,11 +1676,11 @@ static IConnectionPoint *get_cp(IUnknown *unk, REFIID riid) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IConnectionPointContainer, (void**)&cp_container); - ok(hres == S_OK, "Could not get IConnectionPointContainer: %08x\n", hres); + ok(hres == S_OK, "Could not get IConnectionPointContainer: %08lx\n", hres);
hres = IConnectionPointContainer_FindConnectionPoint(cp_container, riid, &cp); IConnectionPointContainer_Release(cp_container); - ok(hres == S_OK, "FindConnectionPoint failed: %08x\n", hres); + ok(hres == S_OK, "FindConnectionPoint failed: %08lx\n", hres);
return cp; } @@ -1694,7 +1694,7 @@ static DWORD register_cp(IUnknown *unk, REFIID riid, IUnknown *sink) cp = get_cp(unk, riid); hres = IConnectionPoint_Advise(cp, sink, &cookie); IConnectionPoint_Release(cp); - ok(hres == S_OK, "Advise failed: %08x\n", hres); + ok(hres == S_OK, "Advise failed: %08lx\n", hres);
return cookie; } @@ -1707,7 +1707,7 @@ static void unregister_cp(IUnknown *unk, REFIID riid, DWORD cookie) cp = get_cp(unk, riid); hres = IConnectionPoint_Unadvise(cp, cookie); IConnectionPoint_Release(cp); - ok(hres == S_OK, "Unadvise failed: %08x\n", hres); + ok(hres == S_OK, "Unadvise failed: %08lx\n", hres); }
static HRESULT WINAPI EventDispatch_QueryInterface(IDispatch *iface, REFIID riid, void **ppv) @@ -1777,7 +1777,7 @@ static HRESULT WINAPI EventDispatch_Invoke(IDispatch *iface, DISPID dispIdMember case 1049: break; /* TODO */ default: - ok(0, "Unexpected call: %d\n", dispIdMember); + ok(0, "Unexpected call: %ld\n", dispIdMember); }
return S_OK; @@ -1825,27 +1825,27 @@ static void test_onclick(IHTMLDocument2 *doc)
V_VT(&v) = VT_EMPTY; hres = IHTMLElement_get_onclick(div, &v); - ok(hres == S_OK, "get_onclick failed: %08x\n", hres); + ok(hres == S_OK, "get_onclick failed: %08lx\n", hres); ok(V_VT(&v) == VT_NULL, "V_VT(onclick) = %d\n", V_VT(&v));
V_VT(&v) = VT_EMPTY; hres = IHTMLElement_put_onclick(div, v); - ok(hres == (document_mode < 9 ? E_NOTIMPL : S_OK), "put_onclick failed: %08x\n", hres); + ok(hres == (document_mode < 9 ? E_NOTIMPL : S_OK), "put_onclick failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLElement_get_onclick(div, &v); - ok(hres == S_OK, "get_onclick failed: %08x\n", hres); + ok(hres == S_OK, "get_onclick failed: %08lx\n", hres); ok(V_VT(&v) == VT_NULL, "V_VT(onclick) = %d\n", V_VT(&v));
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"function();"); hres = IHTMLElement_put_onclick(div, v); - ok(hres == S_OK, "put_onclick failed: %08x\n", hres); + ok(hres == S_OK, "put_onclick failed: %08lx\n", hres); SysFreeString(V_BSTR(&v));
V_VT(&v) = VT_EMPTY; hres = IHTMLElement_get_onclick(div, &v); - ok(hres == S_OK, "get_onclick failed: %08x\n", hres); + ok(hres == S_OK, "get_onclick failed: %08lx\n", hres); if(document_mode < 9) { ok(V_VT(&v) == VT_BSTR, "V_VT(onclick) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"function();"), "V_BSTR(onclick) = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -1858,32 +1858,32 @@ static void test_onclick(IHTMLDocument2 *doc) V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&div_onclick_obj; hres = IHTMLElement_put_onclick(div, v); - ok(hres == S_OK, "put_onclick failed: %08x\n", hres); + ok(hres == S_OK, "put_onclick failed: %08lx\n", hres);
V_VT(&v) = VT_NULL; hres = IHTMLElement_put_ondblclick(div, v); - ok(hres == S_OK, "put_ondblclick failed: %08x\n", hres); + ok(hres == S_OK, "put_ondblclick failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLElement_get_onclick(div, &v); - ok(hres == S_OK, "get_onclick failed: %08x\n", hres); + ok(hres == S_OK, "get_onclick failed: %08lx\n", hres); ok(V_VT(&v) == VT_DISPATCH, "V_VT(onclick) = %d\n", V_VT(&v)); ok(V_DISPATCH(&v) == (IDispatch*)&div_onclick_obj, "V_DISPATCH(onclick) != onclickFunc\n"); VariantClear(&v);
V_VT(&v) = VT_EMPTY; hres = IHTMLDocument2_get_onclick(doc, &v); - ok(hres == S_OK, "get_onclick failed: %08x\n", hres); + ok(hres == S_OK, "get_onclick failed: %08lx\n", hres); ok(V_VT(&v) == VT_NULL, "V_VT(onclick) = %d\n", V_VT(&v));
V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&document_onclick_obj; hres = IHTMLDocument2_put_onclick(doc, v); - ok(hres == S_OK, "put_onclick failed: %08x\n", hres); + ok(hres == S_OK, "put_onclick failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLDocument2_get_onclick(doc, &v); - ok(hres == S_OK, "get_onclick failed: %08x\n", hres); + ok(hres == S_OK, "get_onclick failed: %08lx\n", hres); ok(V_VT(&v) == VT_DISPATCH, "V_VT(onclick) = %d\n", V_VT(&v)); ok(V_DISPATCH(&v) == (IDispatch*)&document_onclick_obj, "V_DISPATCH(onclick) != onclickFunc\n"); VariantClear(&v); @@ -1898,7 +1898,7 @@ static void test_onclick(IHTMLDocument2 *doc) V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&body_onclick_obj; hres = IHTMLElement_put_onclick(body, v); - ok(hres == S_OK, "put_onclick failed: %08x\n", hres); + ok(hres == S_OK, "put_onclick failed: %08lx\n", hres);
if(winetest_interactive && document_mode < 9) { SET_EXPECT(div_onclick); @@ -1925,7 +1925,7 @@ static void test_onclick(IHTMLDocument2 *doc) SET_EXPECT(invoke_onclick);
hres = IHTMLElement_click(div); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres);
CHECK_CALLED(div_onclick); CHECK_CALLED(div_onclick_attached); @@ -1972,7 +1972,7 @@ static void test_onclick(IHTMLDocument2 *doc) SET_EXPECT(invoke_onclick);
hres = IHTMLElement_click(div); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres);
CHECK_CALLED(div_onclick); CHECK_CALLED(div_onclick_disp); @@ -2007,7 +2007,7 @@ static void test_onclick(IHTMLDocument2 *doc)
trace("click >>>\n"); hres = IHTMLElement_click(div); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres); trace("click <<<\n");
CHECK_CALLED(div_onclick); @@ -2031,10 +2031,10 @@ static void test_onclick(IHTMLDocument2 *doc)
V_VT(&v) = VT_NULL; hres = IHTMLElement_put_onclick(div, v); - ok(hres == S_OK, "put_onclick failed: %08x\n", hres); + ok(hres == S_OK, "put_onclick failed: %08lx\n", hres);
hres = IHTMLElement_get_onclick(div, &v); - ok(hres == S_OK, "get_onclick failed: %08x\n", hres); + ok(hres == S_OK, "get_onclick failed: %08lx\n", hres); ok(V_VT(&v) == VT_NULL, "get_onclick returned vt %d\n", V_VT(&v));
elem_detach_event((IUnknown*)div, L"onclick", (IDispatch*)&div_onclick_disp); @@ -2053,7 +2053,7 @@ static void test_onclick(IHTMLDocument2 *doc) SET_EXPECT(invoke_onclick);
hres = IHTMLElement_click(div); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres);
CHECK_CALLED(div_onclick_attached); CHECK_CALLED(body_onclick); @@ -2079,27 +2079,27 @@ static void test_onreadystatechange(IHTMLDocument2 *doc)
V_VT(&v) = VT_EMPTY; hres = IHTMLElement2_get_onreadystatechange(elem2, &v); - ok(hres == S_OK, "get_onreadystatechange failed: %08x\n", hres); + ok(hres == S_OK, "get_onreadystatechange failed: %08lx\n", hres); ok(V_VT(&v) == VT_NULL, "V_VT(onreadystatechange) = %d\n", V_VT(&v));
V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&iframe_onreadystatechange_obj; hres = IHTMLElement2_put_onreadystatechange(elem2, v); - ok(hres == S_OK, "put_onreadystatechange failed: %08x\n", hres); + ok(hres == S_OK, "put_onreadystatechange failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLElement2_get_onreadystatechange(elem2, &v); - ok(hres == S_OK, "get_onreadystatechange failed: %08x\n", hres); + ok(hres == S_OK, "get_onreadystatechange failed: %08lx\n", hres); ok(V_VT(&v) == VT_DISPATCH, "V_VT(onreadystatechange) = %d\n", V_VT(&v)); ok(V_DISPATCH(&v) == (IDispatch*)&iframe_onreadystatechange_obj, "unexpected onreadystatechange value\n");
hres = IHTMLElement2_QueryInterface(elem2, &IID_IHTMLFrameBase, (void**)&iframe); IHTMLElement2_Release(elem2); - ok(hres == S_OK, "Could not get IHTMLFrameBase iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLFrameBase iface: %08lx\n", hres);
hres = IHTMLFrameBase_put_src(iframe, (str = SysAllocString(L"about:blank"))); SysFreeString(str); - ok(hres == S_OK, "put_src failed: %08x\n", hres); + ok(hres == S_OK, "put_src failed: %08lx\n", hres);
SET_EXPECT(iframe_onreadystatechange_loading); SET_EXPECT(iframedoc_onreadystatechange); @@ -2125,21 +2125,21 @@ static void test_imgload(IHTMLDocument2 *doc) elem = get_elem_id(doc, L"imgid"); hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLImgElement, (void**)&img); IHTMLElement_Release(elem); - ok(hres == S_OK, "Could not get IHTMLImgElement iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLImgElement iface: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLImgElement_get_onload(img, &v); - ok(hres == S_OK, "get_onload failed: %08x\n", hres); + ok(hres == S_OK, "get_onload failed: %08lx\n", hres); ok(V_VT(&v) == VT_NULL, "V_VT(onload) = %d\n", V_VT(&v));
V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&img_onload_obj; hres = IHTMLImgElement_put_onload(img, v); - ok(hres == S_OK, "put_onload failed: %08x\n", hres); + ok(hres == S_OK, "put_onload failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLImgElement_get_onload(img, &v); - ok(hres == S_OK, "get_onload failed: %08x\n", hres); + ok(hres == S_OK, "get_onload failed: %08lx\n", hres); ok(V_VT(&v) == VT_DISPATCH, "V_VT(onload) = %d\n", V_VT(&v)); ok(V_DISPATCH(&v) == (IDispatch*)&img_onload_obj, "V_DISPATCH(onload) != onloadkFunc\n"); VariantClear(&v); @@ -2147,18 +2147,18 @@ static void test_imgload(IHTMLDocument2 *doc) V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&img_onerror_obj; hres = IHTMLImgElement_put_onerror(img, v); - ok(hres == S_OK, "put_onerror failed: %08x\n", hres); + ok(hres == S_OK, "put_onerror failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLImgElement_get_onerror(img, &v); - ok(hres == S_OK, "get_onerror failed: %08x\n", hres); + ok(hres == S_OK, "get_onerror failed: %08lx\n", hres); ok(V_VT(&v) == VT_DISPATCH, "V_VT(onerror) = %d\n", V_VT(&v)); ok(V_DISPATCH(&v) == (IDispatch*)&img_onerror_obj, "V_DISPATCH(onerror) != onerrorFunc\n"); VariantClear(&v);
str = SysAllocString(L"http://test.winehq.org/tests/winehq_snapshot/index_files/winehq_logo_text.pn..."); hres = IHTMLImgElement_put_src(img, str); - ok(hres == S_OK, "put_src failed: %08x\n", hres); + ok(hres == S_OK, "put_src failed: %08lx\n", hres); SysFreeString(str);
SET_EXPECT(img_onload); @@ -2169,7 +2169,7 @@ static void test_imgload(IHTMLDocument2 *doc)
str = SysAllocString(L"about:blank"); hres = IHTMLImgElement_put_src(img, str); - ok(hres == S_OK, "put_src failed: %08x\n", hres); + ok(hres == S_OK, "put_src failed: %08lx\n", hres); SysFreeString(str);
pump_msgs(&called_img_onerror); /* FIXME: should not be needed */ @@ -2181,32 +2181,32 @@ static void test_imgload(IHTMLDocument2 *doc) /* test onload on unattached image */ hres = IHTMLDocument2_createElement(doc, (str = SysAllocString(L"img")), &elem); SysFreeString(str); - ok(hres == S_OK, "createElement(img) failed: %08x\n", hres); + ok(hres == S_OK, "createElement(img) failed: %08lx\n", hres);
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLImgElement, (void**)&img); IHTMLElement_Release(elem); - ok(hres == S_OK, "Could not get IHTMLImgElement iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLImgElement iface: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLImgElement_get_onload(img, &v); - ok(hres == S_OK, "get_onload failed: %08x\n", hres); + ok(hres == S_OK, "get_onload failed: %08lx\n", hres); ok(V_VT(&v) == VT_NULL, "V_VT(onload) = %d\n", V_VT(&v));
V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&unattached_img_onload_obj; hres = IHTMLImgElement_put_onload(img, v); - ok(hres == S_OK, "put_onload failed: %08x\n", hres); + ok(hres == S_OK, "put_onload failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLImgElement_get_onload(img, &v); - ok(hres == S_OK, "get_onload failed: %08x\n", hres); + ok(hres == S_OK, "get_onload failed: %08lx\n", hres); ok(V_VT(&v) == VT_DISPATCH, "V_VT(onload) = %d\n", V_VT(&v)); ok(V_DISPATCH(&v) == (IDispatch*)&unattached_img_onload_obj, "incorrect V_DISPATCH(onload)\n"); VariantClear(&v);
str = SysAllocString(L"http://test.winehq.org/tests/winehq_snapshot/index_files/winehq_logo_text.pn..."); hres = IHTMLImgElement_put_src(img, str); - ok(hres == S_OK, "put_src failed: %08x\n", hres); + ok(hres == S_OK, "put_src failed: %08lx\n", hres); SysFreeString(str);
SET_EXPECT(img_onload); @@ -2227,28 +2227,28 @@ static void test_link_load(IHTMLDocument2 *doc) elem = get_elem_id(doc, L"linkid"); hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLLinkElement, (void**)&link); IHTMLElement_Release(elem); - ok(hres == S_OK, "Could not get IHTMLLinkElement iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLLinkElement iface: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLLinkElement_get_onload(link, &v); - ok(hres == S_OK, "get_onload failed: %08x\n", hres); + ok(hres == S_OK, "get_onload failed: %08lx\n", hres); ok(V_VT(&v) == VT_NULL, "V_VT(onload) = %d\n", V_VT(&v));
V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&link_onload_obj; hres = IHTMLLinkElement_put_onload(link, v); - ok(hres == S_OK, "put_onload failed: %08x\n", hres); + ok(hres == S_OK, "put_onload failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLLinkElement_get_onload(link, &v); - ok(hres == S_OK, "get_onload failed: %08x\n", hres); + ok(hres == S_OK, "get_onload failed: %08lx\n", hres); ok(V_VT(&v) == VT_DISPATCH, "V_VT(onload) = %d\n", V_VT(&v)); ok(V_DISPATCH(&v) == (IDispatch*)&link_onload_obj, "V_DISPATCH(onload) != onloadkFunc\n"); VariantClear(&v);
str = SysAllocString(L"http://test.winehq.org/tests/winehq_snapshot/index_files/styles.css"); hres = IHTMLLinkElement_put_href(link, str); - ok(hres == S_OK, "put_src failed: %08x\n", hres); + ok(hres == S_OK, "put_src failed: %08lx\n", hres); SysFreeString(str);
SET_EXPECT(link_onload); @@ -2276,17 +2276,17 @@ static void test_focus(IHTMLDocument2 *doc)
V_VT(&v) = VT_EMPTY; hres = IHTMLElement2_get_onfocus(elem2, &v); - ok(hres == S_OK, "get_onfocus failed: %08x\n", hres); + ok(hres == S_OK, "get_onfocus failed: %08lx\n", hres); ok(V_VT(&v) == VT_NULL, "V_VT(onfocus) = %d\n", V_VT(&v));
V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&input_onfocus_obj; hres = IHTMLElement2_put_onfocus(elem2, v); - ok(hres == S_OK, "put_onfocus failed: %08x\n", hres); + ok(hres == S_OK, "put_onfocus failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLElement2_get_onfocus(elem2, &v); - ok(hres == S_OK, "get_onfocus failed: %08x\n", hres); + ok(hres == S_OK, "get_onfocus failed: %08lx\n", hres); ok(V_VT(&v) == VT_DISPATCH, "V_VT(onfocus) = %d\n", V_VT(&v)); ok(V_DISPATCH(&v) == (IDispatch*)&input_onfocus_obj, "V_DISPATCH(onfocus) != onfocusFunc\n"); VariantClear(&v); @@ -2294,18 +2294,18 @@ static void test_focus(IHTMLDocument2 *doc) V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&div_onfocusin_obj; hres = IHTMLElement4_put_onfocusin(div, v); - ok(hres == S_OK, "put_onfocusin failed: %08x\n", hres); + ok(hres == S_OK, "put_onfocusin failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLElement4_get_onfocusin(div, &v); - ok(hres == S_OK, "get_onfocusin failed: %08x\n", hres); + ok(hres == S_OK, "get_onfocusin failed: %08lx\n", hres); ok(V_VT(&v) == VT_DISPATCH, "V_VT(onfocusin) = %d\n", V_VT(&v)); ok(V_DISPATCH(&v) == (IDispatch*)&div_onfocusin_obj, "V_DISPATCH(onfocus) != onfocusFunc\n"); VariantClear(&v);
V_VT(&v) = VT_EMPTY; hres = IHTMLElement2_get_onfocus(elem2, &v); - ok(hres == S_OK, "get_onfocus failed: %08x\n", hres); + ok(hres == S_OK, "get_onfocus failed: %08lx\n", hres); ok(V_VT(&v) == VT_DISPATCH, "V_VT(onfocus) = %d\n", V_VT(&v)); ok(V_DISPATCH(&v) == (IDispatch*)&input_onfocus_obj, "V_DISPATCH(onfocus) != onfocusFunc\n"); VariantClear(&v); @@ -2317,7 +2317,7 @@ static void test_focus(IHTMLDocument2 *doc) ok(!IsChild(container_hwnd, GetFocus()), "focus belongs to document window\n");
hres = IHTMLWindow2_focus(window); - ok(hres == S_OK, "focus failed: %08x\n", hres); + ok(hres == S_OK, "focus failed: %08lx\n", hres);
ok(IsChild(container_hwnd, GetFocus()), "focus does not belong to document window\n"); pump_msgs(NULL); @@ -2325,7 +2325,7 @@ static void test_focus(IHTMLDocument2 *doc) SET_EXPECT(div_onfocusin); SET_EXPECT(input_onfocus); hres = IHTMLElement2_focus(elem2); - ok(hres == S_OK, "focus failed: %08x\n", hres); + ok(hres == S_OK, "focus failed: %08lx\n", hres); pump_msgs(NULL); CHECK_CALLED(div_onfocusin); CHECK_CALLED(input_onfocus); @@ -2338,12 +2338,12 @@ static void test_focus(IHTMLDocument2 *doc) V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&input_onblur_obj; hres = IHTMLElement2_put_onblur(elem2, v); - ok(hres == S_OK, "put_onblur failed: %08x\n", hres); + ok(hres == S_OK, "put_onblur failed: %08lx\n", hres);
V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&div_onfocusout_obj; hres = IHTMLElement4_put_onfocusout(div, v); - ok(hres == S_OK, "put_onfocusout failed: %08x\n", hres); + ok(hres == S_OK, "put_onfocusout failed: %08lx\n", hres);
SET_EXPECT(div_onfocusout); SET_EXPECT(input_onblur); @@ -2351,7 +2351,7 @@ static void test_focus(IHTMLDocument2 *doc) pump_msgs(NULL); CHECK_CALLED(input_onblur); CHECK_CALLED(div_onfocusout); - ok(hres == S_OK, "blur failed: %08x\n", hres); + ok(hres == S_OK, "blur failed: %08lx\n", hres);
if(!winetest_interactive) ShowWindow(container_hwnd, SW_HIDE); @@ -2379,16 +2379,16 @@ static void test_submit(IHTMLDocument2 *doc) V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&form_onclick_obj; hres = IHTMLElement_put_onclick(elem, v); - ok(hres == S_OK, "put_onclick failed: %08x\n", hres); + ok(hres == S_OK, "put_onclick failed: %08lx\n", hres);
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLFormElement, (void**)&form); IHTMLElement_Release(elem); - ok(hres == S_OK, "Could not get IHTMLFormElement iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLFormElement iface: %08lx\n", hres);
V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&form_onsubmit_obj; hres = IHTMLFormElement_put_onsubmit(form, v); - ok(hres == S_OK, "put_onsubmit failed: %08x\n", hres); + ok(hres == S_OK, "put_onsubmit failed: %08lx\n", hres);
IHTMLFormElement_Release(form);
@@ -2397,19 +2397,19 @@ static void test_submit(IHTMLDocument2 *doc) SET_EXPECT(form_onclick); SET_EXPECT(form_onsubmit); hres = IHTMLElement_click(submit); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres); CHECK_CALLED(form_onclick); CHECK_CALLED(form_onsubmit);
V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&submit_onclick_obj; hres = IHTMLElement_put_onclick(submit, v); - ok(hres == S_OK, "put_onclick failed: %08x\n", hres); + ok(hres == S_OK, "put_onclick failed: %08lx\n", hres);
SET_EXPECT(form_onclick); SET_EXPECT(submit_onclick); hres = IHTMLElement_click(submit); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres); CHECK_CALLED(form_onclick); CHECK_CALLED(submit_onclick);
@@ -2419,19 +2419,19 @@ static void test_submit(IHTMLDocument2 *doc) SET_EXPECT(submit_onclick); SET_EXPECT(submit_onclick_attached); hres = IHTMLElement_click(submit); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres); CHECK_CALLED(form_onclick); CHECK_CALLED(submit_onclick); CHECK_CALLED(submit_onclick_attached);
V_VT(&v) = VT_NULL; hres = IHTMLElement_put_onclick(submit, v); - ok(hres == S_OK, "put_onclick failed: %08x\n", hres); + ok(hres == S_OK, "put_onclick failed: %08lx\n", hres);
SET_EXPECT(form_onclick); SET_EXPECT(submit_onclick_attached); hres = IHTMLElement_click(submit); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres); CHECK_CALLED(form_onclick); CHECK_CALLED(submit_onclick_attached);
@@ -2442,7 +2442,7 @@ static void test_submit(IHTMLDocument2 *doc) SET_EXPECT(form_onclick); SET_EXPECT(doccp_onclick_cancel); hres = IHTMLElement_click(submit); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres); CHECK_CALLED(form_onclick); CHECK_CALLED(doccp_onclick_cancel);
@@ -2451,7 +2451,7 @@ static void test_submit(IHTMLDocument2 *doc) V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&submit_onclick_setret_obj; hres = IHTMLElement_put_onclick(submit, v); - ok(hres == S_OK, "put_onclick failed: %08x\n", hres); + ok(hres == S_OK, "put_onclick failed: %08lx\n", hres);
V_VT(&onclick_retval) = VT_BOOL; V_BOOL(&onclick_retval) = VARIANT_TRUE; @@ -2462,7 +2462,7 @@ static void test_submit(IHTMLDocument2 *doc) SET_EXPECT(form_onclick); SET_EXPECT(form_onsubmit); hres = IHTMLElement_click(submit); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres); CHECK_CALLED(submit_onclick_setret); CHECK_CALLED(form_onclick); CHECK_CALLED(form_onsubmit); @@ -2473,7 +2473,7 @@ static void test_submit(IHTMLDocument2 *doc) SET_EXPECT(submit_onclick_setret); SET_EXPECT(form_onclick); hres = IHTMLElement_click(submit); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres); CHECK_CALLED(submit_onclick_setret); CHECK_CALLED(form_onclick);
@@ -2485,7 +2485,7 @@ static void test_submit(IHTMLDocument2 *doc) SET_EXPECT(submit_onclick_setret); SET_EXPECT(form_onclick); hres = IHTMLElement_click(submit); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres); CHECK_CALLED(submit_onclick_setret); CHECK_CALLED(form_onclick);
@@ -2495,7 +2495,7 @@ static void test_submit(IHTMLDocument2 *doc) SET_EXPECT(submit_onclick_setret); SET_EXPECT(form_onclick); hres = IHTMLElement_click(submit); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres); CHECK_CALLED(submit_onclick_setret); CHECK_CALLED(form_onclick);
@@ -2505,13 +2505,13 @@ static void test_submit(IHTMLDocument2 *doc) V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&submit_onclick_cancel_obj; hres = IHTMLElement_put_onclick(submit, v); - ok(hres == S_OK, "put_onclick failed: %08x\n", hres); + ok(hres == S_OK, "put_onclick failed: %08lx\n", hres);
SET_EXPECT(submit_onclick_cancel); SET_EXPECT(submit_onclick_attached_check_cancel); SET_EXPECT(submit_onclick_attached); hres = IHTMLElement_click(submit); - ok(hres == S_OK, "click failed: %08x\n", hres); + ok(hres == S_OK, "click failed: %08lx\n", hres); CHECK_CALLED(submit_onclick_cancel); CHECK_CALLED(submit_onclick_attached_check_cancel); CHECK_CALLED(submit_onclick_attached); @@ -2529,25 +2529,25 @@ static void test_timeout(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLWindow2_QueryInterface(window, &IID_IHTMLWindow3, (void**)&win3); - ok(hres == S_OK, "Could not get IHTMLWindow3 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLWindow3 iface: %08lx\n", hres);
V_VT(&expr) = VT_DISPATCH; V_DISPATCH(&expr) = (IDispatch*)&timeoutFunc2; V_VT(&var) = VT_EMPTY; id = 0; hres = IHTMLWindow3_setInterval(win3, &expr, 1, &var, &id); - ok(hres == S_OK, "setInterval failed: %08x\n", hres); + ok(hres == S_OK, "setInterval failed: %08lx\n", hres); ok(id, "id = 0\n");
hres = IHTMLWindow2_clearTimeout(window, id); - ok(hres == S_OK, "clearTimeout failer: %08x\n", hres); + ok(hres == S_OK, "clearTimeout failer: %08lx\n", hres);
V_VT(&expr) = VT_DISPATCH; V_DISPATCH(&expr) = (IDispatch*)&timeoutFunc; V_VT(&var) = VT_EMPTY; id = 0; hres = IHTMLWindow3_setTimeout(win3, &expr, 0, &var, &id); - ok(hres == S_OK, "setTimeout failed: %08x\n", hres); + ok(hres == S_OK, "setTimeout failed: %08lx\n", hres); ok(id, "id = 0\n");
SET_EXPECT(timeout); @@ -2559,18 +2559,18 @@ static void test_timeout(IHTMLDocument2 *doc) V_VT(&var) = VT_EMPTY; id = 0; hres = IHTMLWindow3_setTimeout(win3, &expr, 0, &var, &id); - ok(hres == S_OK, "setTimeout failed: %08x\n", hres); + ok(hres == S_OK, "setTimeout failed: %08lx\n", hres); ok(id, "id = 0\n");
hres = IHTMLWindow2_clearTimeout(window, id); - ok(hres == S_OK, "clearTimeout failed: %08x\n", hres); + ok(hres == S_OK, "clearTimeout failed: %08lx\n", hres);
V_VT(&expr) = VT_DISPATCH; V_DISPATCH(&expr) = (IDispatch*)&timeoutFunc; V_VT(&var) = VT_EMPTY; id = 0; hres = IHTMLWindow3_setInterval(win3, &expr, 1, &var, &id); - ok(hres == S_OK, "setInterval failed: %08x\n", hres); + ok(hres == S_OK, "setInterval failed: %08lx\n", hres); ok(id, "id = 0\n");
SET_EXPECT(timeout); @@ -2582,7 +2582,7 @@ static void test_timeout(IHTMLDocument2 *doc) CHECK_CALLED(timeout);
hres = IHTMLWindow2_clearInterval(window, id); - ok(hres == S_OK, "clearTimeout failer: %08x\n", hres); + ok(hres == S_OK, "clearTimeout failer: %08lx\n", hres);
IHTMLWindow3_Release(win3); } @@ -2594,10 +2594,10 @@ static IHTMLWindow2 *get_iframe_window(IHTMLIFrameElement *iframe) HRESULT hres;
hres = IHTMLIFrameElement_QueryInterface(iframe, &IID_IHTMLFrameBase2, (void**)&base); - ok(hres == S_OK, "QueryInterface(IID_IHTMLFrameBase2) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IHTMLFrameBase2) failed: %08lx\n", hres);
hres = IHTMLFrameBase2_get_contentWindow(base, &window); - ok(hres == S_OK, "get_contentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_contentWindow failed: %08lx\n", hres); ok(window != NULL, "window == NULL\n");
IHTMLFrameBase2_Release(base); @@ -2613,7 +2613,7 @@ static IHTMLDocument2 *get_iframe_doc(IHTMLIFrameElement *iframe) window = get_iframe_window(iframe);
hres = IHTMLWindow2_get_document(window, &result); - ok(hres == S_OK, "get_document failed: %08x\n", hres); + ok(hres == S_OK, "get_document failed: %08lx\n", hres); ok(result != NULL, "result == NULL\n");
IHTMLWindow2_Release(window); @@ -2644,7 +2644,7 @@ static void test_iframe_connections(IHTMLDocument2 *doc) cp = get_cp((IUnknown*)doc, &IID_IDispatch); hres = IConnectionPoint_Unadvise(cp, cookie); IConnectionPoint_Release(cp); - ok(hres == CONNECT_E_NOCONNECTION, "Unadvise returned %08x, expected CONNECT_E_NOCONNECTION\n", hres); + ok(hres == CONNECT_E_NOCONNECTION, "Unadvise returned %08lx, expected CONNECT_E_NOCONNECTION\n", hres);
unregister_cp((IUnknown*)iframes_doc, &IID_IDispatch, cookie);
@@ -2653,18 +2653,18 @@ static void test_iframe_connections(IHTMLDocument2 *doc) VARIANT v;
hres = IHTMLIFrameElement_QueryInterface(iframe, &IID_IHTMLFrameBase2, (void**)&frame_base2); - ok(hres == S_OK, "Could not get IHTMLFrameBase2 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLFrameBase2 iface: %08lx\n", hres);
V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&iframe_onload_obj; hres = IHTMLFrameBase2_put_onload(frame_base2, v); - ok(hres == S_OK, "put_onload failed: %08x\n", hres); + ok(hres == S_OK, "put_onload failed: %08lx\n", hres);
IHTMLFrameBase2_Release(frame_base2);
str = SysAllocString(L"about:blank"); hres = IHTMLDocument2_put_URL(iframes_doc, str); - ok(hres == S_OK, "put_URL failed: %08x\n", hres); + ok(hres == S_OK, "put_URL failed: %08lx\n", hres); SysFreeString(str);
SET_EXPECT(iframe_onload); @@ -2673,7 +2673,7 @@ static void test_iframe_connections(IHTMLDocument2 *doc)
str = SysAllocString(L"about:test"); hres = IHTMLDocument2_put_URL(iframes_doc, str); - ok(hres == S_OK, "put_URL failed: %08x\n", hres); + ok(hres == S_OK, "put_URL failed: %08lx\n", hres); SysFreeString(str);
SET_EXPECT(iframe_onload); @@ -2704,37 +2704,37 @@ static void test_create_event(IHTMLDocument2 *doc) trace("createEvent tests...\n");
hres = IHTMLDocument2_QueryInterface(doc, &IID_IDocumentEvent, (void**)&doc_event); - ok(hres == S_OK, "Could not get IDocumentEvent iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDocumentEvent iface: %08lx\n", hres);
str = SysAllocString(L"Event"); hres = IDocumentEvent_createEvent(doc_event, str, &event); SysFreeString(str); - ok(hres == S_OK, "createEvent failed: %08x\n", hres); + ok(hres == S_OK, "createEvent failed: %08lx\n", hres);
phase = 0xdead; hres = IDOMEvent_get_eventPhase(event, &phase); - ok(hres == S_OK, "get_eventPhase failed: %08x\n", hres); + ok(hres == S_OK, "get_eventPhase failed: %08lx\n", hres); ok(!phase, "phase = %u\n", phase);
hres = IDOMEvent_preventDefault(event); - ok(hres == S_OK, "preventDefault failed: %08x\n", hres); + ok(hres == S_OK, "preventDefault failed: %08lx\n", hres);
hres = IDOMEvent_stopPropagation(event); - ok(hres == S_OK, "stopPropagation failed: %08x\n", hres); + ok(hres == S_OK, "stopPropagation failed: %08lx\n", hres);
str = (void*)0xdeadbeef; hres = IDOMEvent_get_type(event, &str); - ok(hres == S_OK, "get_type failed: %08x\n", hres); + ok(hres == S_OK, "get_type failed: %08lx\n", hres); ok(!str, "type = %s\n", wine_dbgstr_w(str));
b = 0xdead; hres = IDOMEvent_get_bubbles(event, &b); - ok(hres == S_OK, "get_bubbles failed: %08x\n", hres); + ok(hres == S_OK, "get_bubbles failed: %08lx\n", hres); ok(!b, "bubbles = %x\n", b);
b = 0xdead; hres = IDOMEvent_get_cancelable(event, &b); - ok(hres == S_OK, "get_cancelable failed: %08x\n", hres); + ok(hres == S_OK, "get_cancelable failed: %08lx\n", hres); ok(!b, "cancelable = %x\n", b);
elem = doc_get_body(doc); @@ -2742,27 +2742,27 @@ static void test_create_event(IHTMLDocument2 *doc) IHTMLElement_Release(elem);
hres = IEventTarget_dispatchEvent(event_target, NULL, &b); - ok(hres == E_INVALIDARG, "dispatchEvent failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "dispatchEvent failed: %08lx\n", hres);
IEventTarget_Release(event_target);
hres = IDOMEvent_QueryInterface(event, &IID_IDOMUIEvent, (void**)&ui_event); - ok(hres == E_NOINTERFACE, "QueryInterface(IID_IDOMUIEvent returned %08x\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface(IID_IDOMUIEvent returned %08lx\n", hres); hres = IDOMEvent_QueryInterface(event, &IID_IDOMMouseEvent, (void**)&mouse_event); - ok(hres == E_NOINTERFACE, "QueryInterface(IID_IDOMMouseEvent returned %08x\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface(IID_IDOMMouseEvent returned %08lx\n", hres);
IDOMEvent_Release(event);
str = SysAllocString(L"MouseEvent"); hres = IDocumentEvent_createEvent(doc_event, str, &event); SysFreeString(str); - ok(hres == S_OK, "createEvent failed: %08x\n", hres); + ok(hres == S_OK, "createEvent failed: %08lx\n", hres);
hres = IDOMEvent_QueryInterface(event, &IID_IDOMUIEvent, (void**)&ui_event); - ok(hres == S_OK, "QueryInterface(IID_IDOMUIEvent returned %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IDOMUIEvent returned %08lx\n", hres); IDOMUIEvent_Release(ui_event); hres = IDOMEvent_QueryInterface(event, &IID_IDOMMouseEvent, (void**)&mouse_event); - ok(hres == S_OK, "QueryInterface(IID_IDOMMouseEvent returned %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IDOMMouseEvent returned %08lx\n", hres); IDOMMouseEvent_Release(mouse_event);
IDOMEvent_Release(event); @@ -2770,26 +2770,26 @@ static void test_create_event(IHTMLDocument2 *doc) str = SysAllocString(L"UIEvent"); hres = IDocumentEvent_createEvent(doc_event, str, &event); SysFreeString(str); - ok(hres == S_OK, "createEvent failed: %08x\n", hres); + ok(hres == S_OK, "createEvent failed: %08lx\n", hres);
hres = IDOMEvent_QueryInterface(event, &IID_IDOMUIEvent, (void**)&ui_event); - ok(hres == S_OK, "QueryInterface(IID_IDOMUIEvent returned %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IDOMUIEvent returned %08lx\n", hres); IDOMUIEvent_Release(ui_event); hres = IDOMEvent_QueryInterface(event, &IID_IDOMMouseEvent, (void**)&mouse_event); - ok(hres == E_NOINTERFACE, "QueryInterface(IID_IDOMMouseEvent returned %08x\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface(IID_IDOMMouseEvent returned %08lx\n", hres);
IDOMEvent_Release(event);
str = SysAllocString(L"KeyboardEvent"); hres = IDocumentEvent_createEvent(doc_event, str, &event); SysFreeString(str); - ok(hres == S_OK, "createEvent failed: %08x\n", hres); + ok(hres == S_OK, "createEvent failed: %08lx\n", hres);
hres = IDOMEvent_QueryInterface(event, &IID_IDOMUIEvent, (void**)&ui_event); - ok(hres == S_OK, "QueryInterface(IID_IDOMUIEvent returned %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IDOMUIEvent returned %08lx\n", hres); IDOMUIEvent_Release(ui_event); hres = IDOMEvent_QueryInterface(event, &IID_IDOMKeyboardEvent, (void**)&keyboard_event); - ok(hres == S_OK, "QueryInterface(IID_IDOMKeyboardEvent returned %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IDOMKeyboardEvent returned %08lx\n", hres); IDOMKeyboardEvent_Release(keyboard_event);
IDOMEvent_Release(event); @@ -2797,10 +2797,10 @@ static void test_create_event(IHTMLDocument2 *doc) str = SysAllocString(L"CustomEvent"); hres = IDocumentEvent_createEvent(doc_event, str, &event); SysFreeString(str); - ok(hres == S_OK, "createEvent failed: %08x\n", hres); + ok(hres == S_OK, "createEvent failed: %08lx\n", hres);
hres = IDOMEvent_QueryInterface(event, &IID_IDOMCustomEvent, (void**)&custom_event); - ok(hres == S_OK, "QueryInterface(IID_IDOMCustomEvent returned %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IDOMCustomEvent returned %08lx\n", hres); IDOMCustomEvent_Release(custom_event);
IDOMEvent_Release(event); @@ -3132,23 +3132,23 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum HRESULT hres;
hres = IOleDocumentView_QueryInterface(pViewToActivate, &IID_IOleDocument, (void**)&document); - ok(hres == S_OK, "could not get IOleDocument: %08x\n", hres); + ok(hres == S_OK, "could not get IOleDocument: %08lx\n", hres);
hres = IOleDocument_CreateView(document, &InPlaceSite, NULL, 0, &view); IOleDocument_Release(document); - ok(hres == S_OK, "CreateView failed: %08x\n", hres); + ok(hres == S_OK, "CreateView failed: %08lx\n", hres);
hres = IOleDocumentView_SetInPlaceSite(view, &InPlaceSite); - ok(hres == S_OK, "SetInPlaceSite failed: %08x\n", hres); + ok(hres == S_OK, "SetInPlaceSite failed: %08lx\n", hres);
hres = IOleDocumentView_UIActivate(view, TRUE); - ok(hres == S_OK, "UIActivate failed: %08x\n", hres); + ok(hres == S_OK, "UIActivate failed: %08lx\n", hres);
hres = IOleDocumentView_SetRect(view, &rect); - ok(hres == S_OK, "SetRect failed: %08x\n", hres); + ok(hres == S_OK, "SetRect failed: %08lx\n", hres);
hres = IOleDocumentView_Show(view, TRUE); - ok(hres == S_OK, "Show failed: %08x\n", hres); + ok(hres == S_OK, "Show failed: %08lx\n", hres);
return S_OK; } @@ -3208,7 +3208,7 @@ static HRESULT WINAPI PropertyNotifySink_OnChanged(IPropertyNotifySink *iface, D HRESULT hres;
hres = IHTMLDocument2_get_readyState(notif_doc, &state); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres);
if(!lstrcmpW(state, L"complete")) doc_complete = TRUE; @@ -3250,10 +3250,10 @@ static void doc_load_string(IHTMLDocument2 *doc, const char *str) mem = GlobalAlloc(0, len); memcpy(mem, str, len); hres = CreateStreamOnHGlobal(mem, TRUE, &stream); - ok(hres == S_OK, "Failed to create a stream, hr %#x.\n", hres); + ok(hres == S_OK, "Failed to create a stream, hr %#lx.\n", hres);
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistStreamInit, (void**)&init); - ok(hres == S_OK, "Failed to get IPersistStreamInit, hr %#x.\n", hres); + ok(hres == S_OK, "Failed to get IPersistStreamInit, hr %#lx.\n", hres);
IPersistStreamInit_Load(init, stream); IPersistStreamInit_Release(init); @@ -3268,15 +3268,15 @@ static void do_advise(IUnknown *unk, REFIID riid, IUnknown *unk_advise) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IConnectionPointContainer, (void**)&container); - ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08lx\n", hres);
hres = IConnectionPointContainer_FindConnectionPoint(container, riid, &cp); IConnectionPointContainer_Release(container); - ok(hres == S_OK, "FindConnectionPoint failed: %08x\n", hres); + ok(hres == S_OK, "FindConnectionPoint failed: %08lx\n", hres);
hres = IConnectionPoint_Advise(cp, unk_advise, &cookie); IConnectionPoint_Release(cp); - ok(hres == S_OK, "Advise failed: %08x\n", hres); + ok(hres == S_OK, "Advise failed: %08lx\n", hres); }
static void set_client_site(IHTMLDocument2 *doc, BOOL set) @@ -3293,19 +3293,19 @@ static void set_client_site(IHTMLDocument2 *doc, BOOL set) }
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleObject, (void**)&oleobj); - ok(hres == S_OK, "Could not et IOleObject: %08x\n", hres); + ok(hres == S_OK, "Could not et IOleObject: %08lx\n", hres);
hres = IOleObject_SetClientSite(oleobj, set ? &ClientSite : NULL); - ok(hres == S_OK, "SetClientSite failed: %08x\n", hres); + ok(hres == S_OK, "SetClientSite failed: %08lx\n", hres);
if(set) { IHlinkTarget *hlink;
hres = IOleObject_QueryInterface(oleobj, &IID_IHlinkTarget, (void**)&hlink); - ok(hres == S_OK, "Could not get IHlinkTarget iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHlinkTarget iface: %08lx\n", hres);
hres = IHlinkTarget_Navigate(hlink, 0, NULL); - ok(hres == S_OK, "Navgate failed: %08x\n", hres); + ok(hres == S_OK, "Navgate failed: %08lx\n", hres);
IHlinkTarget_Release(hlink); } @@ -3322,7 +3322,7 @@ static IHTMLDocument2 *create_document(void) #if !defined(__i386__) && !defined(__x86_64__) todo_wine #endif - ok(hres == S_OK, "CoCreateInstance failed: %08x\n", hres); + ok(hres == S_OK, "CoCreateInstance failed: %08lx\n", hres); return SUCCEEDED(hres) ? doc : NULL; }
@@ -3349,7 +3349,7 @@ static void run_test(const char *str, testfunc_t test) }
hres = IHTMLDocument2_get_body(doc, &body); - ok(hres == S_OK, "get_body failed: %08x\n", hres); + ok(hres == S_OK, "get_body failed: %08lx\n", hres);
if(body) { IHTMLDocument6 *doc6; @@ -3360,7 +3360,7 @@ static void run_test(const char *str, testfunc_t test) if(SUCCEEDED(hres)) { VARIANT v; hres = IHTMLDocument6_get_documentMode(doc6, &v); - ok(hres == S_OK, "get_documentMode failed: %08x\n", hres); + ok(hres == S_OK, "get_documentMode failed: %08lx\n", hres); ok(V_VT(&v) == VT_R4, "V_VT(documentMode) = %u\n", V_VT(&v)); document_mode = V_R4(&v); IHTMLDocument6_Release(doc6); @@ -3369,7 +3369,7 @@ static void run_test(const char *str, testfunc_t test) }
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres); ok(window != NULL, "window == NULL\n");
test(doc); @@ -3420,18 +3420,18 @@ static void test_empty_document(void) return;
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres);
hres = IHTMLWindow2_get_document(window, &windows_doc); IHTMLWindow2_Release(window); - ok(hres == S_OK, "get_document failed: %08x\n", hres); + ok(hres == S_OK, "get_document failed: %08lx\n", hres);
cookie = register_cp((IUnknown*)windows_doc, &IID_IDispatch, (IUnknown*)&div_onclick_disp);
cp = get_cp((IUnknown*)doc, &IID_IDispatch); hres = IConnectionPoint_Unadvise(cp, cookie); IConnectionPoint_Release(cp); - ok(hres == S_OK, "Unadvise failed: %08x\n", hres); + ok(hres == S_OK, "Unadvise failed: %08lx\n", hres);
IHTMLDocument2_Release(windows_doc); IHTMLDocument2_Release(doc); diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c index 89311c5d8c8..ff050863b6f 100644 --- a/dlls/mshtml/tests/htmldoc.c +++ b/dlls/mshtml/tests/htmldoc.c @@ -366,15 +366,15 @@ static void _test_GetCurMoniker(unsigned line, IUnknown *unk, IMoniker *exmon, c return; /* FIXME */
hres = IUnknown_QueryInterface(unk, &IID_IPersistMoniker, (void**)&permon); - ok(hres == S_OK, "QueryInterface(IID_IPersistMoniker) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IPersistMoniker) failed: %08lx\n", hres); if(FAILED(hres)) return;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLDocument2, (void**)&doc); - ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument2) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument2) failed: %08lx\n", hres);
hres = IHTMLDocument2_get_URL(doc, &doc_url); - ok(hres == S_OK, "get_URL failed: %08x\n", hres); + ok(hres == S_OK, "get_URL failed: %08lx\n", hres); for(ptr = doc_url; *ptr && *ptr != '#'; ptr++);
hres = IPersistMoniker_GetCurMoniker(permon, &mon); @@ -385,13 +385,13 @@ static void _test_GetCurMoniker(unsigned line, IUnknown *unk, IMoniker *exmon, c BOOL exb = expect_GetDisplayName; BOOL clb = called_GetDisplayName;
- ok_(__FILE__,line)(hres == S_OK, "GetCurrentMoniker failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "GetCurrentMoniker failed: %08lx\n", hres); ok_(__FILE__,line)(mon == exmon, "mon(%p) != exmon(%p)\n", mon, exmon);
if(mon == &Moniker) SET_EXPECT(GetDisplayName); hres = IMoniker_GetDisplayName(mon, NULL, NULL, &url); - ok(hres == S_OK, "GetDisplayName failed: %08x\n", hres); + ok(hres == S_OK, "GetDisplayName failed: %08lx\n", hres); if(mon == &Moniker) CHECK_CALLED(GetDisplayName); expect_GetDisplayName = exb; @@ -406,10 +406,10 @@ static void _test_GetCurMoniker(unsigned line, IUnknown *unk, IMoniker *exmon, c }else if(exurl) { LPOLESTR url;
- ok_(__FILE__,line)(hres == S_OK, "GetCurrentMoniker failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "GetCurrentMoniker failed: %08lx\n", hres);
hres = IMoniker_GetDisplayName(mon, NULL, NULL, &url); - ok(hres == S_OK, "GetDisplayName failed: %08x\n", hres); + ok(hres == S_OK, "GetDisplayName failed: %08lx\n", hres);
todo_wine_if(is_todo) ok_(__FILE__,line)(!lstrcmpW(url, exurl), "unexpected url %s\n", wine_dbgstr_w(url)); @@ -419,7 +419,7 @@ static void _test_GetCurMoniker(unsigned line, IUnknown *unk, IMoniker *exmon, c CoTaskMemFree(url); }else { ok_(__FILE__,line)(hres == E_UNEXPECTED, - "GetCurrentMoniker failed: %08x, expected E_UNEXPECTED\n", hres); + "GetCurrentMoniker failed: %08lx, expected E_UNEXPECTED\n", hres); ok_(__FILE__,line)(mon == (IMoniker*)0xdeadbeef, "mon=%p\n", mon); ok_(__FILE__,line)(!lstrcmpW(doc_url, L"about:blank"), "doc_url is not about:blank\n"); } @@ -438,10 +438,10 @@ static void _test_current_url(unsigned line, IUnknown *unk, const WCHAR *exurl) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLDocument2, (void**)&doc); - ok_(__FILE__,line)(hres == S_OK, "QueryInterface(IID_IHTMLDocument2) failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "QueryInterface(IID_IHTMLDocument2) failed: %08lx\n", hres);
hres = IHTMLDocument2_get_URL(doc, &url); - ok_(__FILE__,line)(hres == S_OK, "get_URL failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_URL failed: %08lx\n", hres); ok_(__FILE__,line)(!lstrcmpW(url, exurl), "Unexpected URL %s, expected %s\n", wine_dbgstr_w(url), wine_dbgstr_w(exurl)); SysFreeString(url); @@ -558,68 +558,68 @@ static HRESULT WINAPI Protocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
ok(pOIProtSink != NULL, "pOIProtSink == NULL\n"); ok(pOIBindInfo != NULL, "pOIBindInfo == NULL\n"); - ok(!grfPI, "grfPI = %x\n", grfPI); - ok(!dwReserved, "dwReserved = %lx\n", dwReserved); + ok(!grfPI, "grfPI = %lx\n", grfPI); + ok(!dwReserved, "dwReserved = %Ix\n", dwReserved); if(is_mhtml) ok(!lstrcmpW(szUrl, L"winetest:doc"), "unexpected URL %s\n", wine_dbgstr_w(szUrl));
memset(&bindinfo, 0, sizeof(bindinfo)); bindinfo.cbSize = sizeof(bindinfo); hres = IInternetBindInfo_GetBindInfo(pOIBindInfo, &bindf, &bindinfo); - ok(hres == S_OK, "GetBindInfo failed: %08x\n", hres); + ok(hres == S_OK, "GetBindInfo failed: %08lx\n", hres); if(!testing_submit) todo_wine_if(is_mhtml) ok(bindf == (BINDF_FROMURLMON|BINDF_PULLDATA|BINDF_NEEDFILE|BINDF_ASYNCSTORAGE|BINDF_ASYNCHRONOUS), - "bindf = %x\n", bindf); + "bindf = %lx\n", bindf); else ok(bindf == (BINDF_FROMURLMON|BINDF_FORMS_SUBMIT|BINDF_PRAGMA_NO_CACHE|BINDF_HYPERLINK |BINDF_PULLDATA|BINDF_NEEDFILE|BINDF_GETNEWESTVERSION|BINDF_ASYNCSTORAGE|BINDF_ASYNCHRONOUS), - "bindf = %x\n", bindf); + "bindf = %lx\n", bindf);
- ok(bindinfo.cbSize == sizeof(bindinfo), "bindinfo.cbSize=%d\n", bindinfo.cbSize); + ok(bindinfo.cbSize == sizeof(bindinfo), "bindinfo.cbSize=%ld\n", bindinfo.cbSize); ok(bindinfo.szExtraInfo == NULL, "bindinfo.szExtraInfo=%p\n", bindinfo.szExtraInfo); /* TODO: test stgmedData */ - ok(bindinfo.grfBindInfoF == 0, "bindinfo.grfBinfInfoF=%08x\n", bindinfo.grfBindInfoF); + ok(bindinfo.grfBindInfoF == 0, "bindinfo.grfBinfInfoF=%08lx\n", bindinfo.grfBindInfoF); if(!testing_submit) { - ok(bindinfo.dwBindVerb == BINDVERB_GET, "bindinfo.dwBindVerb=%d\n", bindinfo.dwBindVerb); - ok(bindinfo.cbstgmedData == 0, "bindinfo.cbstgmedData=%d\n", bindinfo.cbstgmedData); - ok(bindinfo.stgmedData.tymed == TYMED_NULL, "bindinfo.stgmedData.tymed=%d\n", bindinfo.stgmedData.tymed); + ok(bindinfo.dwBindVerb == BINDVERB_GET, "bindinfo.dwBindVerb=%ld\n", bindinfo.dwBindVerb); + ok(bindinfo.cbstgmedData == 0, "bindinfo.cbstgmedData=%ld\n", bindinfo.cbstgmedData); + ok(bindinfo.stgmedData.tymed == TYMED_NULL, "bindinfo.stgmedData.tymed=%ld\n", bindinfo.stgmedData.tymed); }else { - ok(bindinfo.dwBindVerb == BINDVERB_POST, "bindinfo.dwBindVerb=%d\n", bindinfo.dwBindVerb); - ok(bindinfo.cbstgmedData == 8, "bindinfo.cbstgmedData=%d\n", bindinfo.cbstgmedData); - ok(bindinfo.stgmedData.tymed == TYMED_HGLOBAL, "bindinfo.stgmedData.tymed=%d\n", bindinfo.stgmedData.tymed); + ok(bindinfo.dwBindVerb == BINDVERB_POST, "bindinfo.dwBindVerb=%ld\n", bindinfo.dwBindVerb); + ok(bindinfo.cbstgmedData == 8, "bindinfo.cbstgmedData=%ld\n", bindinfo.cbstgmedData); + ok(bindinfo.stgmedData.tymed == TYMED_HGLOBAL, "bindinfo.stgmedData.tymed=%ld\n", bindinfo.stgmedData.tymed); ok(!memcmp(U(bindinfo.stgmedData).hGlobal, "cmd=TEST", 8), "unexpected hGlobal\n"); } ok(bindinfo.szCustomVerb == 0, "bindinfo.szCustomVerb=%p\n", bindinfo.szCustomVerb); if(is_mhtml) - ok(!bindinfo.dwOptions, "bindinfo.dwOptions=%x\n", bindinfo.dwOptions); + ok(!bindinfo.dwOptions, "bindinfo.dwOptions=%lx\n", bindinfo.dwOptions); else ok(bindinfo.dwOptions == 0x80000 || bindinfo.dwOptions == 0x4080000, /* win2k3 */ - "bindinfo.dwOptions=%x\n", bindinfo.dwOptions); - ok(bindinfo.dwOptionsFlags == 0, "bindinfo.dwOptionsFlags=%d\n", bindinfo.dwOptionsFlags); + "bindinfo.dwOptions=%lx\n", bindinfo.dwOptions); + ok(bindinfo.dwOptionsFlags == 0, "bindinfo.dwOptionsFlags=%ld\n", bindinfo.dwOptionsFlags); /* TODO: test dwCodePage */ /* TODO: test securityAttributes */ ok(IsEqualGUID(&IID_NULL, &bindinfo.iid), "unexpected bindinfo.iid\n"); ok(bindinfo.pUnk == NULL, "bindinfo.pUnk=%p\n", bindinfo.pUnk); - ok(bindinfo.dwReserved == 0, "bindinfo.dwReserved=%d\n", bindinfo.dwReserved); + ok(bindinfo.dwReserved == 0, "bindinfo.dwReserved=%ld\n", bindinfo.dwReserved);
hres = IInternetProtocolSink_ReportProgress(pOIProtSink, BINDSTATUS_CACHEFILENAMEAVAILABLE, &empty_str); - ok(hres == S_OK, "ReportProgress(BINDSTATUS_CACHEFILENAMEAVAILABLE) failed: %08x\n", hres); + ok(hres == S_OK, "ReportProgress(BINDSTATUS_CACHEFILENAMEAVAILABLE) failed: %08lx\n", hres);
if(report_mime) { hres = IInternetProtocolSink_ReportProgress(pOIProtSink, BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE, wszTextCss); ok(hres == S_OK, - "ReportProgress(BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE) failed: %08x\n", hres); + "ReportProgress(BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE) failed: %08lx\n", hres); }
hres = IInternetProtocolSink_ReportData(pOIProtSink, BSCF_FIRSTDATANOTIFICATION | BSCF_LASTDATANOTIFICATION, 13, 13); - ok(hres == S_OK, "ReportData failed: %08x\n", hres); + ok(hres == S_OK, "ReportData failed: %08lx\n", hres);
hres = IInternetProtocolSink_ReportResult(pOIProtSink, S_OK, 0, NULL); - ok(hres == S_OK, "ReportResult failed: %08x\n", hres); + ok(hres == S_OK, "ReportResult failed: %08lx\n", hres);
return S_OK; } @@ -667,7 +667,7 @@ static HRESULT WINAPI Protocol_Read(IInternetProtocol *iface, void *pv, ok(pv != NULL, "pv == NULL\n"); ok(cb > data_len, "cb < data_len\n"); ok(pcbRead != NULL, "pcbRead == NULL\n"); - ok(!*pcbRead || *pcbRead == data_len, "*pcbRead=%d\n", *pcbRead); + ok(!*pcbRead || *pcbRead == data_len, "*pcbRead=%ld\n", *pcbRead);
if(protocol_read) { *pcbRead = 0; @@ -800,7 +800,7 @@ static HRESULT WINAPI HlinkFrame_Navigate(IHlinkFrame *iface, DWORD grfHLNF, LPB
CHECK_EXPECT(Navigate);
- ok(grfHLNF == 0, "grfHLNF=%d, expected 0\n", grfHLNF); + ok(grfHLNF == 0, "grfHLNF=%ld, expected 0\n", grfHLNF); ok(pbc != NULL, "pbc == NULL\n"); ok(pibsc != NULL, "pubsc == NULL\n"); ok(pihlNavigate != NULL, "puhlNavigate == NULL\n"); @@ -813,25 +813,25 @@ static HRESULT WINAPI HlinkFrame_Navigate(IHlinkFrame *iface, DWORD grfHLNF, LPB DWORD site_data = 0xdeadbeef;
hres = IHlink_GetTargetFrameName(pihlNavigate, &frame_name); - ok(hres == S_FALSE, "GetTargetFrameName failed: %08x\n", hres); + ok(hres == S_FALSE, "GetTargetFrameName failed: %08lx\n", hres); ok(frame_name == NULL, "frame_name = %p\n", frame_name);
hres = IHlink_GetMonikerReference(pihlNavigate, 1, &mon, &location); - ok(hres == S_OK, "GetMonikerReference failed: %08x\n", hres); + ok(hres == S_OK, "GetMonikerReference failed: %08lx\n", hres); ok(location == NULL, "location = %p\n", location); ok(mon != NULL, "mon == NULL\n");
hres = IMoniker_GetDisplayName(mon, NULL, NULL, &location); - ok(hres == S_OK, "GetDisplayName failed: %08x\n", hres); + ok(hres == S_OK, "GetDisplayName failed: %08lx\n", hres); ok(!lstrcmpW(location, nav_url), "unexpected display name %s, expected %s\n", wine_dbgstr_w(location), wine_dbgstr_w(nav_url)); CoTaskMemFree(location); IMoniker_Release(mon);
hres = IHlink_GetHlinkSite(pihlNavigate, &site, &site_data); - ok(hres == S_OK, "GetHlinkSite failed: %08x\n", hres); + ok(hres == S_OK, "GetHlinkSite failed: %08lx\n", hres); ok(site == NULL, "site = %p\n, expected NULL\n", site); - ok(site_data == 0xdeadbeef, "site_data = %x\n", site_data); + ok(site_data == 0xdeadbeef, "site_data = %lx\n", site_data); }
return S_OK; @@ -897,8 +897,8 @@ static HRESULT WINAPI NewWindowManager_EvaluateNewWindow(INewWindowManager *ifac ok(!lstrcmpW(pszUrlContext, prev_url), "pszUrlContext = %s\n", wine_dbgstr_w(pszUrlContext)); ok(!pszFeatures, "pszFeatures = %s\n", wine_dbgstr_w(pszFeatures)); ok(!fReplace, "fReplace = %x\n", fReplace); - ok(dwFlags == (allow_new_window ? 0 : NWMF_FIRST), "dwFlags = %x\n", dwFlags); - ok(!dwUserActionTime, "dwUserActionime = %d\n", dwUserActionTime); + ok(dwFlags == (allow_new_window ? 0 : NWMF_FIRST), "dwFlags = %lx\n", dwFlags); + ok(!dwUserActionTime, "dwUserActionime = %ld\n", dwUserActionTime);
return allow_new_window ? S_OK : E_FAIL; } @@ -984,7 +984,7 @@ static HRESULT WINAPI PropertyNotifySink_OnChanged(IPropertyNotifySink *iface, D return S_OK; }
- ok(0, "unexpected id %d\n", dispID); + ok(0, "unexpected id %ld\n", dispID); return E_NOTIMPL; }
@@ -1031,9 +1031,9 @@ static HRESULT WINAPI Stream_Read(IStream *iface, void *pv, { CHECK_EXPECT2(Read); ok(pv != NULL, "pv == NULL\n"); - ok(cb > sizeof(html_page), "cb = %d\n", cb); + ok(cb > sizeof(html_page), "cb = %ld\n", cb); ok(pcbRead != NULL, "pcbRead == NULL\n"); - ok(!*pcbRead, "*pcbRead = %d\n", *pcbRead); + ok(!*pcbRead, "*pcbRead = %ld\n", *pcbRead);
if(stream_read) return S_FALSE; @@ -1175,7 +1175,7 @@ static HRESULT WINAPI WinInetHttpInfo_QueryInfo(
if(dwOption == (HTTP_QUERY_STATUS_CODE|HTTP_QUERY_FLAG_NUMBER)) { ok(pBuffer != NULL, "pBuffer == NULL\n"); - ok(*pcbBuf == sizeof(DWORD), "*pcbBuf = %d\n", *pcbBuf); + ok(*pcbBuf == sizeof(DWORD), "*pcbBuf = %ld\n", *pcbBuf); ok(pdwFlags == NULL, "*pdwFlags != NULL\n"); *((DWORD*)pBuffer) = status_code; return S_OK; @@ -1353,28 +1353,28 @@ static void test_binding_ui(IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IServiceProvider, (void**)&serv_prov); - ok(hres == S_OK, "Could not get IServiceProvider: %08x\n", hres); + ok(hres == S_OK, "Could not get IServiceProvider: %08lx\n", hres);
hres = IServiceProvider_QueryService(serv_prov, &IID_IWindowForBindingUI, &IID_IWindowForBindingUI, (void**)&binding_ui); - ok(hres == S_OK, "Could not get IWindowForBindingUI: %08x\n", hres); + ok(hres == S_OK, "Could not get IWindowForBindingUI: %08lx\n", hres);
hres = IWindowForBindingUI_GetWindow(binding_ui, &IID_IHttpSecurity, &binding_hwnd); - ok(hres == S_OK, "GetWindow(IID_IHttpSecurity) failed: %08x\n", hres); + ok(hres == S_OK, "GetWindow(IID_IHttpSecurity) failed: %08lx\n", hres); if(doc_hwnd) ok(binding_hwnd == doc_hwnd, "binding_hwnd != doc_hwnd\n"); else todo_wine ok(binding_hwnd != NULL, "binding_hwnd == NULL\n");
hres = IWindowForBindingUI_GetWindow(binding_ui, &IID_IAuthenticate, &binding_hwnd); - ok(hres == S_OK, "GetWindow(IID_IHttpSecurity) failed: %08x\n", hres); + ok(hres == S_OK, "GetWindow(IID_IHttpSecurity) failed: %08lx\n", hres); if(doc_hwnd) ok(binding_hwnd == doc_hwnd, "binding_hwnd != doc_hwnd\n"); else todo_wine ok(binding_hwnd != NULL, "binding_hwnd == NULL\n");
hres = IWindowForBindingUI_GetWindow(binding_ui, &IID_IWindowForBindingUI, &binding_hwnd); - ok(hres == S_OK, "GetWindow(IID_IHttpSecurity) failed: %08x\n", hres); + ok(hres == S_OK, "GetWindow(IID_IHttpSecurity) failed: %08lx\n", hres); if(doc_hwnd) ok(binding_hwnd == doc_hwnd, "binding_hwnd != doc_hwnd\n"); else @@ -1397,12 +1397,12 @@ static void continue_binding(IBindStatusCallback *callback) if(report_mime) { hres = IBindStatusCallback_OnProgress(callback, 0, 0, BINDSTATUS_MIMETYPEAVAILABLE, wszTextHtml); - ok(hres == S_OK, "OnProgress(BINDSTATUS_MIMETYPEAVAILABLE) failed: %08x\n", hres); + ok(hres == S_OK, "OnProgress(BINDSTATUS_MIMETYPEAVAILABLE) failed: %08lx\n", hres); }
hres = IBindStatusCallback_OnProgress(callback, sizeof(html_page)-1, sizeof(html_page)-1, BINDSTATUS_BEGINDOWNLOADDATA, doc_url); - ok(hres == S_OK, "OnProgress(BINDSTATUS_BEGINDOWNLOADDATA) failed: %08x\n", hres); + ok(hres == S_OK, "OnProgress(BINDSTATUS_BEGINDOWNLOADDATA) failed: %08lx\n", hres); if(status_code != HTTP_STATUS_OK) { CHECK_CALLED_BROKEN(IsErrorUrl); SET_EXPECT(IsErrorUrl); @@ -1415,16 +1415,16 @@ static void continue_binding(IBindStatusCallback *callback) hres = IBindStatusCallback_OnDataAvailable(callback, BSCF_FIRSTDATANOTIFICATION|BSCF_LASTDATANOTIFICATION, sizeof(html_page)-1, &formatetc, &stgmedium); - ok(hres == S_OK, "OnDataAvailable failed: %08x\n", hres); + ok(hres == S_OK, "OnDataAvailable failed: %08lx\n", hres); CHECK_CALLED(Read);
hres = IBindStatusCallback_OnProgress(callback, sizeof(html_page)-1, sizeof(html_page)-1, BINDSTATUS_ENDDOWNLOADDATA, NULL); - ok(hres == S_OK, "OnProgress(BINDSTATUS_ENDDOWNLOADDATA) failed: %08x\n", hres); + ok(hres == S_OK, "OnProgress(BINDSTATUS_ENDDOWNLOADDATA) failed: %08lx\n", hres);
SET_EXPECT(GetBindResult); hres = IBindStatusCallback_OnStopBinding(callback, S_OK, NULL); - ok(hres == S_OK, "OnStopBinding failed: %08x\n", hres); + ok(hres == S_OK, "OnStopBinding failed: %08lx\n", hres); CLEAR_CALLED(GetBindResult); /* IE7 */
IBindStatusCallback_Release(callback); @@ -1453,42 +1453,42 @@ static HRESULT WINAPI Moniker_BindToStorage(IMoniker *iface, IBindCtx *pbc, IMon ok(*ppv == NULL, "*ppv=%p\n", *ppv);
hres = IBindCtx_GetObjectParam(pbc, BSCBHolder, (IUnknown**)&callback); - ok(hres == S_OK, "GetObjectParam failed: %08x\n", hres); + ok(hres == S_OK, "GetObjectParam failed: %08lx\n", hres); ok(callback != NULL, "callback == NULL\n");
memset(&bindinfo, 0xf0, sizeof(bindinfo)); bindinfo.cbSize = sizeof(bindinfo);
hres = IBindStatusCallback_GetBindInfo(callback, &bindf, &bindinfo); - ok(hres == S_OK, "GetBindInfo failed: %08x\n", hres); - ok((bindf & ~BINDF_HYPERLINK /* IE9 */) == (BINDF_PULLDATA|BINDF_ASYNCSTORAGE|BINDF_ASYNCHRONOUS), "bindf = %08x\n", bindf); - ok(bindinfo.cbSize == sizeof(bindinfo), "bindinfo.cbSize=%d\n", bindinfo.cbSize); + ok(hres == S_OK, "GetBindInfo failed: %08lx\n", hres); + ok((bindf & ~BINDF_HYPERLINK /* IE9 */) == (BINDF_PULLDATA|BINDF_ASYNCSTORAGE|BINDF_ASYNCHRONOUS), "bindf = %08lx\n", bindf); + ok(bindinfo.cbSize == sizeof(bindinfo), "bindinfo.cbSize=%ld\n", bindinfo.cbSize); ok(bindinfo.szExtraInfo == NULL, "bindinfo.szExtraInfo=%p\n", bindinfo.szExtraInfo); /* TODO: test stgmedData */ - ok(bindinfo.grfBindInfoF == 0, "bindinfo.grfBinfInfoF=%08x\n", bindinfo.grfBindInfoF); - ok(bindinfo.dwBindVerb == 0, "bindinfo.dwBindVerb=%d\n", bindinfo.dwBindVerb); + ok(bindinfo.grfBindInfoF == 0, "bindinfo.grfBinfInfoF=%08lx\n", bindinfo.grfBindInfoF); + ok(bindinfo.dwBindVerb == 0, "bindinfo.dwBindVerb=%ld\n", bindinfo.dwBindVerb); ok(bindinfo.szCustomVerb == 0, "bindinfo.szCustomVerb=%p\n", bindinfo.szCustomVerb); - ok(bindinfo.cbstgmedData == 0, "bindinfo.cbstgmedData=%d\n", bindinfo.cbstgmedData); + ok(bindinfo.cbstgmedData == 0, "bindinfo.cbstgmedData=%ld\n", bindinfo.cbstgmedData); ok(bindinfo.dwOptions == 0x80000 || bindinfo.dwOptions == 0x4080000, - "bindinfo.dwOptions=%x\n", bindinfo.dwOptions); - ok(bindinfo.dwOptionsFlags == 0, "bindinfo.dwOptionsFlags=%d\n", bindinfo.dwOptionsFlags); + "bindinfo.dwOptions=%lx\n", bindinfo.dwOptions); + ok(bindinfo.dwOptionsFlags == 0, "bindinfo.dwOptionsFlags=%ld\n", bindinfo.dwOptionsFlags); /* TODO: test dwCodePage */ /* TODO: test securityAttributes */ ok(IsEqualGUID(&IID_NULL, &bindinfo.iid), "unexpected bindinfo.iid\n"); ok(bindinfo.pUnk == NULL, "bindinfo.pUnk=%p\n", bindinfo.pUnk); - ok(bindinfo.dwReserved == 0, "bindinfo.dwReserved=%d\n", bindinfo.dwReserved); + ok(bindinfo.dwReserved == 0, "bindinfo.dwReserved=%ld\n", bindinfo.dwReserved);
hres = IBindStatusCallback_QueryInterface(callback, &IID_IServiceProvider, (void**)&service_provider); - ok(hres == S_OK, "Could not get IServiceProvider iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IServiceProvider iface: %08lx\n", hres);
hres = IServiceProvider_QueryService(service_provider, &IID_IBindCallbackRedirect, &IID_IBindCallbackRedirect, (void**)&redirect_callback); - ok(hres == S_OK, "QueryService(IID_IBindCallbackRedirect) returned %08x\n", hres); + ok(hres == S_OK, "QueryService(IID_IBindCallbackRedirect) returned %08lx\n", hres);
IBindCallbackRedirect_Release(redirect_callback); IServiceProvider_Release(service_provider);
hres = IBindStatusCallback_OnStartBinding(callback, 0, &Binding); - ok(hres == S_OK, "OnStartBinding failed: %08x\n", hres); + ok(hres == S_OK, "OnStartBinding failed: %08lx\n", hres);
if(asynchronous_binding) { PostMessageW(container_hwnd, WM_CONTINUE_BINDING, (WPARAM)callback, 0); @@ -1936,11 +1936,11 @@ static HRESULT WINAPI InPlaceSiteWindowless_GetWindow( *phwnd = container_hwnd;
hres = IUnknown_QueryInterface(doc_unk, &IID_IOleObject, (void**)&ole_obj); - ok(hres == S_OK, "Could not get IOleObject: %08x\n", hres); + ok(hres == S_OK, "Could not get IOleObject: %08lx\n", hres);
hres = IOleObject_GetClientSite(ole_obj, &client_site); IOleObject_Release(ole_obj); - ok(hres == S_OK, "GetClientSite failed: %08x\n", hres); + ok(hres == S_OK, "GetClientSite failed: %08lx\n", hres); ok(client_site == &ClientSite, "client_site != ClientSite\n"); IOleClientSite_Release(client_site);
@@ -2060,7 +2060,7 @@ static HRESULT WINAPI InPlaceSiteWindowless_OnInPlaceActivateEx(
ok(pfNoRedraw != NULL, "pfNoRedraw == NULL\n"); ok(!*pfNoRedraw, "*pfNoRedraw == TRUE\n"); - ok(dwFlags == 0, "dwFlags = %08x\n", dwFlags); + ok(dwFlags == 0, "dwFlags = %08lx\n", dwFlags);
return S_OK; } @@ -2236,11 +2236,11 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum ok(pViewToActivate != NULL, "pViewToActivate = NULL\n");
hres = IOleDocumentView_QueryInterface(pViewToActivate, &IID_IOleDocument, (void**)&document); - ok(hres == S_OK, "could not get IOleDocument: %08x\n", hres); + ok(hres == S_OK, "could not get IOleDocument: %08lx\n", hres);
if(SUCCEEDED(hres)) { hres = IOleDocument_CreateView(document, (IOleInPlaceSite*)&InPlaceSiteWindowless, NULL, 0, &view); - ok(hres == S_OK, "CreateView failed: %08x\n", hres); + ok(hres == S_OK, "CreateView failed: %08lx\n", hres);
if(SUCCEEDED(hres)) { IOleInPlaceActiveObject *activeobj = NULL; @@ -2249,25 +2249,25 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum static RECT rect = {0,0,400,500};
hres = IOleDocumentView_GetInPlaceSite(view, &inplacesite); - ok(hres == S_OK, "GetInPlaceSite failed: %08x\n", hres); + ok(hres == S_OK, "GetInPlaceSite failed: %08lx\n", hres); ok(inplacesite == (IOleInPlaceSite*)&InPlaceSiteWindowless, "inplacesite=%p, expected %p\n", inplacesite, &InPlaceSiteWindowless);
hres = IOleDocumentView_SetInPlaceSite(view, (IOleInPlaceSite*)&InPlaceSiteWindowless); - ok(hres == S_OK, "SetInPlaceSite failed: %08x\n", hres); + ok(hres == S_OK, "SetInPlaceSite failed: %08lx\n", hres);
hres = IOleDocumentView_GetInPlaceSite(view, &inplacesite); - ok(hres == S_OK, "GetInPlaceSite failed: %08x\n", hres); + ok(hres == S_OK, "GetInPlaceSite failed: %08lx\n", hres); ok(inplacesite == (IOleInPlaceSite*)&InPlaceSiteWindowless, "inplacesite=%p, expected %p\n", inplacesite, &InPlaceSiteWindowless);
hres = IOleDocumentView_QueryInterface(view, &IID_IOleInPlaceActiveObject, (void**)&activeobj); - ok(hres == S_OK, "Could not get IOleInPlaceActiveObject: %08x\n", hres); + ok(hres == S_OK, "Could not get IOleInPlaceActiveObject: %08lx\n", hres);
if(activeobj) { HWND hwnd = (void*)0xdeadbeef; hres = IOleInPlaceActiveObject_GetWindow(activeobj, &hwnd); - ok(hres == E_FAIL, "GetWindow returned %08x, expected E_FAIL\n", hres); + ok(hres == E_FAIL, "GetWindow returned %08lx, expected E_FAIL\n", hres); ok(hwnd == NULL, "hwnd=%p, expected NULL\n", hwnd); }
@@ -2288,7 +2288,7 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum expect_status_text = NULL;
hres = IOleDocumentView_UIActivate(view, TRUE); - ok(hres == S_OK, "UIActivate failed: %08x\n", hres); + ok(hres == S_OK, "UIActivate failed: %08lx\n", hres);
CHECK_CALLED(CanInPlaceActivate); CHECK_CALLED(GetWindowContext); @@ -2306,28 +2306,28 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum
if(activeobj) { hres = IOleInPlaceActiveObject_GetWindow(activeobj, &doc_hwnd); - ok(hres == S_OK, "GetWindow failed: %08x\n", hres); + ok(hres == S_OK, "GetWindow failed: %08lx\n", hres); ok(doc_hwnd != NULL, "hwnd == NULL\n"); if(last_hwnd) ok(doc_hwnd == last_hwnd, "hwnd != last_hwnd\n"); }
hres = IOleDocumentView_UIActivate(view, TRUE); - ok(hres == S_OK, "UIActivate failed: %08x\n", hres); + ok(hres == S_OK, "UIActivate failed: %08lx\n", hres);
if(activeobj) { hres = IOleInPlaceActiveObject_GetWindow(activeobj, &tmp_hwnd); - ok(hres == S_OK, "GetWindow failed: %08x\n", hres); + ok(hres == S_OK, "GetWindow failed: %08lx\n", hres); ok(tmp_hwnd == doc_hwnd, "tmp_hwnd=%p, expected %p\n", tmp_hwnd, doc_hwnd); } }
hres = IOleDocumentView_SetRect(view, &rect); - ok(hres == S_OK, "SetRect failed: %08x\n", hres); + ok(hres == S_OK, "SetRect failed: %08lx\n", hres);
if(call_UIActivate == CallUIActivate_ActivateMe) { hres = IOleDocumentView_Show(view, TRUE); - ok(hres == S_OK, "Show failed: %08x\n", hres); + ok(hres == S_OK, "Show failed: %08lx\n", hres); }else { SET_EXPECT(CanInPlaceActivate); SET_EXPECT(GetWindowContext); @@ -2343,7 +2343,7 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum expect_status_text = (load_state == LD_COMPLETE ? (LPCOLESTR)0xdeadbeef : NULL);
hres = IOleDocumentView_Show(view, TRUE); - ok(hres == S_OK, "Show failed: %08x\n", hres); + ok(hres == S_OK, "Show failed: %08lx\n", hres);
CHECK_CALLED(CanInPlaceActivate); CHECK_CALLED(GetWindowContext); @@ -2358,7 +2358,7 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum
if(activeobj) { hres = IOleInPlaceActiveObject_GetWindow(activeobj, &doc_hwnd); - ok(hres == S_OK, "GetWindow failed: %08x\n", hres); + ok(hres == S_OK, "GetWindow failed: %08lx\n", hres); ok(doc_hwnd != NULL, "doc_hwnd == NULL\n"); if(last_hwnd) ok(doc_hwnd == last_hwnd, "doc_hwnd != last_hwnd\n"); @@ -2495,12 +2495,12 @@ static HRESULT WINAPI DocHostUIHandler_GetHostInfo(IDocHostUIHandler2 *iface, DO ok(iface == expect_uihandler_iface, "called on unexpected iface\n"); ok(pInfo != NULL, "pInfo=NULL\n"); if(pInfo) { - ok(pInfo->cbSize == sizeof(DOCHOSTUIINFO), "pInfo->cbSize=%u\n", pInfo->cbSize); - ok(!pInfo->dwFlags, "pInfo->dwFlags=%08x, expected 0\n", pInfo->dwFlags); + ok(pInfo->cbSize == sizeof(DOCHOSTUIINFO), "pInfo->cbSize=%lu\n", pInfo->cbSize); + ok(!pInfo->dwFlags, "pInfo->dwFlags=%08lx, expected 0\n", pInfo->dwFlags); pInfo->dwFlags = DOCHOSTUIFLAG_DISABLE_HELP_MENU | DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE | DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY | DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION | DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION; - ok(!pInfo->dwDoubleClick, "pInfo->dwDoubleClick=%08x, expected 0\n", pInfo->dwDoubleClick); + ok(!pInfo->dwDoubleClick, "pInfo->dwDoubleClick=%08lx, expected 0\n", pInfo->dwDoubleClick); ok(!pInfo->pchHostCss, "pInfo->pchHostCss=%p, expected NULL\n", pInfo->pchHostCss); ok(!pInfo->pchHostNS, "pInfo->pchhostNS=%p, expected NULL\n", pInfo->pchHostNS); } @@ -2515,9 +2515,9 @@ static HRESULT WINAPI DocHostUIHandler_ShowUI(IDocHostUIHandler2 *iface, DWORD d ok(iface == expect_uihandler_iface, "called on unexpected iface\n");
if (editmode) - ok(dwID == DOCHOSTUITYPE_AUTHOR, "dwID=%d, expected DOCHOSTUITYPE_AUTHOR\n", dwID); + ok(dwID == DOCHOSTUITYPE_AUTHOR, "dwID=%ld, expected DOCHOSTUITYPE_AUTHOR\n", dwID); else - ok(dwID == DOCHOSTUITYPE_BROWSE, "dwID=%d, expected DOCHOSTUITYPE_BROWSE\n", dwID); + ok(dwID == DOCHOSTUITYPE_BROWSE, "dwID=%ld, expected DOCHOSTUITYPE_BROWSE\n", dwID); ok(pActiveObject != NULL, "pActiveObject = NULL\n"); ok(pCommandTarget != NULL, "pCommandTarget = NULL\n"); ok(pFrame == &InPlaceFrame, "pFrame=%p, expected %p\n", pFrame, &InPlaceFrame); @@ -2590,7 +2590,7 @@ static HRESULT WINAPI DocHostUIHandler_GetOptionKeyPath(IDocHostUIHandler2 *ifac CHECK_EXPECT(GetOptionKeyPath); ok(iface == expect_uihandler_iface, "called on unexpected iface\n"); ok(pchKey != NULL, "pchKey = NULL\n"); - ok(!dw, "dw=%d, expected 0\n", dw); + ok(!dw, "dw=%ld, expected 0\n", dw); if(pchKey) ok(!*pchKey, "*pchKey=%p, expected NULL\n", *pchKey); return S_OK; @@ -2618,7 +2618,7 @@ static HRESULT WINAPI DocHostUIHandler_TranslateUrl(IDocHostUIHandler2 *iface, D { CHECK_EXPECT(TranslateUrl); ok(iface == expect_uihandler_iface, "called on unexpected iface\n"); - ok(!dwTranslate, "dwTranslate = %x\n", dwTranslate); + ok(!dwTranslate, "dwTranslate = %lx\n", dwTranslate); todo_wine_if(loading_hash) ok(!lstrcmpW(pchURLIn, nav_serv_url), "pchURLIn = %s, expected %s\n", wine_dbgstr_w(pchURLIn), wine_dbgstr_w(nav_serv_url)); @@ -2650,7 +2650,7 @@ static HRESULT WINAPI DocHostUIHandler_GetOverrideKeyPath(IDocHostUIHandler2 *if ok(pchKey != NULL, "pchKey = NULL\n"); if(pchKey) ok(!*pchKey, "*pchKey=%p, expected NULL\n", *pchKey); - ok(!dw, "dw=%d, expected 0\n", dw); + ok(!dw, "dw=%ld, expected 0\n", dw); return S_OK; }
@@ -2741,7 +2741,7 @@ static HRESULT WINAPI OleCommandTarget_QueryStatus(IOleCommandTarget *iface, con ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText) { ok(!pguidCmdGroup, "pguidCmdGroup != MULL\n"); - ok(cCmds == 1, "cCmds=%d, expected 1\n", cCmds); + ok(cCmds == 1, "cCmds=%ld, expected 1\n", cCmds); ok(!pCmdText, "pCmdText != NULL\n");
switch(prgCmds[0].cmdID) { @@ -2758,7 +2758,7 @@ static HRESULT WINAPI OleCommandTarget_QueryStatus(IOleCommandTarget *iface, con prgCmds[0].cmdf = 0; return S_OK; default: - ok(0, "unexpected command %d\n", prgCmds[0].cmdID); + ok(0, "unexpected command %ld\n", prgCmds[0].cmdID); };
return E_FAIL; @@ -2772,18 +2772,18 @@ static void test_save_history(IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IPersistHistory, (void**)&per_hist); - ok(hres == S_OK, "Could not get IPersistHistory iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IPersistHistory iface: %08lx\n", hres);
hres = CreateStreamOnHGlobal(NULL, TRUE, &stream); - ok(hres == S_OK, "CreateStreamOnHGlobal failed: %08x\n", hres); + ok(hres == S_OK, "CreateStreamOnHGlobal failed: %08lx\n", hres);
hres = IPersistHistory_SaveHistory(per_hist, stream); - ok(hres == S_OK, "SaveHistory failed: %08x\n", hres); + ok(hres == S_OK, "SaveHistory failed: %08lx\n", hres); IPersistHistory_Release(per_hist);
li.QuadPart = 0; hres = IStream_Seek(stream, li, STREAM_SEEK_SET, NULL); - ok(hres == S_OK, "Stat failed: %08x\n", hres); + ok(hres == S_OK, "Stat failed: %08lx\n", hres); history_stream = stream; }
@@ -2799,29 +2799,29 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID switch(nCmdID) { case OLECMDID_SETPROGRESSMAX: CHECK_EXPECT2(Exec_SETPROGRESSMAX); - ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08x\n", nCmdexecopt); + ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08lx\n", nCmdexecopt); ok(pvaIn != NULL, "pvaIn == NULL\n"); if(pvaIn) { ok(V_VT(pvaIn) == VT_I4, "V_VT(pvaIn)=%d, expected VT_I4\n", V_VT(pvaIn)); if(load_state == LD_NO) - ok(V_I4(pvaIn) == 0, "V_I4(pvaIn)=%d, expected 0\n", V_I4(pvaIn)); + ok(V_I4(pvaIn) == 0, "V_I4(pvaIn)=%ld, expected 0\n", V_I4(pvaIn)); } ok(pvaOut == NULL, "pvaOut=%p, expected NULL\n", pvaOut); return S_OK; case OLECMDID_SETPROGRESSPOS: CHECK_EXPECT2(Exec_SETPROGRESSPOS); - ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08x\n", nCmdexecopt); + ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08lx\n", nCmdexecopt); ok(pvaIn != NULL, "pvaIn == NULL\n"); if(pvaIn) { ok(V_VT(pvaIn) == VT_I4, "V_VT(pvaIn)=%d, expected VT_I4\n", V_VT(pvaIn)); if(load_state == LD_NO) - ok(V_I4(pvaIn) == 0, "V_I4(pvaIn)=%d, expected 0\n", V_I4(pvaIn)); + ok(V_I4(pvaIn) == 0, "V_I4(pvaIn)=%ld, expected 0\n", V_I4(pvaIn)); } ok(pvaOut == NULL, "pvaOut=%p, expected NULL\n", pvaOut); return S_OK; case OLECMDID_HTTPEQUIV_DONE: CHECK_EXPECT(Exec_HTTPEQUIV_DONE); - ok(nCmdexecopt == 0, "nCmdexecopts=%08x\n", nCmdexecopt); + ok(nCmdexecopt == 0, "nCmdexecopts=%08lx\n", nCmdexecopt); ok(pvaOut == NULL, "pvaOut=%p\n", pvaOut); ok(pvaIn == NULL, "pvaIn=%p\n", pvaIn); readystate_set_loading = FALSE; @@ -2829,7 +2829,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID load_state = LD_COMPLETE; return S_OK; case OLECMDID_SETDOWNLOADSTATE: - ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08x\n", nCmdexecopt); + ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08lx\n", nCmdexecopt); ok(pvaOut == NULL, "pvaOut=%p\n", pvaOut); ok(pvaIn != NULL, "pvaIn == NULL\n"); ok(V_VT(pvaIn) == VT_I4, "V_VT(pvaIn)=%d\n", V_VT(pvaIn)); @@ -2845,19 +2845,19 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID readystate_set_interactive = (load_state != LD_INTERACTIVE); break; default: - ok(0, "unexpected V_I4(pvaIn)=%d\n", V_I4(pvaIn)); + ok(0, "unexpected V_I4(pvaIn)=%ld\n", V_I4(pvaIn)); }
return S_OK; case OLECMDID_UPDATECOMMANDS: CHECK_EXPECT(Exec_UPDATECOMMANDS); - ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08x\n", nCmdexecopt); + ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08lx\n", nCmdexecopt); ok(pvaIn == NULL, "pvaIn=%p\n", pvaIn); ok(pvaOut == NULL, "pvaOut=%p\n", pvaOut); return S_OK; case OLECMDID_SETTITLE: CHECK_EXPECT2(Exec_SETTITLE); - ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08x\n", nCmdexecopt); + ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08lx\n", nCmdexecopt); ok(pvaIn != NULL, "pvaIn == NULL\n"); ok(pvaOut == NULL, "pvaOut=%p\n", pvaOut); ok(V_VT(pvaIn) == VT_BSTR, "V_VT(pvaIn)=%d\n", V_VT(pvaIn)); @@ -2865,7 +2865,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID return S_OK; case OLECMDID_HTTPEQUIV: CHECK_EXPECT2(Exec_HTTPEQUIV); - ok(!nCmdexecopt, "nCmdexecopts=%08x\n", nCmdexecopt); + ok(!nCmdexecopt, "nCmdexecopts=%08lx\n", nCmdexecopt); ok(pvaIn != NULL, "pvaIn == NULL\n"); ok(pvaOut == NULL, "pvaOut=%p\n", pvaOut); ok(V_VT(pvaIn) == VT_BSTR, "V_VT(pvaIn)=%d\n", V_VT(pvaIn)); @@ -2877,13 +2877,13 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID case 6058: return E_FAIL; /* FIXME */ default: - ok(0, "unexpected command %d\n", nCmdID); + ok(0, "unexpected command %ld\n", nCmdID); return E_FAIL; }; }
if(IsEqualGUID(&CGID_ShellDocView, pguidCmdGroup)) { - ok(nCmdexecopt == 0, "nCmdexecopts=%08x\n", nCmdexecopt); + ok(nCmdexecopt == 0, "nCmdexecopts=%08lx\n", nCmdexecopt);
switch(nCmdID) { case 37: @@ -2910,7 +2910,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID ok(pvaIn != NULL, "pvaIn == NULL\n"); if(pvaIn) { ok(V_VT(pvaIn) == VT_I4, "V_VT(pvaIn)=%d, expected VT_I4\n", V_VT(pvaIn)); - ok(V_I4(pvaIn) == 0, "V_I4(pvaIn)=%d, expected 0\n", V_I4(pvaIn)); + ok(V_I4(pvaIn) == 0, "V_I4(pvaIn)=%ld, expected 0\n", V_I4(pvaIn)); } return S_OK;
@@ -2932,7 +2932,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID ok(V_VT(pvaOut) == VT_EMPTY, "V_VT(pvaOut) = %d\n", V_VT(pvaOut));
hres = IUnknown_QueryInterface(V_UNKNOWN(pvaIn), &IID_IHTMLPrivateWindow, (void**)&priv_window); - ok(hres == S_OK, "Could not get IHTMLPrivateWindow: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLPrivateWindow: %08lx\n", hres); if(SUCCEEDED(hres)) IHTMLPrivateWindow_Release(priv_window);
@@ -3019,14 +3019,14 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID return E_NOTIMPL;
default: - ok(0, "unexpected command %d\n", nCmdID); + ok(0, "unexpected command %ld\n", nCmdID); return E_FAIL; }; }
if(IsEqualGUID(&CGID_MSHTML, pguidCmdGroup)) { test_readyState(NULL); - ok(nCmdexecopt == 0, "nCmdexecopts=%08x\n", nCmdexecopt); + ok(nCmdexecopt == 0, "nCmdexecopts=%08lx\n", nCmdexecopt);
switch(nCmdID) { case IDM_PARSECOMPLETE: @@ -3035,7 +3035,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID ok(pvaOut == NULL, "pvaOut != NULL\n"); return S_OK; default: - ok(0, "unexpected command %d\n", nCmdID); + ok(0, "unexpected command %ld\n", nCmdID); }; }
@@ -3072,16 +3072,16 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID dim = SafeArrayGetDim(sa); ok(dim == 1, "dim = %d\n", dim); hres = SafeArrayGetLBound(sa, 1, &ind); - ok(hres == S_OK, "SafeArrayGetLBound failed: %x\n", hres); - ok(ind == 0, "Lower bound = %d\n", ind); + ok(hres == S_OK, "SafeArrayGetLBound failed: %lx\n", hres); + ok(ind == 0, "Lower bound = %ld\n", ind); hres = SafeArrayGetUBound(sa, 1, &ind); - ok(hres == S_OK, "SafeArrayGetUBound failed: %x\n", hres); - ok(ind == 7 || ind == 8 /* IE11 */ ||broken(ind == 5), "Upper bound = %d\n", ind); + ok(hres == S_OK, "SafeArrayGetUBound failed: %lx\n", hres); + ok(ind == 7 || ind == 8 /* IE11 */ ||broken(ind == 5), "Upper bound = %ld\n", ind);
ind = 0; SafeArrayGetElement(sa, &ind, &var); ok(V_VT(&var) == VT_I4, "Incorrect data type: %d\n", V_VT(&var)); - ok(V_I4(&var) == status_code, "Incorrect error code: %d\n", V_I4(&var)); + ok(V_I4(&var) == status_code, "Incorrect error code: %ld\n", V_I4(&var)); VariantClear(&var); ind = 1; SafeArrayGetElement(sa, &ind, &var); @@ -3114,14 +3114,14 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
if(IsEqualGUID(&CGID_Explorer, pguidCmdGroup)) { test_readyState(NULL); - ok(nCmdexecopt == 0, "nCmdexecopts=%08x\n", nCmdexecopt); + ok(nCmdexecopt == 0, "nCmdexecopts=%08lx\n", nCmdexecopt);
switch(nCmdID) { case 38: CHECK_EXPECT2(Exec_Explorer_38); ok(pvaIn != NULL, "pvaIn == NULL\n"); ok(V_VT(pvaIn) == VT_I4 , "V_VT(pvaIn) = %d\n", V_VT(pvaIn)); - ok(!V_I4(pvaIn), "V_I4(pvaIn) = %d\n", V_I4(pvaIn)); + ok(!V_I4(pvaIn), "V_I4(pvaIn) = %ld\n", V_I4(pvaIn)); ok(!pvaOut, "pvaOut != NULL\n");
test_current_url(doc_unk, prev_url); @@ -3137,7 +3137,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID case 109: /* TODO */ return E_NOTIMPL; default: - ok(0, "unexpected cmd %d of CGID_Explorer\n", nCmdID); + ok(0, "unexpected cmd %ld of CGID_Explorer\n", nCmdID); } return E_NOTIMPL; } @@ -3158,7 +3158,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID CHECK_EXPECT(Exec_DocHostCommandHandler_2300); return E_NOTIMPL; default: - ok(0, "unexpected command %d\n", nCmdID); + ok(0, "unexpected command %ld\n", nCmdID); return E_FAIL; } } @@ -3224,7 +3224,7 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID dispIdMember, REF return E_FAIL; };
- ok(0, "unexpected dispid %d\n", dispIdMember); + ok(0, "unexpected dispid %ld\n", dispIdMember); return E_FAIL; }
@@ -3270,12 +3270,12 @@ static HRESULT WINAPI EventDispatch_Invoke(IDispatch *iface, DISPID dispIdMember ok(wFlags == DISPATCH_METHOD, "wFlags = %d, expected DISPATCH_METHOD\n", wFlags);
hres = IUnknown_QueryInterface(doc_unk, &IID_IHTMLDocument2, (void**)&doc); - ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument2) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument2) failed: %08lx\n", hres);
switch(dispIdMember) { case DISPID_HTMLDOCUMENTEVENTS2_ONREADYSTATECHANGE: hres = IHTMLDocument2_get_readyState(doc, &state); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres);
if(!lstrcmpW(state, L"interactive")) CHECK_EXPECT(Invoke_OnReadyStateChange_Interactive); @@ -3302,7 +3302,7 @@ static HRESULT WINAPI EventDispatch_Invoke(IDispatch *iface, DISPID dispIdMember case 1049: break; /* FIXME: Handle these events. */ default: - ok(0, "Unexpected DISPID: %d\n", dispIdMember); + ok(0, "Unexpected DISPID: %ld\n", dispIdMember); }
IHTMLDocument2_Release(doc); @@ -3467,15 +3467,15 @@ static HRESULT WINAPI DocObjectService_FireBeforeNavigate2(IDocObjectService *i
ok(!pDispatch, "pDispatch = %p\n", pDispatch); ok(!lstrcmpW(lpszUrl, nav_url), "lpszUrl = %s, expected %s\n", wine_dbgstr_w(lpszUrl), wine_dbgstr_w(nav_url)); - ok(dwFlags == 0x140 /* IE11*/ || dwFlags == 0x40 || !dwFlags || dwFlags == 0x50, "dwFlags = %x\n", dwFlags); + ok(dwFlags == 0x140 /* IE11*/ || dwFlags == 0x40 || !dwFlags || dwFlags == 0x50, "dwFlags = %lx\n", dwFlags); ok(!lpszFrameName, "lpszFrameName = %s\n", wine_dbgstr_w(lpszFrameName)); if(!testing_submit) { ok(!pPostData, "pPostData = %p\n", pPostData); - ok(!cbPostData, "cbPostData = %d\n", cbPostData); + ok(!cbPostData, "cbPostData = %ld\n", cbPostData); ok(!lpszHeaders || !lstrcmpW(lpszHeaders, L"Referer: http://test.winehq.org/tests/winehq_snapshot/%5Cr%5Cn"), "lpszHeaders = %s\n", wine_dbgstr_w(lpszHeaders)); }else { - ok(cbPostData == 9, "cbPostData = %d\n", cbPostData); + ok(cbPostData == 9, "cbPostData = %ld\n", cbPostData); ok(!memcmp(pPostData, "cmd=TEST", cbPostData), "pPostData = %p\n", pPostData); ok(wcsstr(lpszHeaders, L"Content-Type: application/x-www-form-urlencoded\r\n") != NULL, "lpszHeaders = %s\n", wine_dbgstr_w(lpszHeaders)); @@ -3497,9 +3497,9 @@ static HRESULT WINAPI DocObjectService_FireNavigateComplete2( test_readyState(NULL);
if(loading_hash) - ok(dwFlags == 0x10 || broken(!dwFlags), "dwFlags = %x, expected 0x10\n", dwFlags); + ok(dwFlags == 0x10 || broken(!dwFlags), "dwFlags = %lx, expected 0x10\n", dwFlags); else - ok(!(dwFlags &~1), "dwFlags = %x\n", dwFlags); + ok(!(dwFlags &~1), "dwFlags = %lx\n", dwFlags);
ok(pHTMLWindow2 != NULL, "pHTMLWindow2 = NULL\n");
@@ -3528,7 +3528,7 @@ static HRESULT WINAPI DocObjectService_FireDocumentComplete( CHECK_EXPECT(FireDocumentComplete);
ok(pHTMLWindow != NULL, "pHTMLWindow == NULL\n"); - ok(!dwFlags, "dwFlags = %x\n", dwFlags); + ok(!dwFlags, "dwFlags = %lx\n", dwFlags);
return S_OK; } @@ -4108,7 +4108,7 @@ static HRESULT WINAPI WBE2Sink_Invoke(IDispatch *iface, DISPID dispIdMember, REF return S_OK; } default: - ok(0, "unexpected id %d\n", dispIdMember); + ok(0, "unexpected id %ld\n", dispIdMember); }
return E_NOTIMPL; @@ -4148,7 +4148,7 @@ static HRESULT WINAPI EnumConnections_Next(IEnumConnections *iface, ULONG cConne { CHECK_EXPECT2(EnumConnections_Next);
- ok(cConnections == 1, "cConnections = %d\n", cConnections); + ok(cConnections == 1, "cConnections = %ld\n", cConnections); ok(pcFetched != NULL, "pcFetched == NULL\n");
if(next_called) { @@ -4310,7 +4310,7 @@ static void test_NavigateWithBindCtx(BSTR uri, VARIANT *flags, VARIANT *target_f { ok(!lstrcmpW(uri, nav_url), "uri = %s\n", wine_dbgstr_w(uri)); ok(V_VT(flags) == VT_I4, "V_VT(flags) = %d\n", V_VT(flags)); - ok(V_I4(flags) == navHyperlink, "V_I4(flags) = %x\n", V_I4(flags)); + ok(V_I4(flags) == navHyperlink, "V_I4(flags) = %lx\n", V_I4(flags)); ok(!target_frame, "target_frame != NULL\n"); ok(!post_data, "post_data != NULL\n"); ok(!headers, "headers != NULL\n"); @@ -4389,7 +4389,7 @@ static HRESULT WINAPI WebBrowserPriv2IE8_NavigateWithBindCtx2(IWebBrowserPriv2IE CHECK_EXPECT(NavigateWithBindCtx);
hres = IUri_GetDisplayUri(uri, &str); - ok(hres == S_OK, "GetDisplayUri failed: %08x\n", hres); + ok(hres == S_OK, "GetDisplayUri failed: %08lx\n", hres); test_NavigateWithBindCtx(str, flags, target_frame, post_data, headers, bind_ctx, url_fragment); SysFreeString(str); return S_OK; @@ -4486,7 +4486,7 @@ static HRESULT WINAPI WebBrowserPriv2IE9_NavigateWithBindCtx2(IWebBrowserPriv2IE CHECK_EXPECT(NavigateWithBindCtx);
hres = IUri_GetDisplayUri(uri, &str); - ok(hres == S_OK, "GetDisplayUri failed: %08x\n", hres); + ok(hres == S_OK, "GetDisplayUri failed: %08lx\n", hres); test_NavigateWithBindCtx(str, flags, target_frame, post_data, headers, bind_ctx, url_fragment); SysFreeString(str); return S_OK; @@ -5227,8 +5227,8 @@ static void WINAPI ViewAdviseSink_OnViewChange(IAdviseSinkEx *iface, { CHECK_EXPECT2(OnViewChange);
- ok(dwAspect == DVASPECT_CONTENT, "dwAspect = %d\n", dwAspect); - ok(lindex == -1, "lindex = %d\n", lindex); + ok(dwAspect == DVASPECT_CONTENT, "dwAspect = %ld\n", dwAspect); + ok(lindex == -1, "lindex = %ld\n", lindex); }
static const IAdviseSinkExVtbl ViewAdviseSinkVtbl = { @@ -5321,13 +5321,13 @@ static void test_doscroll(IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLDocument3, (void**)&doc); - ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08lx\n", hres); if(FAILED(hres)) return;
hres = IHTMLDocument3_get_documentElement(doc, &elem); IHTMLDocument3_Release(doc); - ok(hres == S_OK, "get_documentElement failed: %08x\n", hres); + ok(hres == S_OK, "get_documentElement failed: %08lx\n", hres); switch(load_state) { case LD_DOLOAD: case LD_NO: @@ -5344,7 +5344,7 @@ static void test_doscroll(IUnknown *unk)
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLElement2, (void**)&elem2); IHTMLElement_Release(elem); - ok(hres == S_OK, "Could not get IHTMLElement2 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLElement2 iface: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"left"); @@ -5353,11 +5353,11 @@ static void test_doscroll(IUnknown *unk) IHTMLElement2_Release(elem2);
if(inplace_deactivated) - ok(hres == E_PENDING, "doScroll failed: %08x\n", hres); + ok(hres == E_PENDING, "doScroll failed: %08lx\n", hres); else if(load_state == LD_COMPLETE) - ok(hres == S_OK, "doScroll failed: %08x\n", hres); + ok(hres == S_OK, "doScroll failed: %08lx\n", hres); else - ok(hres == E_PENDING || hres == S_OK, "doScroll failed: %08x\n", hres); + ok(hres == E_PENDING || hres == S_OK, "doScroll failed: %08lx\n", hres); }
static void _test_readyState(unsigned line, IUnknown *unk) @@ -5385,15 +5385,15 @@ static void _test_readyState(unsigned line, IUnknown *unk) unk = doc_unk;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLDocument2, (void**)&htmldoc); - ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument2) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument2) failed: %08lx\n", hres); if(FAILED(hres)) return;
hres = IHTMLDocument2_get_readyState(htmldoc, NULL); - ok(hres == E_POINTER, "get_readyState failed: %08x, expected\n", hres); + ok(hres == E_POINTER, "get_readyState failed: %08lx, expected\n", hres);
hres = IHTMLDocument2_get_readyState(htmldoc, &state); - ok(hres == S_OK, "get_ReadyState failed: %08x\n", hres); + ok(hres == S_OK, "get_ReadyState failed: %08lx\n", hres);
if(!lstrcmpW(state, L"interactive") && load_state == LD_LOADING) load_state = LD_INTERACTIVE; @@ -5404,18 +5404,18 @@ static void _test_readyState(unsigned line, IUnknown *unk) SysFreeString(state);
hres = IHTMLDocument2_get_body(htmldoc, &elem); - ok_(__FILE__,line)(hres == S_OK, "get_body failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_body failed: %08lx\n", hres); if(elem) { IHTMLElement2 *elem2; VARIANT var;
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLElement2, (void**)&elem2); IHTMLElement_Release(elem); - ok(hres == S_OK, "Could not get IHTMLElement2 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLElement2 iface: %08lx\n", hres);
hres = IHTMLElement2_get_readyState(elem2, &var); IHTMLElement2_Release(elem2); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres); ok(V_VT(&var) == VT_BSTR, "V_VT(state) = %d\n", V_VT(&var)); ok(!lstrcmpW(V_BSTR(&var), L"complete"), "unexpected body state %s\n", wine_dbgstr_w(V_BSTR(&var))); VariantClear(&var); @@ -5432,10 +5432,10 @@ static void _test_readyState(unsigned line, IUnknown *unk)
hres = IHTMLDocument2_Invoke(htmldoc, DISPID_READYSTATE, &IID_NULL, 0, DISPATCH_PROPERTYGET, &dispparams, &out, NULL, NULL); - ok(hres == S_OK, "Invoke(DISPID_READYSTATE) failed: %08x\n", hres); + ok(hres == S_OK, "Invoke(DISPID_READYSTATE) failed: %08lx\n", hres);
ok_(__FILE__,line) (V_VT(&out) == VT_I4, "V_VT(out)=%d\n", V_VT(&out)); - ok_(__FILE__,line) (V_I4(&out) == load_state%5, "VT_I4(out)=%d, expected %d\n", V_I4(&out), load_state%5); + ok_(__FILE__,line) (V_I4(&out) == load_state%5, "VT_I4(out)=%ld, expected %d\n", V_I4(&out), load_state%5);
test_doscroll((IUnknown*)htmldoc);
@@ -5448,10 +5448,10 @@ static void test_ViewAdviseSink(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IViewObject, (void**)&view); - ok(hres == S_OK, "QueryInterface(IID_IViewObject) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IViewObject) failed: %08lx\n", hres);
hres = IViewObject_SetAdvise(view, DVASPECT_CONTENT, ADVF_PRIMEFIRST, (IAdviseSink*)&ViewAdviseSink); - ok(hres == S_OK, "SetAdvise failed: %08x\n", hres); + ok(hres == S_OK, "SetAdvise failed: %08lx\n", hres);
IViewObject_Release(view); } @@ -5465,55 +5465,55 @@ static void test_ConnectionPoint(IConnectionPointContainer *container, REFIID ri DWORD cookie;
hres = IConnectionPointContainer_FindConnectionPoint(container, riid, &cp); - ok(hres == S_OK, "FindConnectionPoint failed: %08x\n", hres); + ok(hres == S_OK, "FindConnectionPoint failed: %08lx\n", hres); if(FAILED(hres)) return;
hres = IConnectionPoint_GetConnectionInterface(cp, &iid); - ok(hres == S_OK, "GetConnectionInterface failed: %08x\n", hres); + ok(hres == S_OK, "GetConnectionInterface failed: %08lx\n", hres); ok(IsEqualGUID(riid, &iid), "wrong iid\n");
hres = IConnectionPoint_GetConnectionInterface(cp, NULL); - ok(hres == E_POINTER, "GetConnectionInterface failed: %08x, expected E_POINTER\n", hres); + ok(hres == E_POINTER, "GetConnectionInterface failed: %08lx, expected E_POINTER\n", hres);
hres = IConnectionPoint_GetConnectionPointContainer(cp, &tmp_container); - ok(hres == S_OK, "GetConnectionPointContainer failed: %08x\n", hres); + ok(hres == S_OK, "GetConnectionPointContainer failed: %08lx\n", hres); ok(tmp_container == container, "container != tmp_container\n"); if(SUCCEEDED(hres)) IConnectionPointContainer_Release(tmp_container);
hres = IConnectionPoint_GetConnectionPointContainer(cp, NULL); - ok(hres == E_POINTER, "GetConnectionPointContainer failed: %08x, expected E_POINTER\n", hres); + ok(hres == E_POINTER, "GetConnectionPointContainer failed: %08lx, expected E_POINTER\n", hres);
if(IsEqualGUID(&IID_IPropertyNotifySink, riid)) { hres = IConnectionPoint_Advise(cp, (IUnknown*)&PropertyNotifySink, &cookie); - ok(hres == S_OK, "Advise failed: %08x\n", hres); + ok(hres == S_OK, "Advise failed: %08lx\n", hres); hres = IConnectionPoint_Unadvise(cp, cookie); - ok(hres == S_OK, "Unadvise failed: %08x\n", hres); + ok(hres == S_OK, "Unadvise failed: %08lx\n", hres); hres = IConnectionPoint_Advise(cp, (IUnknown*)&PropertyNotifySink, NULL); - ok(hres == S_OK, "Advise failed: %08x\n", hres); + ok(hres == S_OK, "Advise failed: %08lx\n", hres); } else if(IsEqualGUID(&IID_IDispatch, riid)) { IEnumConnections *enum_conn; CONNECTDATA conn_data; ULONG fetched;
hres = IConnectionPoint_Advise(cp, (IUnknown*)&EventDispatch, &cookie); - ok(hres == S_OK, "Advise failed: %08x\n", hres); + ok(hres == S_OK, "Advise failed: %08lx\n", hres);
hres = IConnectionPoint_EnumConnections(cp, &enum_conn); - ok(hres == S_OK, "EnumConnections failed: %08x\n", hres); + ok(hres == S_OK, "EnumConnections failed: %08lx\n", hres);
fetched = 0; hres = IEnumConnections_Next(enum_conn, 1, &conn_data, &fetched); - ok(hres == S_OK, "Next failed: %08x\n", hres); + ok(hres == S_OK, "Next failed: %08lx\n", hres); ok(conn_data.pUnk == (IUnknown*)&EventDispatch, "conn_data.pUnk == EventDispatch\n"); ok(conn_data.dwCookie == cookie, "conn_data.dwCookie != cookie\n"); IUnknown_Release(conn_data.pUnk);
fetched = 0xdeadbeef; hres = IEnumConnections_Next(enum_conn, 1, &conn_data, &fetched); - ok(hres == S_FALSE, "Next failed: %08x\n", hres); - ok(!fetched, "fetched = %d\n", fetched); + ok(hres == S_FALSE, "Next failed: %08lx\n", hres); + ok(!fetched, "fetched = %ld\n", fetched);
IEnumConnections_Release(enum_conn); } @@ -5527,7 +5527,7 @@ static void test_ConnectionPointContainer(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IConnectionPointContainer, (void**)&container); - ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08lx\n", hres); if(FAILED(hres)) return;
@@ -5545,13 +5545,13 @@ static void set_custom_uihandler(IHTMLDocument2 *doc, IDocHostUIHandler2 *uihand HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_ICustomDoc, (void**)&custom_doc); - ok(hres == S_OK, "Could not get ICustomDoc iface: %08x\n", hres); + ok(hres == S_OK, "Could not get ICustomDoc iface: %08lx\n", hres);
expect_uihandler_iface = uihandler;
hres = ICustomDoc_SetUIHandler(custom_doc, (IDocHostUIHandler*)uihandler); ICustomDoc_Release(custom_doc); - ok(hres == S_OK, "SetUIHandler failed: %08x\n", hres); + ok(hres == S_OK, "SetUIHandler failed: %08lx\n", hres); }
static void test_Load(IPersistMoniker *persist, IMoniker *mon) @@ -5622,7 +5622,7 @@ static void test_Load(IPersistMoniker *persist, IMoniker *mon) readystate_set_loading = TRUE;
hres = IPersistMoniker_Load(persist, FALSE, mon, bind, 0x12); - ok(hres == S_OK, "Load failed: %08x\n", hres); + ok(hres == S_OK, "Load failed: %08lx\n", hres);
if(mon == &Moniker) CHECK_CALLED(GetDisplayName); @@ -5932,26 +5932,26 @@ static void test_Persist(IHTMLDocument2 *doc, IMoniker *mon) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistFile, (void**)&persist_file); - ok(hres == S_OK, "QueryInterface(IID_IPersist) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IPersist) failed: %08lx\n", hres); if(SUCCEEDED(hres)) { hres = IPersistFile_GetClassID(persist_file, NULL); - ok(hres == E_INVALIDARG, "GetClassID returned: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "GetClassID returned: %08lx, expected E_INVALIDARG\n", hres);
hres = IPersistFile_GetClassID(persist_file, &guid); - ok(hres == S_OK, "GetClassID failed: %08x\n", hres); + ok(hres == S_OK, "GetClassID failed: %08lx\n", hres); ok(IsEqualGUID(&CLSID_HTMLDocument, &guid), "guid != CLSID_HTMLDocument\n");
IPersistFile_Release(persist_file); }
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistMoniker, (void**)&persist_mon); - ok(hres == S_OK, "QueryInterface(IID_IPersistMoniker) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IPersistMoniker) failed: %08lx\n", hres); if(SUCCEEDED(hres)) { hres = IPersistMoniker_GetClassID(persist_mon, NULL); - ok(hres == E_INVALIDARG, "GetClassID returned: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "GetClassID returned: %08lx, expected E_INVALIDARG\n", hres);
hres = IPersistMoniker_GetClassID(persist_mon, &guid); - ok(hres == S_OK, "GetClassID failed: %08x\n", hres); + ok(hres == S_OK, "GetClassID failed: %08lx\n", hres); ok(IsEqualGUID(&CLSID_HTMLDocument, &guid), "guid != CLSID_HTMLDocument\n");
if(load_state == LD_DOLOAD) @@ -5980,7 +5980,7 @@ static void test_put_href(IHTMLDocument2 *doc, BOOL use_replace, const WCHAR *hr
location = NULL; hres = IHTMLDocument2_get_location(doc, &location); - ok(hres == S_OK, "get_location failed: %08x\n", hres); + ok(hres == S_OK, "get_location failed: %08lx\n", hres); ok(location != NULL, "location == NULL\n");
prev_url = prev_nav_url = nav_url; @@ -6009,13 +6009,13 @@ static void test_put_href(IHTMLDocument2 *doc, BOOL use_replace, const WCHAR *hr } if(use_replace) { hres = IHTMLLocation_replace(location, str); - ok(hres == S_OK, "put_href failed: %08x\n", hres); + ok(hres == S_OK, "put_href failed: %08lx\n", hres); }else { hres = IHTMLLocation_put_href(location, str); if(is_js && hres == E_ACCESSDENIED) win_skip("put_href: got E_ACCESSDENIED\n"); else - ok(hres == S_OK, "put_href failed: %08x\n", hres); + ok(hres == S_OK, "put_href failed: %08lx\n", hres); } SysFreeString(str); if(hres == S_OK) { @@ -6062,11 +6062,11 @@ static void test_put_href(IHTMLDocument2 *doc, BOOL use_replace, const WCHAR *hr }
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres);
hres = IHTMLWindow2_QueryInterface(window, &IID_IHTMLPrivateWindow, (void**)&priv_window); IHTMLWindow2_Release(window); - ok(hres == S_OK, "QueryInterface(IID_IHTMLPrivateWindow) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IHTMLPrivateWindow) failed: %08lx\n", hres);
if(!support_wbapp) { VARIANT vempty; @@ -6085,7 +6085,7 @@ static void test_put_href(IHTMLDocument2 *doc, BOOL use_replace, const WCHAR *hr hres = IHTMLPrivateWindow_SuperNavigate(priv_window, str, str2, NULL, NULL, &vempty, &vempty, 0); SysFreeString(str); SysFreeString(str2); - ok(hres == S_OK, "SuperNavigate failed: %08x\n", hres); + ok(hres == S_OK, "SuperNavigate failed: %08lx\n", hres);
CHECK_CALLED(TranslateUrl); CLEAR_CALLED(Exec_ShellDocView_67); /* Not called by IE11 */ @@ -6102,7 +6102,7 @@ static void test_put_href(IHTMLDocument2 *doc, BOOL use_replace, const WCHAR *hr
if(!is_hash) { hres = IHTMLPrivateWindow_GetAddressBarUrl(priv_window, &str2); - ok(hres == S_OK, "GetAddressBarUrl failed: %08x\n", hres); + ok(hres == S_OK, "GetAddressBarUrl failed: %08lx\n", hres); ok(!lstrcmpW(str2, prev_nav_url), "unexpected address bar url: %s, expected %s\n", wine_dbgstr_w(str2), wine_dbgstr_w(prev_nav_url)); SysFreeString(str2); @@ -6122,7 +6122,7 @@ static void test_put_href(IHTMLDocument2 *doc, BOOL use_replace, const WCHAR *hr }
hres = IHTMLPrivateWindow_GetAddressBarUrl(priv_window, &str2); - ok(hres == S_OK, "GetAddressBarUrl failed: %08x\n", hres); + ok(hres == S_OK, "GetAddressBarUrl failed: %08lx\n", hres); if(is_js) ok(!lstrcmpW(str2, prev_nav_url), "unexpected address bar url: %s\n", wine_dbgstr_w(str2)); else if (dwl_flags & DWL_EXTERNAL) @@ -6145,7 +6145,7 @@ static void test_load_history(IHTMLDocument2 *doc) trace("LoadHistory...\n");
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistHistory, (void**)&per_hist); - ok(hres == S_OK, "Could not get IPersistHistory iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IPersistHistory iface: %08lx\n", hres);
prev_url = nav_url; nav_url = L"http://test.winehq.org/tests/winehq_snapshot/#test"; @@ -6158,7 +6158,7 @@ static void test_load_history(IHTMLDocument2 *doc) SET_EXPECT(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED);
hres = IPersistHistory_LoadHistory(per_hist, history_stream, NULL); - ok(hres == S_OK, "LoadHistory failed: %08x\n", hres); + ok(hres == S_OK, "LoadHistory failed: %08lx\n", hres);
CLEAR_CALLED(Exec_ShellDocView_138); /* Not called by IE11 */ CLEAR_CALLED(Exec_ShellDocView_67); /* Not called by IE11 */ @@ -6184,16 +6184,16 @@ static void test_OmHistory(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_parentWindow(doc, &win); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres);
hres = IHTMLWindow2_get_history(win, &hist); - ok(hres == S_OK, "get_history failed: %08x\n", hres); + ok(hres == S_OK, "get_history failed: %08lx\n", hres); IHTMLWindow2_Release(win);
SET_EXPECT(CountEntries); hres = IOmHistory_get_length(hist, &len); CHECK_CALLED(CountEntries); - ok(hres == S_OK, "get_length failed: %08x\n", hres); + ok(hres == S_OK, "get_length failed: %08lx\n", hres); ok(len == 0, "len = %d\n", len);
IOmHistory_Release(hist); @@ -6208,13 +6208,13 @@ static void test_refresh(IHTMLDocument2 *doc) trace("Refresh...\n");
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleCommandTarget, (void**)&cmdtrg); - ok(hres == S_OK, "Could not get IOleCommandTarget iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IOleCommandTarget iface: %08lx\n", hres);
V_VT(&vin) = VT_EMPTY; V_VT(&vout) = VT_EMPTY; SET_EXPECT(Exec_DocHostCommandHandler_2300); hres = IOleCommandTarget_Exec(cmdtrg, NULL, OLECMDID_REFRESH, OLECMDEXECOPT_PROMPTUSER, &vin, &vout); - ok(hres == S_OK, "Exec failed: %08x\n", hres); + ok(hres == S_OK, "Exec failed: %08lx\n", hres); ok(V_VT(&vout) == VT_EMPTY, "V_VT(vout) = %d\n", V_VT(&vout)); CHECK_CALLED(Exec_DocHostCommandHandler_2300);
@@ -6232,7 +6232,7 @@ static void test_open_window(IHTMLDocument2 *doc, BOOL do_block) allow_new_window = !do_block;
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres);
url = SysAllocString(nav_serv_url = nav_url = L"about:blank"); name = SysAllocString(L"test"); @@ -6267,7 +6267,7 @@ static void test_open_window(IHTMLDocument2 *doc, BOOL do_block) } CHECK_CALLED(EvaluateNewWindow);
- ok(hres == S_OK, "open failed: %08x\n", hres); + ok(hres == S_OK, "open failed: %08lx\n", hres); if (hres != S_OK) { IHTMLWindow2_Release(window); return; @@ -6279,7 +6279,7 @@ static void test_open_window(IHTMLDocument2 *doc, BOOL do_block) ok(new_window != NULL, "new_window == NULL\n");
hres = IHTMLWindow2_close(new_window); - ok(hres == S_OK, "close failed: %08x\n", hres); + ok(hres == S_OK, "close failed: %08lx\n", hres); IHTMLWindow2_Release(new_window); }
@@ -6292,7 +6292,7 @@ static void test_window_close(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres);
SET_EXPECT(FindConnectionPoint); SET_EXPECT(EnumConnections); @@ -6300,7 +6300,7 @@ static void test_window_close(IHTMLDocument2 *doc) SET_EXPECT(WindowClosing);
hres = IHTMLWindow2_close(window); - ok(hres == S_OK, "close failed: %08x\n", hres); + ok(hres == S_OK, "close failed: %08lx\n", hres);
CHECK_CALLED(FindConnectionPoint); CHECK_CALLED(EnumConnections); @@ -6318,12 +6318,12 @@ static void test_elem_from_point(IHTMLDocument2 *doc)
elem = NULL; hres = IHTMLDocument2_elementFromPoint(doc, 3, 3, &elem); - ok(hres == S_OK, "elementFromPoint failed: %08x\n", hres); + ok(hres == S_OK, "elementFromPoint failed: %08lx\n", hres); ok(elem != NULL, "elem == NULL\n");
hres = IHTMLElement_get_tagName(elem, &tag); IHTMLElement_Release(elem); - ok(hres == S_OK, "get_tagName failed: %08x\n", hres); + ok(hres == S_OK, "get_tagName failed: %08lx\n", hres); ok(!lstrcmpW(tag, L"DIV"), "tag = %s\n", wine_dbgstr_w(tag)); }
@@ -6332,7 +6332,7 @@ static void test_clear(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_clear(doc); - ok(hres == S_OK, "clear failed: %08x\n", hres); + ok(hres == S_OK, "clear failed: %08lx\n", hres); }
static const OLECMDF expect_cmds[] = { @@ -6385,17 +6385,17 @@ static void _test_QueryStatus(unsigned line, IUnknown *unk, REFIID cgid, ULONG c HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IOleCommandTarget, (void**)&cmdtrg); - ok_(__FILE__,line) (hres == S_OK, "QueryInterface(IID_IOleCommandTarget failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "QueryInterface(IID_IOleCommandTarget failed: %08lx\n", hres); if(FAILED(hres)) return;
hres = IOleCommandTarget_QueryStatus(cmdtrg, cgid, 1, &olecmd, NULL); - ok(hres == (cmdf ? S_OK : OLECMDERR_E_NOTSUPPORTED), "QueryStatus(%u) failed: %08x\n", cmdid, hres); + ok(hres == (cmdf ? S_OK : OLECMDERR_E_NOTSUPPORTED), "QueryStatus(%lu) failed: %08lx\n", cmdid, hres);
IOleCommandTarget_Release(cmdtrg);
ok_(__FILE__,line) (olecmd.cmdID == cmdid, "cmdID changed\n"); - ok_(__FILE__,line) (olecmd.cmdf == cmdf, "(%u) cmdf=%08x, expected %08x\n", cmdid, olecmd.cmdf, cmdf); + ok_(__FILE__,line) (olecmd.cmdf == cmdf, "(%lu) cmdf=%08lx, expected %08lx\n", cmdid, olecmd.cmdf, cmdf); }
static void test_MSHTML_QueryStatus(IHTMLDocument2 *doc, DWORD cmdf) @@ -6428,7 +6428,7 @@ static void test_OleCommandTarget(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleCommandTarget, (void**)&cmdtrg); - ok(hres == S_OK, "QueryInterface(IID_IOleCommandTarget failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleCommandTarget failed: %08lx\n", hres); if(FAILED(hres)) return;
@@ -6440,20 +6440,20 @@ static void test_OleCommandTarget(IHTMLDocument2 *doc) SET_EXPECT(QueryStatus_OPEN); SET_EXPECT(QueryStatus_NEW); hres = IOleCommandTarget_QueryStatus(cmdtrg, NULL, ARRAY_SIZE(cmds), cmds, NULL); - ok(hres == S_OK, "QueryStatus failed: %08x\n", hres); + ok(hres == S_OK, "QueryStatus failed: %08lx\n", hres); CHECK_CALLED(QueryStatus_OPEN); CHECK_CALLED(QueryStatus_NEW);
for(i=0; i < ARRAY_SIZE(cmds); i++) { - ok(cmds[i].cmdID == i+1, "cmds[%d].cmdID canged to %x\n", i, cmds[i].cmdID); + ok(cmds[i].cmdID == i+1, "cmds[%d].cmdID canged to %lx\n", i, cmds[i].cmdID); if(i+1 == OLECMDID_FIND) continue; - ok(cmds[i].cmdf == expect_cmds[i+1], "cmds[%d].cmdf=%x, expected %x\n", + ok(cmds[i].cmdf == expect_cmds[i+1], "cmds[%d].cmdf=%lx, expected %x\n", i+1, cmds[i].cmdf, expect_cmds[i+1]); }
ok(!cmds[OLECMDID_FIND-1].cmdf || cmds[OLECMDID_FIND-1].cmdf == (OLECMDF_SUPPORTED|OLECMDF_ENABLED), - "cmds[OLECMDID_FIND].cmdf=%x\n", cmds[OLECMDID_FIND-1].cmdf); + "cmds[OLECMDID_FIND].cmdf=%lx\n", cmds[OLECMDID_FIND-1].cmdf);
IOleCommandTarget_Release(cmdtrg); } @@ -6470,42 +6470,42 @@ static void test_OleCommandTarget_fail(IHTMLDocument2 *doc) };
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleCommandTarget, (void**)&cmdtrg); - ok(hres == S_OK, "QueryInterface(IIDIOleCommandTarget failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IIDIOleCommandTarget failed: %08lx\n", hres); if(FAILED(hres)) return;
hres = IOleCommandTarget_QueryStatus(cmdtrg, NULL, 0, NULL, NULL); - ok(hres == S_OK, "QueryStatus failed: %08x\n", hres); + ok(hres == S_OK, "QueryStatus failed: %08lx\n", hres);
SET_EXPECT(QueryStatus_OPEN); hres = IOleCommandTarget_QueryStatus(cmdtrg, NULL, 2, cmd, NULL); CHECK_CALLED(QueryStatus_OPEN);
ok(hres == OLECMDERR_E_NOTSUPPORTED, - "QueryStatus failed: %08x, expected OLECMDERR_E_NOTSUPPORTED\n", hres); + "QueryStatus failed: %08lx, expected OLECMDERR_E_NOTSUPPORTED\n", hres); ok(cmd[1].cmdID == OLECMDID_GETPRINTTEMPLATE+1, - "cmd[0].cmdID=%d, expected OLECMDID_GETPRINTTEMPLATE+1\n", cmd[0].cmdID); - ok(cmd[1].cmdf == 0, "cmd[0].cmdf=%x, expected 0\n", cmd[0].cmdf); + "cmd[0].cmdID=%ld, expected OLECMDID_GETPRINTTEMPLATE+1\n", cmd[0].cmdID); + ok(cmd[1].cmdf == 0, "cmd[0].cmdf=%lx, expected 0\n", cmd[0].cmdf); ok(cmd[0].cmdf == OLECMDF_SUPPORTED, - "cmd[1].cmdf=%x, expected OLECMDF_SUPPORTED\n", cmd[1].cmdf); + "cmd[1].cmdf=%lx, expected OLECMDF_SUPPORTED\n", cmd[1].cmdf);
hres = IOleCommandTarget_QueryStatus(cmdtrg, &IID_IHTMLDocument2, 2, cmd, NULL); ok(hres == OLECMDERR_E_UNKNOWNGROUP, - "QueryStatus failed: %08x, expected OLECMDERR_E_UNKNOWNGROUP\n", hres); + "QueryStatus failed: %08lx, expected OLECMDERR_E_UNKNOWNGROUP\n", hres);
for(i=0; i<OLECMDID_GETPRINTTEMPLATE; i++) { if(!expect_cmds[i]) { hres = IOleCommandTarget_Exec(cmdtrg, NULL, OLECMDID_UPDATECOMMANDS, OLECMDEXECOPT_DODEFAULT, NULL, NULL); ok(hres == OLECMDERR_E_NOTSUPPORTED, - "Exec failed: %08x, expected OLECMDERR_E_NOTSUPPORTED\n", hres); + "Exec failed: %08lx, expected OLECMDERR_E_NOTSUPPORTED\n", hres); } }
hres = IOleCommandTarget_Exec(cmdtrg, NULL, OLECMDID_GETPRINTTEMPLATE+1, OLECMDEXECOPT_DODEFAULT, NULL, NULL); ok(hres == OLECMDERR_E_NOTSUPPORTED, - "Exec failed: %08x, expected OLECMDERR_E_NOTSUPPORTED\n", hres); + "Exec failed: %08lx, expected OLECMDERR_E_NOTSUPPORTED\n", hres);
IOleCommandTarget_Release(cmdtrg); } @@ -6517,20 +6517,20 @@ static void test_exec_onunload(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleCommandTarget, (void**)&cmdtrg); - ok(hres == S_OK, "QueryInterface(IID_IOleCommandTarget) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleCommandTarget) failed: %08lx\n", hres); if(FAILED(hres)) return;
memset(&var, 0x0a, sizeof(var)); hres = IOleCommandTarget_Exec(cmdtrg, NULL, OLECMDID_ONUNLOAD, OLECMDEXECOPT_DODEFAULT, NULL, &var); - ok(hres == S_OK, "Exec(..., OLECMDID_ONUNLOAD, ...) failed: %08x\n", hres); + ok(hres == S_OK, "Exec(..., OLECMDID_ONUNLOAD, ...) failed: %08lx\n", hres); ok(V_VT(&var) == VT_BOOL, "V_VT(var)=%d, expected VT_BOOL\n", V_VT(&var)); ok(V_BOOL(&var) == VARIANT_TRUE, "V_BOOL(var)=%x, expected VARIANT_TRUE\n", V_BOOL(&var));
hres = IOleCommandTarget_Exec(cmdtrg, NULL, OLECMDID_ONUNLOAD, OLECMDEXECOPT_DODEFAULT, NULL, NULL); - ok(hres == S_OK, "Exec(..., OLECMDID_ONUNLOAD, ...) failed: %08x\n", hres); + ok(hres == S_OK, "Exec(..., OLECMDID_ONUNLOAD, ...) failed: %08lx\n", hres);
IOleCommandTarget_Release(cmdtrg); } @@ -6541,7 +6541,7 @@ static void test_exec_editmode(IUnknown *unk, BOOL loaded) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IOleCommandTarget, (void**)&cmdtrg); - ok(hres == S_OK, "QueryInterface(IID_IOleCommandTarget) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleCommandTarget) failed: %08lx\n", hres); if(FAILED(hres)) return;
@@ -6574,7 +6574,7 @@ static void test_exec_editmode(IUnknown *unk, BOOL loaded)
hres = IOleCommandTarget_Exec(cmdtrg, &CGID_MSHTML, IDM_EDITMODE, OLECMDEXECOPT_DODEFAULT, NULL, NULL); - ok(hres == S_OK, "Exec failed: %08x\n", hres); + ok(hres == S_OK, "Exec failed: %08lx\n", hres);
if(loaded) CHECK_CALLED(GetClassID); @@ -6602,7 +6602,7 @@ static void test_exec_editmode(IUnknown *unk, BOOL loaded)
hres = IOleCommandTarget_Exec(cmdtrg, &CGID_MSHTML, IDM_EDITMODE, OLECMDEXECOPT_DODEFAULT, NULL, NULL); - ok(hres == S_OK, "Exec failed: %08x\n", hres); + ok(hres == S_OK, "Exec failed: %08lx\n", hres); }
static void test_exec_fontname(IUnknown *unk, LPCWSTR name, LPCWSTR exname) @@ -6612,7 +6612,7 @@ static void test_exec_fontname(IUnknown *unk, LPCWSTR name, LPCWSTR exname) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IOleCommandTarget, (void**)&cmdtrg); - ok(hres == S_OK, "QueryInterface(IIDIOleM=CommandTarget failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IIDIOleM=CommandTarget failed: %08lx\n", hres); if(FAILED(hres)) return;
@@ -6629,7 +6629,7 @@ static void test_exec_fontname(IUnknown *unk, LPCWSTR name, LPCWSTR exname) }
hres = IOleCommandTarget_Exec(cmdtrg, &CGID_MSHTML, IDM_FONTNAME, 0, in, out); - ok(hres == S_OK, "Exec(IDM_FONTNAME) failed: %08x\n", hres); + ok(hres == S_OK, "Exec(IDM_FONTNAME) failed: %08lx\n", hres);
if(in) VariantClear(in); @@ -6655,13 +6655,13 @@ static void test_exec_noargs(IUnknown *unk, DWORD cmdid) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IOleCommandTarget, (void**)&cmdtrg); - ok(hres == S_OK, "QueryInterface(IID_IOleCommandTarget) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleCommandTarget) failed: %08lx\n", hres); if(FAILED(hres)) return;
hres = IOleCommandTarget_Exec(cmdtrg, &CGID_MSHTML, cmdid, OLECMDEXECOPT_DODEFAULT, NULL, NULL); - ok(hres == S_OK, "Exec failed: %08x\n", hres); + ok(hres == S_OK, "Exec failed: %08lx\n", hres);
IOleCommandTarget_Release(cmdtrg); } @@ -6673,7 +6673,7 @@ static void test_exec_optical_zoom(IHTMLDocument2 *doc, int factor) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleCommandTarget, (void**)&cmdtrg); - ok(hres == S_OK, "QueryInterface(IID_IOleCommandTarget) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleCommandTarget) failed: %08lx\n", hres); if(FAILED(hres)) return;
@@ -6683,19 +6683,19 @@ static void test_exec_optical_zoom(IHTMLDocument2 *doc, int factor) SET_EXPECT(GetOverrideKeyPath); hres = IOleCommandTarget_Exec(cmdtrg, NULL, OLECMDID_OPTICAL_ZOOM, OLECMDEXECOPT_DODEFAULT, &v, &out); - ok(hres == S_OK || broken(hres == OLECMDERR_E_NOTSUPPORTED) /* IE6 */, "Exec failed: %08x\n", hres); + ok(hres == S_OK || broken(hres == OLECMDERR_E_NOTSUPPORTED) /* IE6 */, "Exec failed: %08lx\n", hres); CLEAR_CALLED(GetOverrideKeyPath);
if(hres != OLECMDERR_E_NOTSUPPORTED) { ok(V_VT(&out) == VT_I4, "V_VT(&out) = %d\n", V_VT(&out)); - ok(V_I4(&out) == factor, "V_I4(&out) = %d, expected %d\n", V_I4(&out), factor); + ok(V_I4(&out) == factor, "V_I4(&out) = %ld, expected %d\n", V_I4(&out), factor);
SET_EXPECT(GetOverrideKeyPath); hres = IOleCommandTarget_Exec(cmdtrg, NULL, OLECMDID_OPTICAL_ZOOM, OLECMDEXECOPT_DODEFAULT, NULL, &out); - ok(hres == S_OK, "Exec failed: %08x\n", hres); + ok(hres == S_OK, "Exec failed: %08lx\n", hres); ok(V_VT(&out) == VT_I4, "V_VT(&out) = %d\n", V_VT(&out)); - ok(V_I4(&out) == factor, "V_I4(&out) = %d, expected %d\n", V_I4(&out), factor); + ok(V_I4(&out) == factor, "V_I4(&out) = %ld, expected %d\n", V_I4(&out), factor); CLEAR_CALLED(GetOverrideKeyPath); }
@@ -6712,26 +6712,26 @@ static void test_IsDirty(IHTMLDocument2 *doc, HRESULT exhres) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistStreamInit, (void**)&perinit); - ok(hres == S_OK, "QueryInterface(IID_IPersistStreamInit failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IPersistStreamInit failed: %08lx\n", hres); if(SUCCEEDED(hres)) { hres = IPersistStreamInit_IsDirty(perinit); - ok(hres == exhres, "IsDirty() = %08x, expected %08x\n", hres, exhres); + ok(hres == exhres, "IsDirty() = %08lx, expected %08lx\n", hres, exhres); IPersistStreamInit_Release(perinit); }
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistMoniker, (void**)&permon); - ok(hres == S_OK, "QueryInterface(IID_IPersistMoniker failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IPersistMoniker failed: %08lx\n", hres); if(SUCCEEDED(hres)) { hres = IPersistMoniker_IsDirty(permon); - ok(hres == exhres, "IsDirty() = %08x, expected %08x\n", hres, exhres); + ok(hres == exhres, "IsDirty() = %08lx, expected %08lx\n", hres, exhres); IPersistMoniker_Release(permon); }
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistFile, (void**)&perfile); - ok(hres == S_OK, "QueryInterface(IID_IPersistFile failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IPersistFile failed: %08lx\n", hres); if(SUCCEEDED(hres)) { hres = IPersistFile_IsDirty(perfile); - ok(hres == exhres, "IsDirty() = %08x, expected %08x\n", hres, exhres); + ok(hres == exhres, "IsDirty() = %08lx, expected %08lx\n", hres, exhres); IPersistFile_Release(perfile); } } @@ -6768,7 +6768,7 @@ static void test_DoVerb(IOleObject *oleobj) expect_LockContainer_fLock = TRUE;
hres = IOleObject_DoVerb(oleobj, OLEIVERB_SHOW, NULL, &ClientSite, -1, container_hwnd, &rect); - ok(hres == S_OK, "DoVerb failed: %08x\n", hres); + ok(hres == S_OK, "DoVerb failed: %08lx\n", hres);
if(!container_locked) { CHECK_CALLED(GetContainer); @@ -6789,7 +6789,7 @@ static void test_ClientSite(IOleObject *oleobj, DWORD flags)
if(flags & CLIENTSITE_SETNULL) { hres = IOleObject_GetClientSite(oleobj, &clientsite); - ok(hres == S_OK, "SetClientSite failed: %08x\n", hres); + ok(hres == S_OK, "SetClientSite failed: %08lx\n", hres); if(set_clientsite) ok(clientsite == &ClientSite, "clientsite=%p, expected %p\n", clientsite, &ClientSite); else @@ -6797,7 +6797,7 @@ static void test_ClientSite(IOleObject *oleobj, DWORD flags)
SET_EXPECT(GetOverrideKeyPath); hres = IOleObject_SetClientSite(oleobj, NULL); - ok(hres == S_OK, "SetClientSite failed: %08x\n", hres); + ok(hres == S_OK, "SetClientSite failed: %08lx\n", hres); CLEAR_CALLED(GetOverrideKeyPath); /* IE9 sometimes calls it */
set_clientsite = FALSE; @@ -6810,7 +6810,7 @@ static void test_ClientSite(IOleObject *oleobj, DWORD flags) expect_uihandler_iface = &DocHostUIHandler;
hres = IOleObject_GetClientSite(oleobj, &clientsite); - ok(hres == S_OK, "GetClientSite failed: %08x\n", hres); + ok(hres == S_OK, "GetClientSite failed: %08lx\n", hres); ok(clientsite == (set_clientsite ? &ClientSite : NULL), "GetClientSite() = %p, expected %p\n", clientsite, set_clientsite ? &ClientSite : NULL);
@@ -6838,7 +6838,7 @@ static void test_ClientSite(IOleObject *oleobj, DWORD flags) SET_EXPECT(Exec_ShellDocView_84);
hres = IOleObject_SetClientSite(oleobj, &ClientSite); - ok(hres == S_OK, "SetClientSite failed: %08x\n", hres); + ok(hres == S_OK, "SetClientSite failed: %08lx\n", hres);
if(expect_uihandler_iface) CHECK_CALLED(GetHostInfo); @@ -6866,10 +6866,10 @@ static void test_ClientSite(IOleObject *oleobj, DWORD flags) }
hres = IOleObject_SetClientSite(oleobj, &ClientSite); - ok(hres == S_OK, "SetClientSite failed: %08x\n", hres); + ok(hres == S_OK, "SetClientSite failed: %08lx\n", hres);
hres = IOleObject_GetClientSite(oleobj, &clientsite); - ok(hres == S_OK, "GetClientSite failed: %08x\n", hres); + ok(hres == S_OK, "GetClientSite failed: %08lx\n", hres); ok(clientsite == &ClientSite, "GetClientSite() = %p, expected %p\n", clientsite, &ClientSite); }
@@ -6879,42 +6879,42 @@ static void test_OnAmbientPropertyChange(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleControl, (void**)&control); - ok(hres == S_OK, "QueryInterface(IID_IOleControl failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleControl failed: %08lx\n", hres); if(FAILED(hres)) return;
SET_EXPECT(Invoke_AMBIENT_USERMODE); hres = IOleControl_OnAmbientPropertyChange(control, DISPID_AMBIENT_USERMODE); - ok(hres == S_OK, "OnAmbientChange failed: %08x\n", hres); + ok(hres == S_OK, "OnAmbientChange failed: %08lx\n", hres); CHECK_CALLED(Invoke_AMBIENT_USERMODE);
SET_EXPECT(Invoke_AMBIENT_DLCONTROL); hres = IOleControl_OnAmbientPropertyChange(control, DISPID_AMBIENT_DLCONTROL); - ok(hres == S_OK, "OnAmbientChange failed: %08x\n", hres); + ok(hres == S_OK, "OnAmbientChange failed: %08lx\n", hres); CHECK_CALLED(Invoke_AMBIENT_DLCONTROL);
SET_EXPECT(Invoke_AMBIENT_DLCONTROL); SET_EXPECT(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); hres = IOleControl_OnAmbientPropertyChange(control, DISPID_AMBIENT_OFFLINEIFNOTCONNECTED); - ok(hres == S_OK, "OnAmbientChange failed: %08x\n", hres); + ok(hres == S_OK, "OnAmbientChange failed: %08lx\n", hres); CHECK_CALLED(Invoke_AMBIENT_DLCONTROL); CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED);
SET_EXPECT(Invoke_AMBIENT_DLCONTROL); SET_EXPECT(Invoke_AMBIENT_SILENT); hres = IOleControl_OnAmbientPropertyChange(control, DISPID_AMBIENT_SILENT); - ok(hres == S_OK, "OnAmbientChange failed: %08x\n", hres); + ok(hres == S_OK, "OnAmbientChange failed: %08lx\n", hres); CHECK_CALLED(Invoke_AMBIENT_DLCONTROL); CHECK_CALLED(Invoke_AMBIENT_SILENT);
SET_EXPECT(Invoke_AMBIENT_USERAGENT); hres = IOleControl_OnAmbientPropertyChange(control, DISPID_AMBIENT_USERAGENT); - ok(hres == S_OK, "OnAmbientChange failed: %08x\n", hres); + ok(hres == S_OK, "OnAmbientChange failed: %08lx\n", hres); CHECK_CALLED(Invoke_AMBIENT_USERAGENT);
SET_EXPECT(Invoke_AMBIENT_PALETTE); hres = IOleControl_OnAmbientPropertyChange(control, DISPID_AMBIENT_PALETTE); - ok(hres == S_OK, "OnAmbientChange failed: %08x\n", hres); + ok(hres == S_OK, "OnAmbientChange failed: %08lx\n", hres); CLEAR_CALLED(Invoke_AMBIENT_PALETTE); /* not called on IE9 */
IOleControl_Release(control); @@ -6929,93 +6929,93 @@ static void test_GetSetExtent(IHTMLDocument2 *doc) SIZE extent;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleObject, (void**)&oleobj); - ok(hres == S_OK, "QueryInterface(IID_IOleObject) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleObject) failed: %08lx\n", hres); if(FAILED(hres)) return;
extent.cx = extent.cy = 0xdeadbeef; hres = IOleObject_GetExtent(oleobj, DVASPECT_CONTENT, &extent); - ok(hres == S_OK, "GetExtent failed: %08x\n", hres); - ok(extent.cx == 1 && extent.cy == 1, "size = {%d %d} (expected {1 1})\n", + ok(hres == S_OK, "GetExtent failed: %08lx\n", hres); + ok(extent.cx == 1 && extent.cy == 1, "size = {%ld %ld} (expected {1 1})\n", extent.cx, extent.cy);
extent.cx = extent.cy = 0xdeadbeef; hres = IOleObject_GetExtent(oleobj, 0, &extent); - ok(hres == E_INVALIDARG, "GetExtent failed: %08x\n", hres); - ok(extent.cx == 0xdeadbeef && extent.cy == 0xdeadbeef, "size = {%d %d}\n", extent.cx, extent.cy); + ok(hres == E_INVALIDARG, "GetExtent failed: %08lx\n", hres); + ok(extent.cx == 0xdeadbeef && extent.cy == 0xdeadbeef, "size = {%ld %ld}\n", extent.cx, extent.cy);
extent.cx = extent.cy = 0xdeadbeef; hres = IOleObject_GetExtent(oleobj, 7, &extent); - ok(hres == E_INVALIDARG, "GetExtent failed: %08x\n", hres); - ok(extent.cx == 0xdeadbeef && extent.cy == 0xdeadbeef, "size = {%d %d}\n", extent.cx, extent.cy); + ok(hres == E_INVALIDARG, "GetExtent failed: %08lx\n", hres); + ok(extent.cx == 0xdeadbeef && extent.cy == 0xdeadbeef, "size = {%ld %ld}\n", extent.cx, extent.cy);
extent.cx = 800; extent.cy = 700; hres = IOleObject_SetExtent(oleobj, 0, &extent); - ok(hres == E_INVALIDARG, "SetExtent failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "SetExtent failed: %08lx\n", hres);
extent.cx = extent.cy = 0xdeadbeef; hres = IOleObject_GetExtent(oleobj, DVASPECT_CONTENT, &extent); - ok(hres == S_OK, "GetExtent failed: %08x\n", hres); - ok(extent.cx == 1 && extent.cy == 1, "size = {%d %d} (expected {1 1})\n", + ok(hres == S_OK, "GetExtent failed: %08lx\n", hres); + ok(extent.cx == 1 && extent.cy == 1, "size = {%ld %ld} (expected {1 1})\n", extent.cx, extent.cy);
extent.cx = 800; extent.cy = 700; hres = IOleObject_SetExtent(oleobj, 7, &extent); - ok(hres == E_INVALIDARG, "SetExtent failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "SetExtent failed: %08lx\n", hres);
extent.cx = extent.cy = 0xdeadbeef; hres = IOleObject_GetExtent(oleobj, DVASPECT_CONTENT, &extent); - ok(hres == S_OK, "GetExtent failed: %08x\n", hres); - ok(extent.cx == 1 && extent.cy == 1, "size = {%d %d} (expected {1 1})\n", + ok(hres == S_OK, "GetExtent failed: %08lx\n", hres); + ok(extent.cx == 1 && extent.cy == 1, "size = {%ld %ld} (expected {1 1})\n", extent.cx, extent.cy);
extent.cx = extent.cy = 0xdeadbeef; hres = IOleObject_SetExtent(oleobj, 0, &extent); - todo_wine ok(hres == E_FAIL, "SetExtent failed: %08x\n", hres); + todo_wine ok(hres == E_FAIL, "SetExtent failed: %08lx\n", hres);
extent.cx = extent.cy = 0xdeadbeef; hres = IOleObject_GetExtent(oleobj, DVASPECT_CONTENT, &extent); - ok(hres == S_OK, "GetExtent failed: %08x\n", hres); - ok(extent.cx == 1 && extent.cy == 1, "size = {%d %d} (expected {1 1})\n", + ok(hres == S_OK, "GetExtent failed: %08lx\n", hres); + ok(extent.cx == 1 && extent.cy == 1, "size = {%ld %ld} (expected {1 1})\n", extent.cx, extent.cy);
extent.cx = extent.cy = 0xdeadbeef; hres = IOleObject_SetExtent(oleobj, 7, &extent); - todo_wine ok(hres == E_FAIL, "SetExtent failed: %08x\n", hres); + todo_wine ok(hres == E_FAIL, "SetExtent failed: %08lx\n", hres);
extent.cx = extent.cy = 0xdeadbeef; hres = IOleObject_GetExtent(oleobj, DVASPECT_CONTENT, &extent); - ok(hres == S_OK, "GetExtent failed: %08x\n", hres); - ok(extent.cx == 1 && extent.cy == 1, "size = {%d %d} (expected {1 1})\n", + ok(hres == S_OK, "GetExtent failed: %08lx\n", hres); + ok(extent.cx == 1 && extent.cy == 1, "size = {%ld %ld} (expected {1 1})\n", extent.cx, extent.cy);
extent.cx = extent.cy = 0xdeadbeef; hres = IOleObject_SetExtent(oleobj, DVASPECT_CONTENT, &extent); - todo_wine ok(hres == E_FAIL, "SetExtent failed: %08x\n", hres); + todo_wine ok(hres == E_FAIL, "SetExtent failed: %08lx\n", hres);
extent.cx = extent.cy = 0xdeadbeef; hres = IOleObject_GetExtent(oleobj, DVASPECT_CONTENT, &extent); - ok(hres == S_OK, "GetExtent failed: %08x\n", hres); - todo_wine ok(extent.cx == 1 && extent.cy == 1, "size = {%d %d} (expected {1 1})\n", + ok(hres == S_OK, "GetExtent failed: %08lx\n", hres); + todo_wine ok(extent.cx == 1 && extent.cy == 1, "size = {%ld %ld} (expected {1 1})\n", extent.cx, extent.cy);
extent.cx = 800; extent.cy = 700; hres = IOleObject_SetExtent(oleobj, DVASPECT_CONTENT, &extent); - ok(hres == S_OK, "SetExtent failed: %08x\n", hres); + ok(hres == S_OK, "SetExtent failed: %08lx\n", hres);
extent.cx = extent.cy = 0xdeadbeef; hres = IOleObject_GetExtent(oleobj, DVASPECT_CONTENT, &extent); - ok(hres == S_OK, "GetExtent failed: %08x\n", hres); - ok(extent.cx == 800 && extent.cy == 700, "size = {%d %d} (expected {800 700})\n", + ok(hres == S_OK, "GetExtent failed: %08lx\n", hres); + ok(extent.cx == 800 && extent.cy == 700, "size = {%ld %ld} (expected {800 700})\n", extent.cx, extent.cy );
extent.cx = 1; extent.cy = 1; hres = IOleObject_SetExtent(oleobj, DVASPECT_CONTENT, &extent); - ok(hres == S_OK, "SetExtent failed: %08x\n", hres); + ok(hres == S_OK, "SetExtent failed: %08lx\n", hres);
IOleObject_Release(oleobj); } @@ -7026,12 +7026,12 @@ static void test_OnAmbientPropertyChange2(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleControl, (void**)&control); - ok(hres == S_OK, "QueryInterface(IID_IOleControl failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleControl failed: %08lx\n", hres); if(FAILED(hres)) return;
hres = IOleControl_OnAmbientPropertyChange(control, DISPID_AMBIENT_PALETTE); - ok(hres == S_OK, "OnAmbientPropertyChange failed: %08x\n", hres); + ok(hres == S_OK, "OnAmbientPropertyChange failed: %08lx\n", hres);
IOleControl_Release(control); } @@ -7042,7 +7042,7 @@ static void test_Close(IHTMLDocument2 *doc, BOOL set_client) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleObject, (void**)&oleobj); - ok(hres == S_OK, "QueryInterface(IID_IOleObject) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleObject) failed: %08lx\n", hres); if(FAILED(hres)) return;
@@ -7050,7 +7050,7 @@ static void test_Close(IHTMLDocument2 *doc, BOOL set_client) SET_EXPECT(LockContainer); expect_LockContainer_fLock = FALSE; hres = IOleObject_Close(oleobj, OLECLOSE_NOSAVE); - ok(hres == S_OK, "Close failed: %08x\n", hres); + ok(hres == S_OK, "Close failed: %08lx\n", hres); CHECK_CALLED(GetContainer); CHECK_CALLED(LockContainer); container_locked = FALSE; @@ -7069,42 +7069,42 @@ static void test_Advise(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleObject, (void**)&oleobj); - ok(hres == S_OK, "QueryInterface(IID_IOleObject) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleObject) failed: %08lx\n", hres); if(FAILED(hres)) return;
hres = IOleObject_Unadvise(oleobj, 0); - ok(hres == OLE_E_NOCONNECTION, "Unadvise returned: %08x\n", hres); + ok(hres == OLE_E_NOCONNECTION, "Unadvise returned: %08lx\n", hres);
hres = IOleObject_EnumAdvise(oleobj, &enum_advise); - ok(hres == S_OK, "EnumAdvise returned: %08x\n", hres); + ok(hres == S_OK, "EnumAdvise returned: %08lx\n", hres); ok(enum_advise == NULL, "enum_advise != NULL\n");
conn = -1; hres = IOleObject_Advise(oleobj, NULL, &conn); /* Old IE returns S_OK and sets conn to 1 */ - ok(hres == E_INVALIDARG || hres == S_OK, "Advise returned: %08x\n", hres); - ok(conn == 0 || conn == 1, "conn = %d\n", conn); + ok(hres == E_INVALIDARG || hres == S_OK, "Advise returned: %08lx\n", hres); + ok(conn == 0 || conn == 1, "conn = %ld\n", conn);
hres = IOleObject_Advise(oleobj, (IAdviseSink*)&AdviseSink, NULL); - ok(hres == E_INVALIDARG, "Advise returned: %08x\n", hres); + ok(hres == E_INVALIDARG, "Advise returned: %08lx\n", hres);
hres = IOleObject_Advise(oleobj, (IAdviseSink*)&AdviseSink, &conn); - ok(hres == S_OK, "Advise returned: %08x\n", hres); - ok(conn == 1, "conn = %d\n", conn); + ok(hres == S_OK, "Advise returned: %08lx\n", hres); + ok(conn == 1, "conn = %ld\n", conn);
hres = IOleObject_Advise(oleobj, (IAdviseSink*)&AdviseSink, &conn); - ok(hres == S_OK, "Advise returned: %08x\n", hres); - ok(conn == 2, "conn = %d\n", conn); + ok(hres == S_OK, "Advise returned: %08lx\n", hres); + ok(conn == 2, "conn = %ld\n", conn);
hres = IOleObject_Unadvise(oleobj, 1); - ok(hres == S_OK, "Unadvise returned: %08x\n", hres); + ok(hres == S_OK, "Unadvise returned: %08lx\n", hres);
hres = IOleObject_Unadvise(oleobj, 1); - ok(hres == OLE_E_NOCONNECTION, "Unadvise returned: %08x\n", hres); + ok(hres == OLE_E_NOCONNECTION, "Unadvise returned: %08lx\n", hres);
hres = IOleObject_Unadvise(oleobj, 2); - ok(hres == S_OK, "Unadvise returned: %08x\n", hres); + ok(hres == S_OK, "Unadvise returned: %08lx\n", hres);
IOleObject_Release(oleobj); } @@ -7115,7 +7115,7 @@ static void test_OnFrameWindowActivate(IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IOleInPlaceActiveObject, (void**)&inplaceact); - ok(hres == S_OK, "QueryInterface(IID_IOleInPlaceActiveObject) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleInPlaceActiveObject) failed: %08lx\n", hres); if(FAILED(hres)) return;
@@ -7123,31 +7123,31 @@ static void test_OnFrameWindowActivate(IUnknown *unk) expect_OnFrameWindowActivate_fActivate = TRUE; SET_EXPECT(OnFrameWindowActivate); hres = IOleInPlaceActiveObject_OnFrameWindowActivate(inplaceact, TRUE); - ok(hres == S_OK, "OnFrameWindowActivate failed: %08x\n", hres); + ok(hres == S_OK, "OnFrameWindowActivate failed: %08lx\n", hres); CHECK_CALLED(OnFrameWindowActivate);
SET_EXPECT(OnFrameWindowActivate); hres = IOleInPlaceActiveObject_OnFrameWindowActivate(inplaceact, TRUE); - ok(hres == S_OK, "OnFrameWindowActivate failed: %08x\n", hres); + ok(hres == S_OK, "OnFrameWindowActivate failed: %08lx\n", hres); CHECK_CALLED(OnFrameWindowActivate);
expect_OnFrameWindowActivate_fActivate = FALSE; SET_EXPECT(OnFrameWindowActivate); hres = IOleInPlaceActiveObject_OnFrameWindowActivate(inplaceact, FALSE); - ok(hres == S_OK, "OnFrameWindowActivate failed: %08x\n", hres); + ok(hres == S_OK, "OnFrameWindowActivate failed: %08lx\n", hres); CHECK_CALLED(OnFrameWindowActivate);
expect_OnFrameWindowActivate_fActivate = TRUE; SET_EXPECT(OnFrameWindowActivate); hres = IOleInPlaceActiveObject_OnFrameWindowActivate(inplaceact, TRUE); - ok(hres == S_OK, "OnFrameWindowActivate failed: %08x\n", hres); + ok(hres == S_OK, "OnFrameWindowActivate failed: %08lx\n", hres); CHECK_CALLED(OnFrameWindowActivate); }else { hres = IOleInPlaceActiveObject_OnFrameWindowActivate(inplaceact, FALSE); - ok(hres == S_OK, "OnFrameWindowActivate failed: %08x\n", hres); + ok(hres == S_OK, "OnFrameWindowActivate failed: %08lx\n", hres);
hres = IOleInPlaceActiveObject_OnFrameWindowActivate(inplaceact, TRUE); - ok(hres == S_OK, "OnFrameWindowActivate failed: %08x\n", hres); + ok(hres == S_OK, "OnFrameWindowActivate failed: %08lx\n", hres); }
IOleInPlaceActiveObject_Release(inplaceact); @@ -7162,18 +7162,18 @@ static void test_object_rects(IHTMLDocument2 *doc)
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleInPlaceObjectWindowless, (void**)&windowlessobj); - ok(hres == S_OK, "QueryInterface(IID_IOleInPlaceObjectWindowless) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleInPlaceObjectWindowless) failed: %08lx\n", hres);
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleDocumentView, (void**)&view); - ok(hres == S_OK, "QueryInterface(IID_IOleDocumentView) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleDocumentView) failed: %08lx\n", hres);
r.top = 1; r.left = 2; r.bottom = 200; r.right = 201; hres = IOleInPlaceObjectWindowless_SetObjectRects(windowlessobj, &r, NULL); - ok(hres == S_OK, "SetObjectRects failed: %08x\n", hres); + ok(hres == S_OK, "SetObjectRects failed: %08lx\n", hres);
GetWindowRect(doc_hwnd, &doc_rect); MapWindowPoints(HWND_DESKTOP, container_hwnd, (POINT*)&doc_rect, 2); @@ -7182,7 +7182,7 @@ static void test_object_rects(IHTMLDocument2 *doc)
memset(&doc_rect, 0xc0, sizeof(doc_rect)); hres = IOleDocumentView_GetRect(view, &doc_rect); - ok(hres == S_OK, "GetRect failed: %08x\n", hres); + ok(hres == S_OK, "GetRect failed: %08lx\n", hres); ok(EqualRect(&r, &doc_rect), "unexpected doc rect %s expected %s\n", wine_dbgstr_rect(&doc_rect), wine_dbgstr_rect(&r));
@@ -7191,7 +7191,7 @@ static void test_object_rects(IHTMLDocument2 *doc) r.bottom = 205; r.right = 206; hres = IOleDocumentView_SetRect(view, &r); - ok(hres == S_OK, "SetObjectRects failed: %08x\n", hres); + ok(hres == S_OK, "SetObjectRects failed: %08lx\n", hres);
GetWindowRect(doc_hwnd, &doc_rect); MapWindowPoints(HWND_DESKTOP, container_hwnd, (POINT*)&doc_rect, 2); @@ -7200,7 +7200,7 @@ static void test_object_rects(IHTMLDocument2 *doc)
memset(&doc_rect, 0xc0, sizeof(doc_rect)); hres = IOleDocumentView_GetRect(view, &doc_rect); - ok(hres == S_OK, "GetRect failed: %08x\n", hres); + ok(hres == S_OK, "GetRect failed: %08lx\n", hres); ok(EqualRect(&r, &doc_rect), "unexpected doc rect %s expected %s\n", wine_dbgstr_rect(&doc_rect), wine_dbgstr_rect(&r));
@@ -7215,7 +7215,7 @@ static void test_InPlaceDeactivate(IHTMLDocument2 *doc, BOOL expect_call)
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleInPlaceObjectWindowless, (void**)&windowlessobj); - ok(hres == S_OK, "QueryInterface(IID_IOleInPlaceObjectWindowless) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleInPlaceObjectWindowless) failed: %08lx\n", hres); if(FAILED(hres)) return;
@@ -7228,7 +7228,7 @@ static void test_InPlaceDeactivate(IHTMLDocument2 *doc, BOOL expect_call) SET_EXPECT(OnInPlaceDeactivate); } hres = IOleInPlaceObjectWindowless_InPlaceDeactivate(windowlessobj); - ok(hres == S_OK, "InPlaceDeactivate failed: %08x\n", hres); + ok(hres == S_OK, "InPlaceDeactivate failed: %08lx\n", hres); if(expect_call) { CLEAR_CALLED(SetStatusText); /* Called by IE9 */ CHECK_CALLED(OnFocus_FALSE); @@ -7255,13 +7255,13 @@ static void test_Activate(IHTMLDocument2 *doc, DWORD flags) view = NULL;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleObject, (void**)&oleobj); - ok(hres == S_OK, "QueryInterface(IID_IOleObject) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleObject) failed: %08lx\n", hres);
hres = IOleObject_GetUserClassID(oleobj, NULL); - ok(hres == E_INVALIDARG, "GetUserClassID returned: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "GetUserClassID returned: %08lx, expected E_INVALIDARG\n", hres);
hres = IOleObject_GetUserClassID(oleobj, &guid); - ok(hres == S_OK, "GetUserClassID failed: %08x\n", hres); + ok(hres == S_OK, "GetUserClassID failed: %08lx\n", hres); ok(IsEqualGUID(&guid, &CLSID_HTMLDocument), "guid != CLSID_HTMLDocument\n");
test_OnFrameWindowActivate((IUnknown*)doc); @@ -7272,7 +7272,7 @@ static void test_Activate(IHTMLDocument2 *doc, DWORD flags)
if(call_UIActivate == CallUIActivate_AfterShow) { hres = IOleObject_QueryInterface(oleobj, &IID_IOleDocumentView, (void **)&docview); - ok(hres == S_OK, "IOleObject_QueryInterface failed with error 0x%08x\n", hres); + ok(hres == S_OK, "IOleObject_QueryInterface failed with error 0x%08lx\n", hres);
SET_EXPECT(OnFocus_TRUE); SET_EXPECT(SetActiveObject); @@ -7282,7 +7282,7 @@ static void test_Activate(IHTMLDocument2 *doc, DWORD flags) expect_status_text = NULL;
hres = IOleDocumentView_UIActivate(docview, TRUE); - ok(hres == S_OK, "IOleDocumentView_UIActivate failed with error 0x%08x\n", hres); + ok(hres == S_OK, "IOleDocumentView_UIActivate failed with error 0x%08lx\n", hres);
CHECK_CALLED(OnFocus_TRUE); CHECK_CALLED(SetActiveObject); @@ -7305,17 +7305,17 @@ static void test_Window(IHTMLDocument2 *doc, BOOL expect_success) HRESULT hres;
hres = IOleDocumentView_QueryInterface(view, &IID_IOleInPlaceActiveObject, (void**)&activeobject); - ok(hres == S_OK, "Could not get IOleInPlaceActiveObject interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IOleInPlaceActiveObject interface: %08lx\n", hres); if(FAILED(hres)) return;
hres = IOleInPlaceActiveObject_GetWindow(activeobject, &tmp_hwnd);
if(expect_success) { - ok(hres == S_OK, "GetWindow failed: %08x\n", hres); + ok(hres == S_OK, "GetWindow failed: %08lx\n", hres); ok(tmp_hwnd == doc_hwnd, "tmp_hwnd=%p, expected %p\n", tmp_hwnd, doc_hwnd); }else { - ok(hres == E_FAIL, "GetWindow returned %08x, expected E_FAIL\n", hres); + ok(hres == E_FAIL, "GetWindow returned %08lx, expected E_FAIL\n", hres); ok(IsWindow(doc_hwnd), "hwnd is destroyed\n"); }
@@ -7331,16 +7331,16 @@ static void test_CloseView(void) return;
hres = IOleDocumentView_Show(view, FALSE); - ok(hres == S_OK, "Show failed: %08x\n", hres); + ok(hres == S_OK, "Show failed: %08lx\n", hres);
hres = IOleDocumentView_CloseView(view, 0); - ok(hres == S_OK, "CloseView failed: %08x\n", hres); + ok(hres == S_OK, "CloseView failed: %08lx\n", hres);
hres = IOleDocumentView_SetInPlaceSite(view, NULL); - ok(hres == S_OK, "SetInPlaceSite failed: %08x\n", hres); + ok(hres == S_OK, "SetInPlaceSite failed: %08lx\n", hres);
hres = IOleDocumentView_GetInPlaceSite(view, &inplacesite); - ok(hres == S_OK, "SetInPlaceSite failed: %08x\n", hres); + ok(hres == S_OK, "SetInPlaceSite failed: %08lx\n", hres); ok(inplacesite == NULL, "inplacesite=%p, expected NULL\n", inplacesite); }
@@ -7358,7 +7358,7 @@ static void test_UIDeactivate(void) }
hres = IOleDocumentView_UIActivate(view, FALSE); - ok(hres == S_OK, "UIActivate failed: %08x\n", hres); + ok(hres == S_OK, "UIActivate failed: %08lx\n", hres);
if(call_UIActivate != CallUIActivate_None) { CHECK_CALLED(SetActiveObject_null); @@ -7378,7 +7378,7 @@ static void test_Hide(void) return;
hres = IOleDocumentView_Show(view, FALSE); - ok(hres == S_OK, "Show failed: %08x\n", hres); + ok(hres == S_OK, "Show failed: %08lx\n", hres); }
static IHTMLDocument2 *create_document(void) @@ -7391,7 +7391,7 @@ static IHTMLDocument2 *create_document(void) #if !defined(__i386__) && !defined(__x86_64__) todo_wine #endif - ok(hres == S_OK, "CoCreateInstance failed: %08x\n", hres); + ok(hres == S_OK, "CoCreateInstance failed: %08lx\n", hres); if(FAILED(hres)) return NULL;
@@ -7407,11 +7407,11 @@ static void release_document(IHTMLDocument2 *doc) /* Some broken IEs don't like if the last released reference is IHTMLDocument2 iface. * To workaround it, we release it via IUnknown iface */ hres = IHTMLDocument2_QueryInterface(doc, &IID_IUnknown, (void**)&unk); - ok(hres == S_OK, "Could not get IUnknown iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IUnknown iface: %08lx\n", hres);
IHTMLDocument2_Release(doc); ref = IUnknown_Release(unk); - ok(!ref, "ref = %d\n", ref); + ok(!ref, "ref = %ld\n", ref); }
static void test_Navigate(IHTMLDocument2 *doc) @@ -7420,11 +7420,11 @@ static void test_Navigate(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHlinkTarget, (void**)&hlink); - ok(hres == S_OK, "QueryInterface(IID_IHlinkTarget) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IHlinkTarget) failed: %08lx\n", hres);
SET_EXPECT(ActivateMe); hres = IHlinkTarget_Navigate(hlink, 0, NULL); - ok(hres == S_OK, "Navigate failed: %08x\n", hres); + ok(hres == S_OK, "Navigate failed: %08lx\n", hres); CHECK_CALLED(ActivateMe);
IHlinkTarget_Release(hlink); @@ -7437,18 +7437,18 @@ static void test_external(IHTMLDocument2 *doc, BOOL initialized) HRESULT hres;
hres = IHTMLDocument2_get_parentWindow(doc, &htmlwin); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres);
if(initialized) SET_EXPECT(GetExternal); external = (void*)0xdeadbeef; hres = IHTMLWindow2_get_external(htmlwin, &external); if(initialized) { - ok(hres == S_FALSE || hres == S_OK, "get_external failed: %08x\n", hres); + ok(hres == S_FALSE || hres == S_OK, "get_external failed: %08lx\n", hres); CHECK_CALLED(GetExternal); ok(external != NULL, "external == NULL\n"); }else { - ok(hres == S_OK, "get_external failed: %08x\n", hres); + ok(hres == S_OK, "get_external failed: %08lx\n", hres); ok(external == NULL, "external != NULL\n"); }
@@ -7464,22 +7464,22 @@ static void test_enum_objects(IOleContainer *container)
enum_unknown = NULL; hres = IOleContainer_EnumObjects(container, OLECONTF_EMBEDDINGS, &enum_unknown); - ok(hres == S_OK, "EnumObjects failed: %08x\n", hres); + ok(hres == S_OK, "EnumObjects failed: %08lx\n", hres); ok(enum_unknown != NULL, "enum_unknown == NULL\n");
fetched = 0xdeadbeef; hres = IEnumUnknown_Next(enum_unknown, ARRAY_SIZE(buf), buf, &fetched); - ok(hres == S_FALSE, "Next returned %08x\n", hres); - ok(!fetched, "fetched = %d\n", fetched); + ok(hres == S_FALSE, "Next returned %08lx\n", hres); + ok(!fetched, "fetched = %ld\n", fetched); ok(buf[0] == (void*)0xdeadbeef, "buf[0] = %p\n", buf[0]);
fetched = 0xdeadbeef; hres = IEnumUnknown_Next(enum_unknown, 1, buf, &fetched); - ok(hres == S_FALSE, "Next returned %08x\n", hres); - ok(!fetched, "fetched = %d\n", fetched); + ok(hres == S_FALSE, "Next returned %08lx\n", hres); + ok(!fetched, "fetched = %ld\n", fetched);
hres = IEnumUnknown_Next(enum_unknown, 1, buf, NULL); - ok(hres == S_FALSE, "Next returned %08x\n", hres); + ok(hres == S_FALSE, "Next returned %08lx\n", hres);
IEnumUnknown_Release(enum_unknown); } @@ -7491,14 +7491,14 @@ static void test_target_container(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_ITargetContainer, (void**)&target_container); - ok(hres == S_OK, "Could not get ITargetContainer iface: %08x\n", hres); + ok(hres == S_OK, "Could not get ITargetContainer iface: %08lx\n", hres);
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleContainer, (void**)&doc_ole_container); - ok(hres == S_OK, "Could not get ITargetContainer iface: %08x\n", hres); + ok(hres == S_OK, "Could not get ITargetContainer iface: %08lx\n", hres);
ole_container = (void*)0xdeadbeef; hres = ITargetContainer_GetFramesContainer(target_container, &ole_container); - ok(hres == S_OK, "GetFramesContainer failed: %08x\n", hres); + ok(hres == S_OK, "GetFramesContainer failed: %08lx\n", hres); ok(ole_container != NULL, "ole_container == NULL\n"); ok(iface_cmp((IUnknown*)ole_container, (IUnknown*)doc_ole_container), "ole_container != doc_ole_container\n"); test_enum_objects(ole_container); @@ -7517,12 +7517,12 @@ static void test_travellog(IHTMLDocument2 *doc)
window = NULL; hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres); ok(window != NULL, "window = NULL\n");
hres = IHTMLWindow2_get_top(window, &top_window); IHTMLWindow2_Release(window); - ok(hres == S_OK, "get_top failed: %08x\n", hres); + ok(hres == S_OK, "get_top failed: %08lx\n", hres);
hres = IHTMLWindow2_QueryInterface(top_window, &IID_ITravelLogClient, (void**)&travellog_client); IHTMLWindow2_Release(top_window); @@ -7531,11 +7531,11 @@ static void test_travellog(IHTMLDocument2 *doc) no_travellog = TRUE; return; } - ok(hres == S_OK, "Could not get ITraveLogClient iface: %08x\n", hres); + ok(hres == S_OK, "Could not get ITraveLogClient iface: %08lx\n", hres);
unk = (void*)0xdeadbeef; hres = ITravelLogClient_FindWindowByIndex(travellog_client, 0, &unk); - ok(hres == E_FAIL, "FindWindowByIndex failed: %08x\n", hres); + ok(hres == E_FAIL, "FindWindowByIndex failed: %08lx\n", hres); ok(!unk, "unk != NULL\n");
ITravelLogClient_Release(travellog_client); @@ -7547,7 +7547,7 @@ static void test_StreamLoad(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistStreamInit, (void**)&init); - ok(hres == S_OK, "QueryInterface(IID_IPersistStreamInit) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IPersistStreamInit) failed: %08lx\n", hres); if(FAILED(hres)) return;
@@ -7561,7 +7561,7 @@ static void test_StreamLoad(IHTMLDocument2 *doc) readystate_set_loading = TRUE;
hres = IPersistStreamInit_Load(init, &Stream); - ok(hres == S_OK, "Load failed: %08x\n", hres); + ok(hres == S_OK, "Load failed: %08lx\n", hres);
CHECK_CALLED(Invoke_AMBIENT_SILENT); CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); @@ -7583,7 +7583,7 @@ static void test_StreamInitNew(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistStreamInit, (void**)&init); - ok(hres == S_OK, "QueryInterface(IID_IPersistStreamInit) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IPersistStreamInit) failed: %08lx\n", hres); if(FAILED(hres)) return;
@@ -7596,7 +7596,7 @@ static void test_StreamInitNew(IHTMLDocument2 *doc) readystate_set_loading = TRUE;
hres = IPersistStreamInit_InitNew(init); - ok(hres == S_OK, "Load failed: %08x\n", hres); + ok(hres == S_OK, "Load failed: %08lx\n", hres);
CHECK_CALLED(Invoke_AMBIENT_SILENT); CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); @@ -7621,51 +7621,51 @@ static void test_QueryInterface(IHTMLDocument2 *htmldoc)
qi = (void*)0xdeadbeef; hres = IUnknown_QueryInterface(doc, &IID_IRunnableObject, (void**)&qi); - ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface returned %08lx, expected E_NOINTERFACE\n", hres); ok(qi == NULL, "qirunnable=%p, expected NULL\n", qi);
qi = (void*)0xdeadbeef; hres = IUnknown_QueryInterface(doc, &IID_IHTMLDOMNode, (void**)&qi); - ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface returned %08lx, expected E_NOINTERFACE\n", hres); ok(qi == NULL, "qi=%p, expected NULL\n", qi);
qi = (void*)0xdeadbeef; hres = IUnknown_QueryInterface(doc, &IID_IHTMLDOMNode2, (void**)&qi); - ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface returned %08lx, expected E_NOINTERFACE\n", hres); ok(qi == NULL, "qi=%p, expected NULL\n", qi);
qi = (void*)0xdeadbeef; hres = IUnknown_QueryInterface(doc, &IID_IPersistPropertyBag, (void**)&qi); - ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface returned %08lx, expected E_NOINTERFACE\n", hres); ok(qi == NULL, "qi=%p, expected NULL\n", qi);
qi = (void*)0xdeadbeef; hres = IUnknown_QueryInterface(doc, &IID_UndocumentedScriptIface, (void**)&qi); - ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface returned %08lx, expected E_NOINTERFACE\n", hres); ok(qi == NULL, "qi=%p, expected NULL\n", qi);
qi = (void*)0xdeadbeef; hres = IUnknown_QueryInterface(doc, &IID_IMarshal, (void**)&qi); - ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface returned %08lx, expected E_NOINTERFACE\n", hres); ok(qi == NULL, "qi=%p, expected NULL\n", qi);
qi = (void*)0xdeadbeef; hres = IUnknown_QueryInterface(doc, &IID_IExternalConnection, (void**)&qi); - ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface returned %08lx, expected E_NOINTERFACE\n", hres); ok(qi == NULL, "qi=%p, expected NULL\n", qi);
qi = (void*)0xdeadbeef; hres = IUnknown_QueryInterface(doc, &IID_IStdMarshalInfo, (void**)&qi); - ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface returned %08lx, expected E_NOINTERFACE\n", hres); ok(qi == NULL, "qi=%p, expected NULL\n", qi);
qi = (void*)0xdeadbeef; hres = IUnknown_QueryInterface(doc, &IID_ITargetFrame, (void**)&qi); - ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres); + ok(hres == E_NOINTERFACE, "QueryInterface returned %08lx, expected E_NOINTERFACE\n", hres); ok(qi == NULL, "qi=%p, expected NULL\n", qi);
hres = IUnknown_QueryInterface(doc, &IID_IDispatch, (void**)&qi); - ok(hres == S_OK, "Could not get IDispatch interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDispatch interface: %08lx\n", hres); ok(qi != doc, "disp == doc\n"); IUnknown_Release(qi); } @@ -7814,7 +7814,7 @@ static void test_MHTMLDocument(void)
hres = CoCreateInstance(&CLSID_MHTMLDocument, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER, &IID_IHTMLDocument2, (void**)&doc); - ok(hres == S_OK, "CoCreateInstance failed: %08x\n", hres); + ok(hres == S_OK, "CoCreateInstance failed: %08lx\n", hres);
doc_unk = (IUnknown*)doc;
@@ -7824,7 +7824,7 @@ static void test_MHTMLDocument(void) test_ConnectionPointContainer(doc);
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleObject, (void**)&oleobj); - ok(hres == S_OK, "Could not get IOleObject iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IOleObject iface: %08lx\n", hres); test_ClientSite(oleobj, CLIENTSITE_EXPECTPATH); test_DoVerb(oleobj); IOleObject_Release(oleobj); @@ -7900,26 +7900,26 @@ static void test_cookies(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_cookie(doc, &str); - ok(hres == S_OK, "get_cookie failed: %08x\n", hres); + ok(hres == S_OK, "get_cookie failed: %08lx\n", hres); if(str) { size = ARRAY_SIZE(buf); b = InternetGetCookieW(http_urlW, NULL, buf, &size); - ok(b, "InternetGetCookieW failed: %08x\n", GetLastError()); + ok(b, "InternetGetCookieW failed: %08lx\n", GetLastError()); ok(!lstrcmpW(buf, str), "cookie = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(buf)); SysFreeString(str); }
str = SysAllocString(L"test=testval"); hres = IHTMLDocument2_put_cookie(doc, str); - ok(hres == S_OK, "put_cookie failed: %08x\n", hres); + ok(hres == S_OK, "put_cookie failed: %08lx\n", hres);
str2 = NULL; hres = IHTMLDocument2_get_cookie(doc, &str2); - ok(hres == S_OK, "get_cookie failed: %08x\n", hres); + ok(hres == S_OK, "get_cookie failed: %08lx\n", hres); ok(str2 != NULL, "cookie = NULL\n"); size = ARRAY_SIZE(buf); b = InternetGetCookieW(http_urlW, NULL, buf, &size); - ok(b, "InternetGetCookieW failed: %08x\n", GetLastError()); + ok(b, "InternetGetCookieW failed: %08lx\n", GetLastError()); ok(!lstrcmpW(buf, str2), "cookie = %s, expected %s\n", wine_dbgstr_w(str2), wine_dbgstr_w(buf)); if(str2) ok(wcsstr(str2, str) != NULL, "could not find %s in %s\n", wine_dbgstr_w(str), wine_dbgstr_w(str2)); @@ -7928,15 +7928,15 @@ static void test_cookies(IHTMLDocument2 *doc)
str = SysAllocString(L"test=testval2"); hres = IHTMLDocument2_put_cookie(doc, str); - ok(hres == S_OK, "put_cookie failed: %08x\n", hres); + ok(hres == S_OK, "put_cookie failed: %08lx\n", hres);
str2 = NULL; hres = IHTMLDocument2_get_cookie(doc, &str2); - ok(hres == S_OK, "get_cookie failed: %08x\n", hres); + ok(hres == S_OK, "get_cookie failed: %08lx\n", hres); ok(str2 != NULL, "cookie = NULL\n"); size = ARRAY_SIZE(buf); b = InternetGetCookieW(http_urlW, NULL, buf, &size); - ok(b, "InternetGetCookieW failed: %08x\n", GetLastError()); + ok(b, "InternetGetCookieW failed: %08lx\n", GetLastError()); ok(!lstrcmpW(buf, str2), "cookie = %s, expected %s\n", wine_dbgstr_w(str2), wine_dbgstr_w(buf)); if(str2) ok(wcsstr(str2, str) != NULL, "could not find %s in %s\n", wine_dbgstr_w(str), wine_dbgstr_w(str2)); @@ -7950,27 +7950,27 @@ static void test_doc_domain(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_domain(doc, &str); - ok(hres == S_OK, "get_domain failed: %08x\n", hres); + ok(hres == S_OK, "get_domain failed: %08lx\n", hres); ok(!lstrcmpW(str, L"test.winehq.org"), "domain = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"winehq.org"); hres = IHTMLDocument2_put_domain(doc, str); - ok(hres == S_OK, "put_domain failed: %08x\n", hres); + ok(hres == S_OK, "put_domain failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLDocument2_get_domain(doc, &str); - ok(hres == S_OK, "get_domain failed: %08x\n", hres); + ok(hres == S_OK, "get_domain failed: %08lx\n", hres); ok(!lstrcmpW(str, L"winehq.org"), "domain = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"winehq.com"); hres = IHTMLDocument2_put_domain(doc, str); - ok(hres == E_INVALIDARG, "put_domain failed: %08x, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "put_domain failed: %08lx, expected E_INVALIDARG\n", hres); SysFreeString(str);
hres = IHTMLDocument2_get_domain(doc, &str); - ok(hres == S_OK, "get_domain failed: %08x\n", hres); + ok(hres == S_OK, "get_domain failed: %08lx\n", hres); ok(!lstrcmpW(str, L"winehq.org"), "domain = %s\n", wine_dbgstr_w(str)); SysFreeString(str); } @@ -7998,7 +7998,7 @@ static void test_HTMLDocument_http(BOOL with_wbapp) doc_unk = (IUnknown*)doc;
hres = CreateURLMoniker(NULL, http_urlW, &http_mon); - ok(hres == S_OK, "CreateURLMoniker failed: %08x\n", hres); + ok(hres == S_OK, "CreateURLMoniker failed: %08lx\n", hres);
test_ViewAdviseSink(doc); test_ConnectionPointContainer(doc); @@ -8050,7 +8050,7 @@ static void test_HTMLDocument_http(BOOL with_wbapp) release_document(doc);
ref = IMoniker_Release(http_mon); - ok(!ref, "ref=%d, expected 0\n", ref); + ok(!ref, "ref=%ld, expected 0\n", ref); }
static void put_inner_html(IHTMLElement *elem, const WCHAR *html) @@ -8059,7 +8059,7 @@ static void put_inner_html(IHTMLElement *elem, const WCHAR *html) HRESULT hres;
hres = IHTMLElement_put_innerHTML(elem, str); - ok(hres == S_OK, "put_innerHTML failed: %08x\n", hres); + ok(hres == S_OK, "put_innerHTML failed: %08lx\n", hres);
SysFreeString(str); } @@ -8072,10 +8072,10 @@ static IHTMLElement *get_elem_by_id(IHTMLDocument2 *doc, const WCHAR *id) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3); - ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08lx\n", hres);
hres = IHTMLDocument3_getElementById(doc3, str, &ret); - ok(hres == S_OK, "getElementById failed: %08x\n", hres); + ok(hres == S_OK, "getElementById failed: %08lx\n", hres);
IHTMLDocument3_Release(doc3); return ret; @@ -8087,14 +8087,14 @@ static void reset_document(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistStreamInit, (void**)&init); - ok(hres == S_OK, "QueryInterface(IID_IPersistStreamInit) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IPersistStreamInit) failed: %08lx\n", hres); if(FAILED(hres)) return;
resetting_document = TRUE;
hres = IPersistStreamInit_InitNew(init); - ok(hres == S_OK, "Load failed: %08x\n", hres); + ok(hres == S_OK, "Load failed: %08lx\n", hres);
resetting_document = FALSE;
@@ -8135,7 +8135,7 @@ static void test_submit(void) test_download(DWL_CSS|DWL_TRYCSS);
hres = IHTMLDocument2_get_body(doc, &body); - ok(hres == S_OK, "get_body failed: %08x\n", hres); + ok(hres == S_OK, "get_body failed: %08lx\n", hres); ok(body != NULL, "body = NULL\n");
put_inner_html(body, L"<form action='test_submit' method='post' id='fid'><input type='hidden' name='cmd' value='TEST'></form>"); @@ -8145,7 +8145,7 @@ static void test_submit(void) ok(form_elem != NULL, "form = NULL\n");
hres = IHTMLElement_QueryInterface(form_elem, &IID_IHTMLFormElement, (void**)&form); - ok(hres == S_OK, "Could not get IHTMLFormElement: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLFormElement: %08lx\n", hres); IHTMLElement_Release(form_elem);
nav_url = nav_serv_url = L"winetest:test_submit"; @@ -8170,7 +8170,7 @@ static void test_submit(void) SET_EXPECT(Terminate);
hres = IHTMLFormElement_submit(form); - ok(hres == S_OK, "submit failed: %08x\n", hres); + ok(hres == S_OK, "submit failed: %08lx\n", hres);
CHECK_CALLED(TranslateUrl); CHECK_CALLED(FireBeforeNavigate2); @@ -8216,34 +8216,34 @@ static void test_QueryService(IHTMLDocument2 *doc, BOOL success) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IServiceProvider, (void**)&sp); - ok(hres == S_OK, "QueryService returned %08x\n", hres); + ok(hres == S_OK, "QueryService returned %08lx\n", hres);
hres = IServiceProvider_QueryService(sp, &IID_IHlinkFrame, &IID_IHlinkFrame, (void**)&hf); if(!success) { - ok(hres == E_NOINTERFACE, "QueryService returned %08x, expected E_NOINTERFACE\n", hres); + ok(hres == E_NOINTERFACE, "QueryService returned %08lx, expected E_NOINTERFACE\n", hres); IServiceProvider_Release(sp); return; }
- ok(hres == S_OK, "QueryService(IID_IHlinkFrame) failed: %08x\n", hres); + ok(hres == S_OK, "QueryService(IID_IHlinkFrame) failed: %08lx\n", hres); ok(hf == &HlinkFrame, "hf != HlinkFrame\n"); IHlinkFrame_Release(hf);
IServiceProvider_Release(sp);
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres);
hres = IHTMLWindow2_QueryInterface(window, &IID_IServiceProvider, (void**)&sp); - ok(hres == S_OK, "Could not get IServiceProvider iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IServiceProvider iface: %08lx\n", hres);
hres = IServiceProvider_QueryService(sp, &IID_IHTMLWindow2, &IID_IHTMLWindow2, (void**)&sp_window); - ok(hres == S_OK, "QueryService(IID_IHTMLWindow2) failed: %08x\n", hres); + ok(hres == S_OK, "QueryService(IID_IHTMLWindow2) failed: %08lx\n", hres); /* FIXME: test returned window */ IHTMLWindow2_Release(sp_window);
hres = IServiceProvider_QueryService(sp, &IID_IHlinkFrame, &IID_IHlinkFrame, (void**)&hf); - ok(hres == S_OK, "QueryService(IID_IHlinkFrame) failed: %08x\n", hres); + ok(hres == S_OK, "QueryService(IID_IHlinkFrame) failed: %08lx\n", hres); ok(hf == &HlinkFrame, "hf != HlinkFrame\n"); IHlinkFrame_Release(hf);
@@ -8267,10 +8267,10 @@ static void test_HTMLDocument_StreamLoad(void) doc_unk = (IUnknown*)doc;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleObject, (void**)&oleobj); - ok(hres == S_OK, "Could not get IOleObject: %08x\n", hres); + ok(hres == S_OK, "Could not get IOleObject: %08lx\n", hres);
hres = IOleObject_Advise(oleobj, (IAdviseSink*)&AdviseSink, &conn); - ok(hres == S_OK, "Advise failed: %08x\n", hres); + ok(hres == S_OK, "Advise failed: %08lx\n", hres);
test_readyState((IUnknown*)doc); test_IsDirty(doc, S_FALSE); @@ -8328,10 +8328,10 @@ static void test_HTMLDocument_StreamInitNew(void) doc_unk = (IUnknown*)doc;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleObject, (void**)&oleobj); - ok(hres == S_OK, "Could not get IOleObject: %08x\n", hres); + ok(hres == S_OK, "Could not get IOleObject: %08lx\n", hres);
hres = IOleObject_Advise(oleobj, (IAdviseSink*)&AdviseSink, &conn); - ok(hres == S_OK, "Advise failed: %08x\n", hres); + ok(hres == S_OK, "Advise failed: %08lx\n", hres);
test_readyState((IUnknown*)doc); test_IsDirty(doc, S_FALSE); @@ -8373,7 +8373,7 @@ static void test_edit_uiactivate(IOleObject *oleobj) HRESULT hres;
hres = IOleObject_QueryInterface(oleobj, &IID_IOleDocumentView, (void **)&docview); - ok(hres == S_OK, "IOleObject_QueryInterface failed with error 0x%08x\n", hres); + ok(hres == S_OK, "IOleObject_QueryInterface failed with error 0x%08lx\n", hres);
SET_EXPECT(OnFocus_TRUE); SET_EXPECT(SetActiveObject); @@ -8383,7 +8383,7 @@ static void test_edit_uiactivate(IOleObject *oleobj) expect_status_text = NULL;
hres = IOleDocumentView_UIActivate(docview, TRUE); - ok(hres == S_OK, "IOleDocumentView_UIActivate failed with error 0x%08x\n", hres); + ok(hres == S_OK, "IOleDocumentView_UIActivate failed with error 0x%08lx\n", hres);
CHECK_CALLED(OnFocus_TRUE); CHECK_CALLED(SetActiveObject); @@ -8411,10 +8411,10 @@ static void test_editing_mode(BOOL do_load, BOOL use_design_mode) unk = doc_unk = (IUnknown*)doc;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleObject, (void**)&oleobj); - ok(hres == S_OK, "Could not get IOleObject: %08x\n", hres); + ok(hres == S_OK, "Could not get IOleObject: %08lx\n", hres);
hres = IOleObject_Advise(oleobj, (IAdviseSink*)&AdviseSink, &conn); - ok(hres == S_OK, "Advise failed: %08x\n", hres); + ok(hres == S_OK, "Advise failed: %08lx\n", hres);
test_readyState((IUnknown*)doc); test_ViewAdviseSink(doc); @@ -8466,7 +8466,7 @@ static void test_editing_mode(BOOL do_load, BOOL use_design_mode) on = SysAllocString(L"On"); hres = IHTMLDocument2_put_designMode(doc, on); SysFreeString(on); - ok(hres == S_OK, "put_designMode failed: %08x\n", hres); + ok(hres == S_OK, "put_designMode failed: %08lx\n", hres);
todo_wine CHECK_CALLED(OnChanged_1005); todo_wine CHECK_CALLED(ActiveElementChanged); @@ -8557,10 +8557,10 @@ static void test_UIActivate(BOOL do_load, BOOL use_ipsex, BOOL use_ipsw) ipsw = use_ipsw;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleObject, (void**)&oleobj); - ok(hres == S_OK, "QueryInterface(IID_IOleObject) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleObject) failed: %08lx\n", hres);
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleDocumentView, (void**)&view); - ok(hres == S_OK, "QueryInterface(IID_IOleDocumentView) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IOleDocumentView) failed: %08lx\n", hres);
SET_EXPECT(Invoke_AMBIENT_USERMODE); SET_EXPECT(GetHostInfo); @@ -8580,7 +8580,7 @@ static void test_UIActivate(BOOL do_load, BOOL use_ipsex, BOOL use_ipsw) SET_EXPECT(Exec_ShellDocView_84);
hres = IOleObject_SetClientSite(oleobj, &ClientSite); - ok(hres == S_OK, "SetClientSite failed: %08x\n", hres); + ok(hres == S_OK, "SetClientSite failed: %08lx\n", hres); set_clientsite = TRUE;
CHECK_CALLED(Invoke_AMBIENT_USERMODE); @@ -8601,7 +8601,7 @@ static void test_UIActivate(BOOL do_load, BOOL use_ipsex, BOOL use_ipsw) CHECK_CALLED_BROKEN(Exec_ShellDocView_84);
hres = IOleDocumentView_GetInPlaceSite(view, &inplacesite); - ok(hres == S_OK, "GetInPlaceSite failed: %08x\n", hres); + ok(hres == S_OK, "GetInPlaceSite failed: %08lx\n", hres); ok(inplacesite == NULL, "inplacesite = %p, expected NULL\n", inplacesite);
SET_EXPECT(GetContainer); @@ -8627,7 +8627,7 @@ static void test_UIActivate(BOOL do_load, BOOL use_ipsex, BOOL use_ipsw) expect_LockContainer_fLock = TRUE;
hres = IOleDocumentView_UIActivate(view, TRUE); - ok(hres == S_OK, "UIActivate failed: %08x\n", hres); + ok(hres == S_OK, "UIActivate failed: %08lx\n", hres);
CHECK_CALLED(GetContainer); CHECK_CALLED(LockContainer); @@ -8657,7 +8657,7 @@ static void test_UIActivate(BOOL do_load, BOOL use_ipsex, BOOL use_ipsw) SET_EXPECT(OnUIDeactivate);
hres = IOleDocumentView_UIActivate(view, FALSE); - ok(hres == S_OK, "UIActivate failed: %08x\n", hres); + ok(hres == S_OK, "UIActivate failed: %08lx\n", hres);
CHECK_CALLED(SetActiveObject_null); CHECK_CALLED(InPlaceUIWindow_SetActiveObject); @@ -8665,7 +8665,7 @@ static void test_UIActivate(BOOL do_load, BOOL use_ipsex, BOOL use_ipsw) CHECK_CALLED(OnUIDeactivate);
hres = IOleDocumentView_GetInPlaceSite(view, &inplacesite); - ok(hres == S_OK, "GetInPlaceSite failed: %08x\n", hres); + ok(hres == S_OK, "GetInPlaceSite failed: %08lx\n", hres); ok(inplacesite != NULL, "inplacesite = NULL\n"); IOleInPlaceSite_Release(inplacesite);
@@ -8702,11 +8702,11 @@ static void register_protocol(void) static const WCHAR wsz_winetest[] = {'w','i','n','e','t','e','s','t',0};
hres = CoInternetGetSession(0, &session, 0); - ok(hres == S_OK, "CoInternetGetSession failed: %08x\n", hres); + ok(hres == S_OK, "CoInternetGetSession failed: %08lx\n", hres);
hres = IInternetSession_RegisterNameSpace(session, &ClassFactory, &IID_NULL, wsz_winetest, 0, NULL, 0); - ok(hres == S_OK, "RegisterNameSpace failed: %08x\n", hres); + ok(hres == S_OK, "RegisterNameSpace failed: %08lx\n", hres);
IInternetSession_Release(session); } @@ -8720,12 +8720,12 @@ static void test_HTMLDoc_ISupportErrorInfo(void) doc = create_document();
hres = IHTMLDocument2_QueryInterface(doc, &IID_ISupportErrorInfo, (void**)&sinfo); - ok(hres == S_OK, "got %x\n", hres); + ok(hres == S_OK, "got %lx\n", hres); ok(sinfo != NULL, "got %p\n", sinfo); if(sinfo) { hres = ISupportErrorInfo_InterfaceSupportsErrorInfo(sinfo, &IID_IErrorInfo); - ok(hres == S_FALSE, "Expected S_OK, got %x\n", hres); + ok(hres == S_FALSE, "Expected S_OK, got %lx\n", hres); ISupportErrorInfo_Release(sinfo); }
@@ -8772,31 +8772,31 @@ static void test_ServiceProvider(void) return;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IServiceProvider, (void**)&provider); - ok(hres == S_OK, "got 0x%08x\n", hres); + ok(hres == S_OK, "got 0x%08lx\n", hres);
hres = IServiceProvider_QueryService(provider, &SID_SContainerDispatch, &IID_IHTMLDocument2, (void**)&doc2); - ok(hres == S_OK, "got 0x%08x\n", hres); + ok(hres == S_OK, "got 0x%08lx\n", hres); ok(iface_cmp((IUnknown*)doc2, (IUnknown*)doc), "got wrong pointer\n"); IHTMLDocument2_Release(doc2);
hres = IServiceProvider_QueryService(provider, &SID_SContainerDispatch, &IID_IHTMLDocument3, (void**)&doc3); - ok(hres == S_OK, "got 0x%08x\n", hres); + ok(hres == S_OK, "got 0x%08lx\n", hres); ok(iface_cmp((IUnknown*)doc3, (IUnknown*)doc), "got wrong pointer\n");
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3_2); - ok(hres == S_OK, "got 0x%08x\n", hres); + ok(hres == S_OK, "got 0x%08lx\n", hres); ok(iface_cmp((IUnknown*)doc3_2, (IUnknown*)doc), "got wrong pointer\n"); ok(iface_cmp((IUnknown*)doc3_2, (IUnknown*)doc3), "got wrong pointer\n"); IHTMLDocument3_Release(doc3); IHTMLDocument3_Release(doc3_2);
hres = IServiceProvider_QueryService(provider, &SID_SContainerDispatch, &IID_IUnknown, (void**)&unk); - ok(hres == S_OK, "got 0x%08x\n", hres); + ok(hres == S_OK, "got 0x%08lx\n", hres); ok(iface_cmp((IUnknown*)doc, unk), "got wrong pointer\n"); IUnknown_Release(unk);
hres = IServiceProvider_QueryService(provider, &SID_SHTMLEditServices, &IID_IHTMLEditServices, (void**)&unk); - ok(hres == S_OK, "QueryService(HTMLEditServices) failed: %08x\n", hres); + ok(hres == S_OK, "QueryService(HTMLEditServices) failed: %08lx\n", hres); IUnknown_Release(unk);
IServiceProvider_Release(provider); @@ -8843,20 +8843,20 @@ static void test_com_aggregation(const CLSID *clsid) HRESULT hres;
hres = CoGetClassObject(clsid, CLSCTX_INPROC_SERVER, NULL, &IID_IClassFactory, (void**)&class_factory); - ok(hres == S_OK, "CoGetClassObject failed: %08x\n", hres); + ok(hres == S_OK, "CoGetClassObject failed: %08lx\n", hres);
SET_EXPECT(outer_QI_IPersistMoniker); /* Some IE version QI for that. */ hres = IClassFactory_CreateInstance(class_factory, &outer, &IID_IUnknown, (void**)&unk); - ok(hres == S_OK, "CreateInstance returned: %08x\n", hres); + ok(hres == S_OK, "CreateInstance returned: %08lx\n", hres); SET_CALLED(outer_QI_IPersistMoniker);
hres = IUnknown_QueryInterface(unk, &IID_IDispatch, (void**)&unk2); - ok(hres == S_OK, "Could not get IDispatch iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDispatch iface: %08lx\n", hres);
SET_EXPECT(outer_QI_test); hres = IUnknown_QueryInterface(unk2, &outer_test_iid, (void**)&unk3); CHECK_CALLED(outer_QI_test); - ok(hres == S_OK, "Could not get IInternetProtocol iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IInternetProtocol iface: %08lx\n", hres); ok(unk3 == (IUnknown*)0xdeadbeef, "unexpected unk2\n");
IUnknown_Release(unk2); @@ -8864,7 +8864,7 @@ static void test_com_aggregation(const CLSID *clsid)
unk = (void*)0xdeadbeef; hres = IClassFactory_CreateInstance(class_factory, &outer, &IID_IDispatch, (void**)&unk); - ok(hres == E_INVALIDARG, "CreateInstance returned: %08x\n", hres); + ok(hres == E_INVALIDARG, "CreateInstance returned: %08lx\n", hres); ok(!unk, "unk = %p\n", unk);
IClassFactory_Release(class_factory); diff --git a/dlls/mshtml/tests/htmllocation.c b/dlls/mshtml/tests/htmllocation.c index cec69e44142..0b241085af2 100644 --- a/dlls/mshtml/tests/htmllocation.c +++ b/dlls/mshtml/tests/htmllocation.c @@ -107,11 +107,11 @@ static void test_href(IHTMLLocation *loc, const struct location_test *test)
hres = IHTMLLocation_get_href(loc, NULL); ok(hres == E_POINTER, - "%s: get_href should have failed with E_POINTER (0x%08x), was: 0x%08x\n", + "%s: get_href should have failed with E_POINTER (0x%08lx), was: 0x%08lx\n", test->name, E_POINTER, hres);
hres = IHTMLLocation_get_href(loc, &str); - ok(hres == S_OK, "%s: get_href failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: get_href failed: 0x%08lx\n", test->name, hres); if(hres == S_OK) ok(str_eq_wa(str, test->href), "%s: expected retrieved href to be L"%s", was: %s\n", @@ -119,7 +119,7 @@ static void test_href(IHTMLLocation *loc, const struct location_test *test) SysFreeString(str);
hres = IHTMLLocation_toString(loc, &str); - ok(hres == S_OK, "%s: toString failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: toString failed: 0x%08lx\n", test->name, hres); ok(str_eq_wa(str, test->href), "%s: toString returned %s, expected %s\n", test->name, wine_dbgstr_w(str), test->href); SysFreeString(str); @@ -132,11 +132,11 @@ static void test_protocol(IHTMLLocation *loc, const struct location_test *test)
hres = IHTMLLocation_get_protocol(loc, NULL); ok(hres == E_POINTER, - "%s: get_protocol should have failed with E_POINTER (0x%08x), was: 0x%08x\n", + "%s: get_protocol should have failed with E_POINTER (0x%08lx), was: 0x%08lx\n", test->name, E_POINTER, hres);
hres = IHTMLLocation_get_protocol(loc, &str); - ok(hres == S_OK, "%s: get_protocol failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: get_protocol failed: 0x%08lx\n", test->name, hres); if(hres == S_OK) ok(str_eq_wa(str, test->protocol), "%s: expected retrieved protocol to be L"%s", was: %s\n", @@ -151,11 +151,11 @@ static void test_host(IHTMLLocation *loc, const struct location_test *test)
hres = IHTMLLocation_get_host(loc, NULL); ok(hres == E_POINTER, - "%s: get_host should have failed with E_POINTER (0x%08x), was: 0x%08x\n", + "%s: get_host should have failed with E_POINTER (0x%08lx), was: 0x%08lx\n", test->name, E_POINTER, hres);
hres = IHTMLLocation_get_host(loc, &str); - ok(hres == S_OK, "%s: get_host failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: get_host failed: 0x%08lx\n", test->name, hres); if(hres == S_OK){ int len = test->host ? strlen(test->host) : 0; ok(str_eq_wa(str, test->host), @@ -175,11 +175,11 @@ static void test_hostname(IHTMLLocation *loc, IHTMLDocument2 *doc, const struct
hres = IHTMLLocation_get_hostname(loc, NULL); ok(hres == E_POINTER, - "%s: get_hostname should have failed with E_POINTER (0x%08x), was: 0x%08x\n", + "%s: get_hostname should have failed with E_POINTER (0x%08lx), was: 0x%08lx\n", test->name, E_POINTER, hres);
hres = IHTMLLocation_get_hostname(loc, &str); - ok(hres == S_OK, "%s: get_hostname failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: get_hostname failed: 0x%08lx\n", test->name, hres); if(hres == S_OK) ok(str_eq_wa(str, test->hostname), "%s: expected retrieved hostname to be L"%s", was: %s\n", @@ -187,7 +187,7 @@ static void test_hostname(IHTMLLocation *loc, IHTMLDocument2 *doc, const struct SysFreeString(str);
hres = IHTMLDocument2_get_domain(doc, &str); - ok(hres == S_OK, "%s: get_domain failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: get_domain failed: 0x%08lx\n", test->name, hres); if(hres == S_OK) ok(str_eq_wa(str, test->hostname ? test->hostname : ""), "%s: expected retrieved domain to be L"%s", was: %s\n", @@ -202,11 +202,11 @@ static void test_port(IHTMLLocation *loc, const struct location_test *test)
hres = IHTMLLocation_get_port(loc, NULL); ok(hres == E_POINTER, - "%s: get_port should have failed with E_POINTER (0x%08x), was: 0x%08x\n", + "%s: get_port should have failed with E_POINTER (0x%08lx), was: 0x%08lx\n", test->name, E_POINTER, hres);
hres = IHTMLLocation_get_port(loc, &str); - ok(hres == S_OK, "%s: get_port failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: get_port failed: 0x%08lx\n", test->name, hres); if(hres == S_OK) ok(str_eq_wa(str, test->port) || (!str && !*test->port), /* IE11 */ @@ -222,11 +222,11 @@ static void test_pathname(IHTMLLocation *loc, const struct location_test *test)
hres = IHTMLLocation_get_pathname(loc, NULL); ok(hres == E_POINTER, - "%s: get_pathname should have failed with E_POINTER (0x%08x), was: 0x%08x\n", + "%s: get_pathname should have failed with E_POINTER (0x%08lx), was: 0x%08lx\n", test->name, E_POINTER, hres);
hres = IHTMLLocation_get_pathname(loc, &str); - ok(hres == S_OK, "%s: get_pathname failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: get_pathname failed: 0x%08lx\n", test->name, hres); if(hres == S_OK) /* FIXME: We seem to be testing location in a buggy state. Path names do not * include leading slash, while other tests confirm that it should be there */ @@ -244,11 +244,11 @@ static void test_search(IHTMLLocation *loc, const struct location_test *test)
hres = IHTMLLocation_get_search(loc, NULL); ok(hres == E_POINTER, - "%s: get_search should have failed with E_POINTER (0x%08x), was: 0x%08x\n", + "%s: get_search should have failed with E_POINTER (0x%08lx), was: 0x%08lx\n", test->name, E_POINTER, hres);
hres = IHTMLLocation_get_search(loc, &str); - ok(hres == S_OK, "%s: get_search failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: get_search failed: 0x%08lx\n", test->name, hres); if(hres == S_OK) ok(str_eq_wa(str, test->search), "%s: expected retrieved search to be L"%s", was: %s\n", @@ -263,11 +263,11 @@ static void test_hash(IHTMLLocation *loc, const struct location_test *test)
hres = IHTMLLocation_get_hash(loc, NULL); ok(hres == E_POINTER, - "%s: get_hash should have failed with E_POINTER (0x%08x), was: 0x%08x\n", + "%s: get_hash should have failed with E_POINTER (0x%08lx), was: 0x%08lx\n", test->name, E_POINTER, hres);
hres = IHTMLLocation_get_hash(loc, &str); - ok(hres == S_OK, "%s: get_hash failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: get_hash failed: 0x%08lx\n", test->name, hres); if(hres == S_OK) ok(str_eq_wa(str, test->hash), "%s: expected retrieved hash to be L"%s", was: %s\n", @@ -287,13 +287,13 @@ static void perform_test(const struct location_test* test) IHTMLLocation *location;
hres = CreateBindCtx(0, &bc); - ok(hres == S_OK, "%s: CreateBindCtx failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: CreateBindCtx failed: 0x%08lx\n", test->name, hres); if(FAILED(hres)) return;
MultiByteToWideChar(CP_ACP, 0, test->url, -1, url, ARRAY_SIZE(url)); hres = CreateURLMoniker(NULL, url, &url_mon); - ok(hres == S_OK, "%s: CreateURLMoniker failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: CreateURLMoniker failed: 0x%08lx\n", test->name, hres); if(FAILED(hres)){ IBindCtx_Release(bc); return; @@ -305,7 +305,7 @@ static void perform_test(const struct location_test* test) #if !defined(__i386__) && !defined(__x86_64__) todo_wine #endif - ok(hres == S_OK, "%s: CoCreateInstance failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: CoCreateInstance failed: 0x%08lx\n", test->name, hres); if(FAILED(hres)){ IMoniker_Release(url_mon); IBindCtx_Release(bc); @@ -324,7 +324,7 @@ static void perform_test(const struct location_test* test)
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistMoniker, (void**)&persist_mon); - ok(hres == S_OK, "%s: IHTMlDocument2_QueryInterface failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: IHTMlDocument2_QueryInterface failed: 0x%08lx\n", test->name, hres); if(FAILED(hres)){ IHTMLDocument2_Release(doc); IMoniker_Release(url_mon); @@ -334,7 +334,7 @@ static void perform_test(const struct location_test* test)
hres = IPersistMoniker_Load(persist_mon, FALSE, url_mon, bc, STGM_SHARE_EXCLUSIVE | STGM_READWRITE); - ok(hres == S_OK, "%s: IPersistMoniker_Load failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: IPersistMoniker_Load failed: 0x%08lx\n", test->name, hres); if(FAILED(hres)){ IPersistMoniker_Release(persist_mon); IHTMLDocument2_Release(doc); @@ -344,7 +344,7 @@ static void perform_test(const struct location_test* test) }
hres = IHTMLDocument2_get_location(doc, &location); - ok(hres == S_OK, "%s: IHTMLDocument2_get_location failed: 0x%08x\n", test->name, hres); + ok(hres == S_OK, "%s: IHTMLDocument2_get_location failed: 0x%08lx\n", test->name, hres); if(FAILED(hres)){ IPersistMoniker_Release(persist_mon); IHTMLDocument2_Release(doc); diff --git a/dlls/mshtml/tests/misc.c b/dlls/mshtml/tests/misc.c index ed8de36b9a3..1702a24c804 100644 --- a/dlls/mshtml/tests/misc.c +++ b/dlls/mshtml/tests/misc.c @@ -36,7 +36,7 @@ static void test_HTMLLoadOptions(void)
hres = CoCreateInstance(&CLSID_HTMLLoadOptions, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER, &IID_IHtmlLoadOptions, (void**)&loadopts); - ok(hres == S_OK, "creating HTMLLoadOptions failed: %08x\n", hres); + ok(hres == S_OK, "creating HTMLLoadOptions failed: %08lx\n", hres); if(FAILED(hres)) return;
@@ -44,64 +44,64 @@ static void test_HTMLLoadOptions(void) size = 0xdeadbeef; memset(buf, 0xdd, sizeof(buf)); hres = IHtmlLoadOptions_QueryOption(loadopts, i, NULL, &size); - ok(hres == S_OK, "QueryOption failed: %08x\n", hres); - ok(size == 0, "size = %d\n", size); + ok(hres == S_OK, "QueryOption failed: %08lx\n", hres); + ok(size == 0, "size = %ld\n", size); ok(buf[0] == 0xdd, "buf changed\n"); }
size = 0xdeadbeef; hres = IHtmlLoadOptions_QueryOption(loadopts, HTMLLOADOPTION_CODEPAGE, NULL, &size); - ok(hres == S_OK, "QueryOption failed: %08x\n", hres); - ok(size == 0, "size = %d\n", size); + ok(hres == S_OK, "QueryOption failed: %08lx\n", hres); + ok(size == 0, "size = %ld\n", size);
hres = IHtmlLoadOptions_SetOption(loadopts, HTMLLOADOPTION_CODEPAGE, &data, sizeof(data)); - ok(hres == S_OK, "SetOption failed: %08x\n", hres); + ok(hres == S_OK, "SetOption failed: %08lx\n", hres);
size = sizeof(data); memset(buf, 0xdd, sizeof(buf)); hres = IHtmlLoadOptions_QueryOption(loadopts, HTMLLOADOPTION_CODEPAGE, buf, &size); - ok(hres == S_OK, "QueryOption failed: %08x\n", hres); - ok(size == sizeof(data), "size = %d\n", size); + ok(hres == S_OK, "QueryOption failed: %08lx\n", hres); + ok(size == sizeof(data), "size = %ld\n", size); ok(*(DWORD*)buf == data, "unexpected buf\n");
size = sizeof(data)-1; memset(buf, 0xdd, sizeof(buf)); hres = IHtmlLoadOptions_QueryOption(loadopts, HTMLLOADOPTION_CODEPAGE, buf, &size); - ok(hres == E_FAIL, "QueryOption failed: %08x\n", hres); - ok(size == sizeof(data) || !size, "size = %d\n", size); + ok(hres == E_FAIL, "QueryOption failed: %08lx\n", hres); + ok(size == sizeof(data) || !size, "size = %ld\n", size); ok(buf[0] == 0xdd, "buf changed\n");
data = 100; hres = IHtmlLoadOptions_SetOption(loadopts, HTMLLOADOPTION_CODEPAGE, &data, 0); - ok(hres == S_OK, "SetOption failed: %08x\n", hres); + ok(hres == S_OK, "SetOption failed: %08lx\n", hres);
size = 0xdeadbeef; memset(buf, 0xdd, sizeof(buf)); hres = IHtmlLoadOptions_QueryOption(loadopts, HTMLLOADOPTION_CODEPAGE, buf, &size); - ok(hres == S_OK, "QueryOption failed: %08x\n", hres); - ok(size == 0, "size = %d\n", size); + ok(hres == S_OK, "QueryOption failed: %08lx\n", hres); + ok(size == 0, "size = %ld\n", size); ok(buf[0] == 0xdd, "buf changed\n");
hres = IHtmlLoadOptions_SetOption(loadopts, HTMLLOADOPTION_CODEPAGE, NULL, 0); - ok(hres == S_OK, "SetOption failed: %08x\n", hres); + ok(hres == S_OK, "SetOption failed: %08lx\n", hres);
hres = IHtmlLoadOptions_SetOption(loadopts, 1000, &data, sizeof(data)); - ok(hres == S_OK, "SetOption failed: %08x\n", hres); + ok(hres == S_OK, "SetOption failed: %08lx\n", hres);
size = sizeof(data); memset(buf, 0xdd, sizeof(buf)); hres = IHtmlLoadOptions_QueryOption(loadopts, 1000, buf, &size); - ok(hres == S_OK, "QueryOption failed: %08x\n", hres); - ok(size == sizeof(data), "size = %d\n", size); + ok(hres == S_OK, "QueryOption failed: %08lx\n", hres); + ok(size == sizeof(data), "size = %ld\n", size); ok(*(DWORD*)buf == data, "unexpected buf\n");
hres = IHtmlLoadOptions_SetOption(loadopts, 1000, buf, sizeof(buf)); - ok(hres == S_OK, "SetOption failed: %08x\n", hres); + ok(hres == S_OK, "SetOption failed: %08lx\n", hres);
size = 0xdeadbeef; hres = IHtmlLoadOptions_QueryOption(loadopts, 1000, buf, &size); - ok(hres == S_OK, "QueryOption failed: %08x\n", hres); - ok(size == sizeof(buf), "size = %d\n", size); + ok(hres == S_OK, "QueryOption failed: %08lx\n", hres); + ok(size == sizeof(buf), "size = %ld\n", size);
IHtmlLoadOptions_Release(loadopts); } diff --git a/dlls/mshtml/tests/protocol.c b/dlls/mshtml/tests/protocol.c index 600ec72e16f..fe437765bfb 100644 --- a/dlls/mshtml/tests/protocol.c +++ b/dlls/mshtml/tests/protocol.c @@ -115,7 +115,7 @@ static HRESULT WINAPI ProtocolSink_ReportProgress(IInternetProtocolSink *iface,
ok(ulStatusCode == BINDSTATUS_MIMETYPEAVAILABLE || ulStatusCode == BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE, - "ulStatusCode=%d\n", ulStatusCode); + "ulStatusCode=%ld\n", ulStatusCode); ok(!lstrcmpW(szStatusText, text_html), "szStatusText != text/html\n");
return S_OK; @@ -128,7 +128,7 @@ static HRESULT WINAPI ProtocolSink_ReportData(IInternetProtocolSink *iface, DWOR
ok(ulProgress == ulProgressMax, "ulProgress != ulProgressMax\n"); ok(grfBSCF == (BSCF_FIRSTDATANOTIFICATION | BSCF_LASTDATANOTIFICATION | BSCF_DATAFULLYAVAILABLE), - "grcf = %08x\n", grfBSCF); + "grcf = %08lx\n", grfBSCF);
return S_OK; } @@ -140,15 +140,15 @@ static HRESULT WINAPI ProtocolSink_ReportResult(IInternetProtocolSink *iface, HR
if(expect_hr_win32err) { ok((hrResult&0xffff0000) == ((FACILITY_WIN32 << 16)|0x80000000) || hrResult == expect_hrResult, - "expected win32 err or %08x got: %08x\n", expect_hrResult, hrResult); + "expected win32 err or %08lx got: %08lx\n", expect_hrResult, hrResult); }else { ok(hrResult == expect_hrResult || (expect_hrResult == E_INVALIDARG && hrResult == MK_E_SYNTAX) || (expect_hrResult == HRESULT_FROM_WIN32(ERROR_RESOURCE_TYPE_NOT_FOUND) && (hrResult == MK_E_SYNTAX || hrResult == HRESULT_FROM_WIN32(ERROR_DLL_NOT_FOUND))), - "expected: %08x got: %08x\n", expect_hrResult, hrResult); + "expected: %08lx got: %08lx\n", expect_hrResult, hrResult); expect_hrResult = hrResult; } - ok(dwError == 0, "dwError = %d\n", dwError); + ok(dwError == 0, "dwError = %ld\n", dwError); ok(!szResult, "szResult != NULL\n");
return S_OK; @@ -196,7 +196,7 @@ static HRESULT WINAPI BindInfo_GetBindInfo(IInternetBindInfo *iface, DWORD *grfB
ok(grfBINDF != NULL, "grfBINDF == NULL\n"); ok(pbindinfo != NULL, "pbindinfo == NULL\n"); - ok(pbindinfo->cbSize == sizeof(BINDINFO), "wrong size of pbindinfo: %d\n", pbindinfo->cbSize); + ok(pbindinfo->cbSize == sizeof(BINDINFO), "wrong size of pbindinfo: %ld\n", pbindinfo->cbSize);
*grfBINDF = bindf; return S_OK; @@ -234,9 +234,9 @@ static void test_protocol_fail(IInternetProtocol *protocol, LPCWSTR url, HRESULT hres = IInternetProtocol_Start(protocol, url, &protocol_sink, &bind_info, 0, 0); if(expect_win32err) ok((hres&0xffff0000) == ((FACILITY_WIN32 << 16)|0x80000000) || hres == expect_hrResult, - "expected win32 err or %08x got: %08x\n", expected_hres, hres); + "expected win32 err or %08lx got: %08lx\n", expected_hres, hres); else - ok(hres == expect_hrResult, "expected: %08x got: %08x\n", expect_hrResult, hres); + ok(hres == expect_hrResult, "expected: %08lx got: %08lx\n", expect_hrResult, hres);
CHECK_CALLED(GetBindInfo); CHECK_CALLED(ReportResult); @@ -254,7 +254,7 @@ static void protocol_start(IInternetProtocol *protocol, const WCHAR *url) expect_hr_win32err = FALSE;
hres = IInternetProtocol_Start(protocol, url, &protocol_sink, &bind_info, 0, 0); - ok(hres == S_OK, "Start failed: %08x\n", hres); + ok(hres == S_OK, "Start failed: %08lx\n", hres);
CHECK_CALLED(GetBindInfo); CHECK_CALLED(ReportProgress); @@ -272,14 +272,14 @@ static void test_res_url_fail(const WCHAR *url_suffix) wcscat(url, url_suffix);
hres = CoCreateInstance(&CLSID_ResProtocol, NULL, CLSCTX_INPROC_SERVER, &IID_IInternetProtocol, (void**)&protocol); - ok(hres == S_OK, "Could not create ResProtocol instance: %08x\n", hres); + ok(hres == S_OK, "Could not create ResProtocol instance: %08lx\n", hres);
SET_EXPECT(GetBindInfo); SET_EXPECT(ReportResult); expect_hr_win32err = TRUE; hres = IInternetProtocol_Start(protocol, url, &protocol_sink, &bind_info, 0, 0); ok(HRESULT_FACILITY(hres) == FACILITY_WIN32, - "%s: expected win32 error, got: %08x\n", debugstr_w(url_suffix), hres); + "%s: expected win32 error, got: %08lx\n", debugstr_w(url_suffix), hres); CHECK_CALLED(GetBindInfo); CHECK_CALLED(ReportResult);
@@ -298,19 +298,19 @@ static void test_res_url(const char *url_suffix) MultiByteToWideChar(CP_ACP, 0, url_suffix, -1, url+res_url_base_len, ARRAY_SIZE(url)-res_url_base_len);
hres = CoCreateInstance(&CLSID_ResProtocol, NULL, CLSCTX_INPROC_SERVER, &IID_IInternetProtocol, (void**)&protocol); - ok(hres == S_OK, "Could not create ResProtocol instance: %08x\n", hres); + ok(hres == S_OK, "Could not create ResProtocol instance: %08lx\n", hres);
protocol_start(protocol, url);
hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &size); - ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(hres == S_OK, "Read failed: %08lx\n", hres);
hres = IInternetProtocol_Terminate(protocol, 0); - ok(hres == S_OK, "Terminate failed: %08x\n", hres); + ok(hres == S_OK, "Terminate failed: %08lx\n", hres);
ref = IInternetProtocol_Release(protocol); - ok(!ref, "ref=%u\n", ref); + ok(!ref, "ref=%lu\n", ref); }
static void res_sec_url_cmp(LPCWSTR url, DWORD size, LPCWSTR file) @@ -331,12 +331,12 @@ static void res_sec_url_cmp(LPCWSTR url, DWORD size, LPCWSTR file) if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) win_skip("SearchPathW is not implemented\n"); else - ok(0, "SearchPath failed: %u\n", GetLastError()); + ok(0, "SearchPath failed: %lu\n", GetLastError()); return; }
len += ARRAY_SIZE(fileW)+1; - ok(len == size, "wrong size %u, expected %u\n", size, len); + ok(len == size, "wrong size %lu, expected %lu\n", size, len); ok(!lstrcmpW(url + ARRAY_SIZE(fileW), buf), "wrong file part %s\n", wine_dbgstr_w(url)); }
@@ -365,12 +365,12 @@ static void test_res_protocol(void) static const WCHAR mshtml_dllW[] = {'m','s','h','t','m','l','.','d','l','l',0};
hres = CoGetClassObject(&CLSID_ResProtocol, CLSCTX_INPROC_SERVER, NULL, &IID_IUnknown, (void**)&unk); - ok(hres == S_OK, "CoGetClassObject failed: %08x\n", hres); + ok(hres == S_OK, "CoGetClassObject failed: %08lx\n", hres); if(FAILED(hres)) return;
hres = IUnknown_QueryInterface(unk, &IID_IInternetProtocolInfo, (void**)&protocol_info); - ok(hres == S_OK, "Could not get IInternetProtocolInfo interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IInternetProtocolInfo interface: %08lx\n", hres); if(SUCCEEDED(hres)) { WCHAR buf[128]; DWORD size, expected_size; @@ -381,56 +381,56 @@ static void test_res_protocol(void) hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, i, 0, buf, ARRAY_SIZE(buf), &size, 0); ok(hres == INET_E_DEFAULT_ACTION, - "[%d] failed: %08x, expected INET_E_DEFAULT_ACTION\n", i, hres); + "[%d] failed: %08lx, expected INET_E_DEFAULT_ACTION\n", i, hres); } }
hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_SECURITY_URL, 0, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == S_OK, "ParseUrl failed: %08x\n", hres); + ok(hres == S_OK, "ParseUrl failed: %08lx\n", hres); res_sec_url_cmp(buf, size, mshtml_dllW); - ok(size == lstrlenW(buf)+1, "size = %d\n", size); + ok(size == lstrlenW(buf)+1, "size = %ld\n", size); expected_size = size;
hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_SECURITY_URL, 0, buf, expected_size, &size, 0); - ok(hres == S_OK, "ParseUrl failed: %08x\n", hres); + ok(hres == S_OK, "ParseUrl failed: %08lx\n", hres); res_sec_url_cmp(buf, size, mshtml_dllW); - ok(size == expected_size, "size = %d\n", size); + ok(size == expected_size, "size = %ld\n", size);
size = 0; hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_SECURITY_URL, 0, buf, 3, &size, 0); - ok(hres == S_FALSE, "ParseUrl failed: %08x, expected S_FALSE\n", hres); - ok(size == expected_size, "size = %d\n", size); + ok(hres == S_FALSE, "ParseUrl failed: %08lx, expected S_FALSE\n", hres); + ok(size == expected_size, "size = %ld\n", size);
hres = IInternetProtocolInfo_ParseUrl(protocol_info, wrong_url1, PARSE_SECURITY_URL, 0, buf, ARRAY_SIZE(buf), &size, 0); ok(hres == MK_E_SYNTAX || hres == E_INVALIDARG, - "ParseUrl failed: %08x, expected MK_E_SYNTAX\n", hres); + "ParseUrl failed: %08lx, expected MK_E_SYNTAX\n", hres);
hres = IInternetProtocolInfo_ParseUrl(protocol_info, wrong_url5, PARSE_SECURITY_URL, 0, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == MK_E_SYNTAX, "ParseUrl failed: %08x, expected MK_E_SYNTAX\n", hres); + ok(hres == MK_E_SYNTAX, "ParseUrl failed: %08lx, expected MK_E_SYNTAX\n", hres);
hres = IInternetProtocolInfo_ParseUrl(protocol_info, wrong_url6, PARSE_SECURITY_URL, 0, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == MK_E_SYNTAX, "ParseUrl failed: %08x, expected MK_E_SYNTAX\n", hres); + ok(hres == MK_E_SYNTAX, "ParseUrl failed: %08lx, expected MK_E_SYNTAX\n", hres);
size = 0xdeadbeef; buf[0] = '?'; hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_DOMAIN, 0, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08x\n", hres); + ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08lx\n", hres); ok(buf[0] == '?', "buf changed\n"); - ok(size == ARRAY_SIZE(blank_url) || size == ARRAY_SIZE(buf), /* IE8 */ "size=%d\n", size); + ok(size == ARRAY_SIZE(blank_url) || size == ARRAY_SIZE(buf), /* IE8 */ "size=%ld\n", size);
size = 0xdeadbeef; hres = IInternetProtocolInfo_ParseUrl(protocol_info, wrong_url1, PARSE_DOMAIN, 0, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08x\n", hres); + ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08lx\n", hres); ok(buf[0] == '?', "buf changed\n"); - ok(size == ARRAY_SIZE(wrong_url1) || size == ARRAY_SIZE(buf), /* IE8 */ "size=%d\n", size); + ok(size == ARRAY_SIZE(wrong_url1) || size == ARRAY_SIZE(buf), /* IE8 */ "size=%ld\n", size);
if (0) { @@ -439,20 +439,20 @@ static void test_res_protocol(void) buf[0] = '?'; hres = IInternetProtocolInfo_ParseUrl(protocol_info, NULL, PARSE_DOMAIN, 0, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == E_FAIL, "ParseUrl failed: %08x\n", hres); + ok(hres == E_FAIL, "ParseUrl failed: %08lx\n", hres); ok(buf[0] == '?', "buf changed\n"); - ok(size == 1, "size=%u, expected 1\n", size); + ok(size == 1, "size=%lu, expected 1\n", size);
buf[0] = '?'; hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_DOMAIN, 0, buf, ARRAY_SIZE(buf), NULL, 0); - ok(hres == E_POINTER, "ParseUrl failed: %08x\n", hres); + ok(hres == E_POINTER, "ParseUrl failed: %08lx\n", hres); ok(buf[0] == '?', "buf changed\n");
buf[0] = '?'; hres = IInternetProtocolInfo_ParseUrl(protocol_info, NULL, PARSE_DOMAIN, 0, buf, ARRAY_SIZE(buf), NULL, 0); - ok(hres == E_POINTER, "ParseUrl failed: %08x\n", hres); + ok(hres == E_POINTER, "ParseUrl failed: %08lx\n", hres); ok(buf[0] == '?', "buf changed\n"); }
@@ -460,32 +460,32 @@ static void test_res_protocol(void) hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_UNESCAPE+1, 0, buf, ARRAY_SIZE(buf), &size, 0); ok(hres == INET_E_DEFAULT_ACTION, - "ParseUrl failed: %08x, expected INET_E_DEFAULT_ACTION\n", hres); + "ParseUrl failed: %08lx, expected INET_E_DEFAULT_ACTION\n", hres); ok(buf[0] == '?', "buf changed\n");
size = 0xdeadbeef; hres = IInternetProtocolInfo_CombineUrl(protocol_info, blank_url, test_part_url, 0, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres); - ok(size == 0xdeadbeef, "size=%d\n", size); + ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08lx\n", hres); + ok(size == 0xdeadbeef, "size=%ld\n", size);
size = 0xdeadbeef; hres = IInternetProtocolInfo_CombineUrl(protocol_info, blank_url, test_part_url, URL_FILE_USE_PATHURL, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres); - ok(size == 0xdeadbeef, "size=%d\n", size); + ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08lx\n", hres); + ok(size == 0xdeadbeef, "size=%ld\n", size);
size = 0xdeadbeef; hres = IInternetProtocolInfo_CombineUrl(protocol_info, NULL, NULL, URL_FILE_USE_PATHURL, NULL, 0xdeadbeef, NULL, 0); - ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres); - ok(size == 0xdeadbeef, "size=%d\n", size); + ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08lx\n", hres); + ok(size == 0xdeadbeef, "size=%ld\n", size);
hres = IInternetProtocolInfo_CompareUrl(protocol_info, blank_url, blank_url, 0); - ok(hres == E_NOTIMPL, "CompareUrl failed: %08x\n", hres); + ok(hres == E_NOTIMPL, "CompareUrl failed: %08lx\n", hres);
hres = IInternetProtocolInfo_CompareUrl(protocol_info, NULL, NULL, 0xdeadbeef); - ok(hres == E_NOTIMPL, "CompareUrl failed: %08x\n", hres); + ok(hres == E_NOTIMPL, "CompareUrl failed: %08lx\n", hres);
for(i=0; i<30; i++) { if(i == QUERY_USES_NETWORK || i == QUERY_IS_SECURE || i == QUERY_IS_SAFE) @@ -494,43 +494,43 @@ static void test_res_protocol(void) hres = IInternetProtocolInfo_QueryInfo(protocol_info, blank_url, i, 0, buf, sizeof(buf), &size, 0); ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, - "QueryInfo(%d) returned: %08x, expected INET_E_USE_DEFAULT_PROTOCOLHANDLER\n", i, hres); + "QueryInfo(%d) returned: %08lx, expected INET_E_USE_DEFAULT_PROTOCOLHANDLER\n", i, hres); }
size = 0xdeadbeef; memset(buf, '?', sizeof(buf)); hres = IInternetProtocolInfo_QueryInfo(protocol_info, blank_url, QUERY_USES_NETWORK, 0, buf, sizeof(buf), &size, 0); - ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08x\n", hres); - ok(size == sizeof(DWORD), "size=%d\n", size); - ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); + ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08lx\n", hres); + ok(size == sizeof(DWORD), "size=%ld\n", size); + ok(!*(DWORD*)buf, "buf=%ld\n", *(DWORD*)buf);
memset(buf, '?', sizeof(buf)); hres = IInternetProtocolInfo_QueryInfo(protocol_info, blank_url, QUERY_USES_NETWORK, 0, buf, sizeof(buf), NULL, 0); - ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08x\n", hres); - ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); + ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08lx\n", hres); + ok(!*(DWORD*)buf, "buf=%ld\n", *(DWORD*)buf);
hres = IInternetProtocolInfo_QueryInfo(protocol_info, blank_url, QUERY_USES_NETWORK, 0, buf, 3, &size, 0); - ok(hres == E_FAIL, "QueryInfo(QUERY_USES_NETWORK) failed: %08x, expected E_FAIL\n", hres); + ok(hres == E_FAIL, "QueryInfo(QUERY_USES_NETWORK) failed: %08lx, expected E_FAIL\n", hres);
size = 0xdeadbeef; memset(buf, '?', sizeof(buf)); hres = IInternetProtocolInfo_QueryInfo(protocol_info, NULL, QUERY_USES_NETWORK, 0, buf, sizeof(buf), &size, 0); - ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08x\n", hres); - ok(size == sizeof(DWORD), "size=%d\n", size); - ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); + ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08lx\n", hres); + ok(size == sizeof(DWORD), "size=%ld\n", size); + ok(!*(DWORD*)buf, "buf=%ld\n", *(DWORD*)buf);
hres = IInternetProtocolInfo_QueryInfo(protocol_info, blank_url, QUERY_USES_NETWORK, 0, NULL, sizeof(buf), &size, 0); - ok(hres == E_FAIL, "QueryInfo(QUERY_USES_NETWORK) failed: %08x, expected E_FAIL\n", hres); + ok(hres == E_FAIL, "QueryInfo(QUERY_USES_NETWORK) failed: %08lx, expected E_FAIL\n", hres);
hres = IInternetProtocolInfo_QueryInfo(protocol_info, blank_url, 60, 0, NULL, sizeof(buf), &size, 0); ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, - "QueryInfo failed: %08x, expected INET_E_USE_DEFAULT_PROTOCOLHANDLER\n", hres); + "QueryInfo failed: %08lx, expected INET_E_USE_DEFAULT_PROTOCOLHANDLER\n", hres);
IInternetProtocolInfo_Release(protocol_info); } @@ -542,14 +542,14 @@ static void test_res_protocol(void) BYTE buf[512]; ULONG cb; hres = IClassFactory_CreateInstance(factory, NULL, &IID_IInternetProtocol, (void**)&protocol); - ok(hres == S_OK, "Could not get IInternetProtocol: %08x\n", hres); + ok(hres == S_OK, "Could not get IInternetProtocol: %08lx\n", hres);
if(SUCCEEDED(hres)) { IInternetPriority *priority;
hres = IInternetProtocol_QueryInterface(protocol, &IID_IInternetPriority, (void**)&priority); ok(hres == E_NOINTERFACE, - "QueryInterface(IInternetPriority) returned %08x, expected E_NOINTEFACE\n", hres); + "QueryInterface(IInternetPriority) returned %08lx, expected E_NOINTEFACE\n", hres);
test_protocol_fail(protocol, wrong_url1, E_INVALIDARG, FALSE); test_protocol_fail(protocol, wrong_url2, @@ -559,58 +559,58 @@ static void test_res_protocol(void)
cb = 0xdeadbeef; hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == E_FAIL, "Read returned %08x expected E_FAIL\n", hres); - ok(cb == 0xdeadbeef, "cb=%u expected 0xdeadbeef\n", cb); + ok(hres == E_FAIL, "Read returned %08lx expected E_FAIL\n", hres); + ok(cb == 0xdeadbeef, "cb=%lu expected 0xdeadbeef\n", cb);
protocol_start(protocol, blank_url); hres = IInternetProtocol_Read(protocol, buf, 2, &cb); - ok(hres == S_OK, "Read failed: %08x\n", hres); - ok(cb == 2, "cb=%u expected 2\n", cb); + ok(hres == S_OK, "Read failed: %08lx\n", hres); + ok(cb == 2, "cb=%lu expected 2\n", cb); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(hres == S_OK, "Read failed: %08lx\n", hres); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_FALSE, "Read failed: %08x expected S_FALSE\n", hres); - ok(cb == 0, "cb=%u expected 0\n", cb); + ok(hres == S_FALSE, "Read failed: %08lx expected S_FALSE\n", hres); + ok(cb == 0, "cb=%lu expected 0\n", cb); hres = IInternetProtocol_UnlockRequest(protocol); - ok(hres == S_OK, "UnlockRequest failed: %08x\n", hres); + ok(hres == S_OK, "UnlockRequest failed: %08lx\n", hres);
protocol_start(protocol, blank_url); hres = IInternetProtocol_Read(protocol, buf, 2, &cb); - ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(hres == S_OK, "Read failed: %08lx\n", hres); hres = IInternetProtocol_LockRequest(protocol, 0); - ok(hres == S_OK, "LockRequest failed: %08x\n", hres); + ok(hres == S_OK, "LockRequest failed: %08lx\n", hres); hres = IInternetProtocol_UnlockRequest(protocol); - ok(hres == S_OK, "UnlockRequest failed: %08x\n", hres); + ok(hres == S_OK, "UnlockRequest failed: %08lx\n", hres); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(hres == S_OK, "Read failed: %08lx\n", hres);
protocol_start(protocol, blank_url); hres = IInternetProtocol_LockRequest(protocol, 0); - ok(hres == S_OK, "LockRequest failed: %08x\n", hres); + ok(hres == S_OK, "LockRequest failed: %08lx\n", hres); hres = IInternetProtocol_Terminate(protocol, 0); - ok(hres == S_OK, "Terminate failed: %08x\n", hres); + ok(hres == S_OK, "Terminate failed: %08lx\n", hres); hres = IInternetProtocol_Read(protocol, buf, 2, &cb); - ok(hres == S_OK, "Read failed: %08x\n\n", hres); + ok(hres == S_OK, "Read failed: %08lx\n\n", hres); hres = IInternetProtocol_UnlockRequest(protocol); - ok(hres == S_OK, "UnlockRequest failed: %08x\n", hres); + ok(hres == S_OK, "UnlockRequest failed: %08lx\n", hres); hres = IInternetProtocol_Read(protocol, buf, 2, &cb); - ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(hres == S_OK, "Read failed: %08lx\n", hres); hres = IInternetProtocol_Terminate(protocol, 0); - ok(hres == S_OK, "Terminate failed: %08x\n", hres); + ok(hres == S_OK, "Terminate failed: %08lx\n", hres); hres = IInternetProtocol_Read(protocol, buf, 2, &cb); - ok(hres == S_OK, "Read failed: %08x\n", hres); - ok(cb == 2, "cb=%u expected 2\n", cb); + ok(hres == S_OK, "Read failed: %08lx\n", hres); + ok(cb == 2, "cb=%lu expected 2\n", cb);
protocol_start(protocol, blank_url); hres = IInternetProtocol_LockRequest(protocol, 0); - ok(hres == S_OK, "LockRequest failed: %08x\n", hres); + ok(hres == S_OK, "LockRequest failed: %08lx\n", hres); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(hres == S_OK, "Read failed: %08lx\n", hres); protocol_start(protocol, blank_url); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(hres == S_OK, "Read failed: %08lx\n", hres); hres = IInternetProtocol_Terminate(protocol, 0); - ok(hres == S_OK, "Terminate failed: %08x\n", hres); + ok(hres == S_OK, "Terminate failed: %08lx\n", hres);
IInternetProtocol_Release(protocol); } @@ -665,43 +665,43 @@ static void do_test_about_protocol(IClassFactory *factory, DWORD bf) bindf = bf;
hres = IClassFactory_CreateInstance(factory, NULL, &IID_IInternetProtocol, (void**)&protocol); - ok(hres == S_OK, "Could not get IInternetProtocol: %08x\n", hres); + ok(hres == S_OK, "Could not get IInternetProtocol: %08lx\n", hres); if(FAILED(hres)) return;
hres = IInternetProtocol_QueryInterface(protocol, &IID_IInternetPriority, (void**)&priority); ok(hres == E_NOINTERFACE, - "QueryInterface(IInternetPriority) returned %08x, expected E_NOINTEFACE\n", hres); + "QueryInterface(IInternetPriority) returned %08lx, expected E_NOINTEFACE\n", hres);
protocol_start(protocol, about_blank_url); hres = IInternetProtocol_LockRequest(protocol, 0); - ok(hres == S_OK, "LockRequest failed: %08x\n", hres); + ok(hres == S_OK, "LockRequest failed: %08lx\n", hres); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08x\n", hres); - ok(cb == sizeof(blank_html), "cb=%d\n", cb); + ok(hres == S_OK, "Read failed: %08lx\n", hres); + ok(cb == sizeof(blank_html), "cb=%ld\n", cb); ok(!memcmp(buf, blank_html, cb), "Read wrong data\n"); hres = IInternetProtocol_UnlockRequest(protocol); - ok(hres == S_OK, "UnlockRequest failed: %08x\n", hres); + ok(hres == S_OK, "UnlockRequest failed: %08lx\n", hres);
protocol_start(protocol, about_test_url); hres = IInternetProtocol_LockRequest(protocol, 0); - ok(hres == S_OK, "LockRequest failed: %08x\n", hres); + ok(hres == S_OK, "LockRequest failed: %08lx\n", hres); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08x\n", hres); - ok(cb == sizeof(test_html), "cb=%d\n", cb); + ok(hres == S_OK, "Read failed: %08lx\n", hres); + ok(cb == sizeof(test_html), "cb=%ld\n", cb); ok(!memcmp(buf, test_html, cb), "Read wrong data\n"); hres = IInternetProtocol_UnlockRequest(protocol); - ok(hres == S_OK, "UnlockRequest failed: %08x\n", hres); + ok(hres == S_OK, "UnlockRequest failed: %08lx\n", hres);
protocol_start(protocol, about_res_url); hres = IInternetProtocol_LockRequest(protocol, 0); - ok(hres == S_OK, "LockRequest failed: %08x\n", hres); + ok(hres == S_OK, "LockRequest failed: %08lx\n", hres); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08x\n", hres); - ok(cb == sizeof(blank_html), "cb=%d\n", cb); + ok(hres == S_OK, "Read failed: %08lx\n", hres); + ok(cb == sizeof(blank_html), "cb=%ld\n", cb); ok(!memcmp(buf, blank_html, cb), "Read wrong data\n"); hres = IInternetProtocol_UnlockRequest(protocol); - ok(hres == S_OK, "UnlockRequest failed: %08x\n", hres); + ok(hres == S_OK, "UnlockRequest failed: %08lx\n", hres);
IInternetProtocol_Release(protocol); } @@ -714,12 +714,12 @@ static void test_about_protocol(void) HRESULT hres;
hres = CoGetClassObject(&CLSID_AboutProtocol, CLSCTX_INPROC_SERVER, NULL, &IID_IUnknown, (void**)&unk); - ok(hres == S_OK, "CoGetClassObject failed: %08x\n", hres); + ok(hres == S_OK, "CoGetClassObject failed: %08lx\n", hres); if(FAILED(hres)) return;
hres = IUnknown_QueryInterface(unk, &IID_IInternetProtocolInfo, (void**)&protocol_info); - ok(hres == S_OK, "Could not get IInternetProtocolInfo interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IInternetProtocolInfo interface: %08lx\n", hres); if(SUCCEEDED(hres)) { WCHAR buf[128]; DWORD size; @@ -730,37 +730,37 @@ static void test_about_protocol(void) hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_blank_url, i, 0, buf, ARRAY_SIZE(buf), &size, 0); ok(hres == INET_E_DEFAULT_ACTION, - "[%d] failed: %08x, expected INET_E_DEFAULT_ACTION\n", i, hres); + "[%d] failed: %08lx, expected INET_E_DEFAULT_ACTION\n", i, hres); } }
hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_blank_url, PARSE_SECURITY_URL, 0, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == S_OK, "ParseUrl failed: %08x\n", hres); + ok(hres == S_OK, "ParseUrl failed: %08lx\n", hres); ok(!lstrcmpW(about_blank_url, buf), "buf != blank_url\n");
size = 0xdeadbeef; hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_blank_url, PARSE_SECURITY_URL, 0, buf, 3, &size, 0); - ok(hres == S_FALSE, "ParseUrl failed: %08x, expected S_FALSE\n", hres); - ok(size == 12, "size = %d\n", size); + ok(hres == S_FALSE, "ParseUrl failed: %08lx, expected S_FALSE\n", hres); + ok(size == 12, "size = %ld\n", size);
hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_test_url, PARSE_SECURITY_URL, 0, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == S_OK, "ParseUrl failed: %08x\n", hres); + ok(hres == S_OK, "ParseUrl failed: %08lx\n", hres); ok(!lstrcmpW(about_test_url, buf), "buf != test_url\n"); - ok(size == 11, "size = %d\n", size); + ok(size == 11, "size = %ld\n", size);
size = 0xdeadbeef; buf[0] = '?'; hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_blank_url, PARSE_DOMAIN, 0, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08x\n", hres); + ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08lx\n", hres); ok(buf[0] == '?' || buf[0] == '\0' /* Win10 */, "Expected buf to be unchanged or empty, got %s\n", wine_dbgstr_w(buf)); ok(size == ARRAY_SIZE(about_blank_url) || size == ARRAY_SIZE(buf), /* IE8 */ - "size=%d\n", size); + "size=%ld\n", size);
if (0) { @@ -769,51 +769,51 @@ static void test_about_protocol(void) buf[0] = '?'; hres = IInternetProtocolInfo_ParseUrl(protocol_info, NULL, PARSE_DOMAIN, 0, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == E_FAIL, "ParseUrl failed: %08x\n", hres); + ok(hres == E_FAIL, "ParseUrl failed: %08lx\n", hres); ok(buf[0] == '?', "buf changed\n"); - ok(size == 1, "size=%u, expected 1\n", size); + ok(size == 1, "size=%lu, expected 1\n", size);
buf[0] = '?'; hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_blank_url, PARSE_DOMAIN, 0, buf, ARRAY_SIZE(buf), NULL, 0); - ok(hres == E_POINTER, "ParseUrl failed: %08x\n", hres); + ok(hres == E_POINTER, "ParseUrl failed: %08lx\n", hres); ok(buf[0] == '?', "buf changed\n");
buf[0] = '?'; hres = IInternetProtocolInfo_ParseUrl(protocol_info, NULL, PARSE_DOMAIN, 0, buf, ARRAY_SIZE(buf), NULL, 0); - ok(hres == E_POINTER, "ParseUrl failed: %08x\n", hres); + ok(hres == E_POINTER, "ParseUrl failed: %08lx\n", hres); ok(buf[0] == '?', "buf changed\n"); }
hres = IInternetProtocolInfo_ParseUrl(protocol_info, about_blank_url, PARSE_UNESCAPE+1, 0, buf, ARRAY_SIZE(buf), &size, 0); ok(hres == INET_E_DEFAULT_ACTION, - "ParseUrl failed: %08x, expected INET_E_DEFAULT_ACTION\n", hres); + "ParseUrl failed: %08lx, expected INET_E_DEFAULT_ACTION\n", hres);
size = 0xdeadbeef; hres = IInternetProtocolInfo_CombineUrl(protocol_info, about_blank_url, about_test_url, 0, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres); - ok(size == 0xdeadbeef, "size=%d\n", size); + ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08lx\n", hres); + ok(size == 0xdeadbeef, "size=%ld\n", size);
size = 0xdeadbeef; hres = IInternetProtocolInfo_CombineUrl(protocol_info, about_blank_url, about_test_url, URL_FILE_USE_PATHURL, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres); - ok(size == 0xdeadbeef, "size=%d\n", size); + ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08lx\n", hres); + ok(size == 0xdeadbeef, "size=%ld\n", size);
size = 0xdeadbeef; hres = IInternetProtocolInfo_CombineUrl(protocol_info, NULL, NULL, URL_FILE_USE_PATHURL, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres); - ok(size == 0xdeadbeef, "size=%d\n", size); + ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08lx\n", hres); + ok(size == 0xdeadbeef, "size=%ld\n", size);
hres = IInternetProtocolInfo_CompareUrl(protocol_info, about_blank_url, about_blank_url, 0); - ok(hres == E_NOTIMPL, "CompareUrl failed: %08x\n", hres); + ok(hres == E_NOTIMPL, "CompareUrl failed: %08lx\n", hres);
hres = IInternetProtocolInfo_CompareUrl(protocol_info, NULL, NULL, 0xdeadbeef); - ok(hres == E_NOTIMPL, "CompareUrl failed: %08x\n", hres); + ok(hres == E_NOTIMPL, "CompareUrl failed: %08lx\n", hres);
for(i=0; i<30; i++) { switch(i) { @@ -830,7 +830,7 @@ static void test_about_protocol(void) default: hres = IInternetProtocolInfo_QueryInfo(protocol_info, about_blank_url, i, 0, buf, sizeof(buf), &size, 0); - ok(hres == E_FAIL, "QueryInfo(%d) returned: %08x, expected E_FAIL\n", i, hres); + ok(hres == E_FAIL, "QueryInfo(%d) returned: %08lx, expected E_FAIL\n", i, hres); } }
@@ -838,33 +838,33 @@ static void test_about_protocol(void) buf, sizeof(buf), &size, 0); ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER || hres == E_FAIL, /* win2k */ - "QueryInfo returned: %08x, expected INET_E_USE_DEFAULT_PROTOCOLHANDLER or E_FAIL\n", hres); + "QueryInfo returned: %08lx, expected INET_E_USE_DEFAULT_PROTOCOLHANDLER or E_FAIL\n", hres);
size = 0xdeadbeef; memset(buf, '?', sizeof(buf)); hres = IInternetProtocolInfo_QueryInfo(protocol_info, about_blank_url, QUERY_USES_NETWORK, 0, buf, sizeof(buf), &size, 0); - ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08x\n", hres); - ok(size == sizeof(DWORD), "size=%d\n", size); - ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); + ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08lx\n", hres); + ok(size == sizeof(DWORD), "size=%ld\n", size); + ok(!*(DWORD*)buf, "buf=%ld\n", *(DWORD*)buf);
memset(buf, '?', sizeof(buf)); hres = IInternetProtocolInfo_QueryInfo(protocol_info, about_blank_url, QUERY_USES_NETWORK, 0, buf, sizeof(buf), NULL, 0); - ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08x\n", hres); - ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); + ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08lx\n", hres); + ok(!*(DWORD*)buf, "buf=%ld\n", *(DWORD*)buf);
hres = IInternetProtocolInfo_QueryInfo(protocol_info, about_blank_url, QUERY_USES_NETWORK, 0, buf, 3, &size, 0); - ok(hres == E_FAIL, "QueryInfo(QUERY_USES_NETWORK) failed: %08x, expected E_FAIL\n", hres); + ok(hres == E_FAIL, "QueryInfo(QUERY_USES_NETWORK) failed: %08lx, expected E_FAIL\n", hres);
hres = IInternetProtocolInfo_QueryInfo(protocol_info, about_blank_url, QUERY_USES_NETWORK, 0, NULL, sizeof(buf), &size, 0); - ok(hres == E_FAIL, "QueryInfo(QUERY_USES_NETWORK) failed: %08x, expected E_FAIL\n", hres); + ok(hres == E_FAIL, "QueryInfo(QUERY_USES_NETWORK) failed: %08lx, expected E_FAIL\n", hres);
hres = IInternetProtocolInfo_QueryInfo(protocol_info, about_blank_url, 60, 0, NULL, sizeof(buf), &size, 0); - ok(hres == E_FAIL, "QueryInfo failed: %08x, expected E_FAIL\n", hres); + ok(hres == E_FAIL, "QueryInfo failed: %08lx, expected E_FAIL\n", hres);
IInternetProtocolInfo_Release(protocol_info); } @@ -890,12 +890,12 @@ static void test_javascript_protocol(void) HRESULT hres;
hres = CoGetClassObject(&CLSID_JSProtocol, CLSCTX_INPROC_SERVER, NULL, &IID_IUnknown, (void**)&unk); - ok(hres == S_OK, "CoGetClassObject failed: %08x\n", hres); + ok(hres == S_OK, "CoGetClassObject failed: %08lx\n", hres); if(FAILED(hres)) return;
hres = IUnknown_QueryInterface(unk, &IID_IInternetProtocolInfo, (void**)&protocol_info); - ok(hres == S_OK, "Could not get IInternetProtocolInfo interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IInternetProtocolInfo interface: %08lx\n", hres); if(SUCCEEDED(hres)) { WCHAR buf[128]; DWORD size; @@ -906,23 +906,23 @@ static void test_javascript_protocol(void) hres = IInternetProtocolInfo_ParseUrl(protocol_info, javascript_test_url, i, 0, buf, ARRAY_SIZE(buf), &size, 0); ok(hres == INET_E_DEFAULT_ACTION, - "[%d] failed: %08x, expected INET_E_DEFAULT_ACTION\n", i, hres); + "[%d] failed: %08lx, expected INET_E_DEFAULT_ACTION\n", i, hres); } }
hres = IInternetProtocolInfo_ParseUrl(protocol_info, javascript_test_url, PARSE_UNESCAPE+1, 0, buf, ARRAY_SIZE(buf), &size, 0); ok(hres == INET_E_DEFAULT_ACTION, - "ParseUrl failed: %08x, expected INET_E_DEFAULT_ACTION\n", hres); + "ParseUrl failed: %08lx, expected INET_E_DEFAULT_ACTION\n", hres);
size = 0xdeadbeef; hres = IInternetProtocolInfo_CombineUrl(protocol_info, javascript_test_url, javascript_test_url, 0, buf, ARRAY_SIZE(buf), &size, 0); - ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres); - ok(size == 0xdeadbeef, "size=%d\n", size); + ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08lx\n", hres); + ok(size == 0xdeadbeef, "size=%ld\n", size);
hres = IInternetProtocolInfo_CompareUrl(protocol_info, javascript_test_url, javascript_test_url, 0); - ok(hres == E_NOTIMPL, "CompareUrl failed: %08x\n", hres); + ok(hres == E_NOTIMPL, "CompareUrl failed: %08lx\n", hres);
for(i=0; i<30; i++) { switch(i) { @@ -933,7 +933,7 @@ static void test_javascript_protocol(void) hres = IInternetProtocolInfo_QueryInfo(protocol_info, javascript_test_url, i, 0, buf, sizeof(buf), &size, 0); ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, - "QueryInfo(%d) returned: %08x, expected INET_E_USE_DEFAULT_PROTOCOLHANDLER\n", i, hres); + "QueryInfo(%d) returned: %08lx, expected INET_E_USE_DEFAULT_PROTOCOLHANDLER\n", i, hres); } }
@@ -941,28 +941,28 @@ static void test_javascript_protocol(void) memset(buf, '?', sizeof(buf)); hres = IInternetProtocolInfo_QueryInfo(protocol_info, javascript_test_url, QUERY_USES_NETWORK, 0, buf, sizeof(buf), &size, 0); - ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08x\n", hres); - ok(size == sizeof(DWORD), "size=%d\n", size); - ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); + ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08lx\n", hres); + ok(size == sizeof(DWORD), "size=%ld\n", size); + ok(!*(DWORD*)buf, "buf=%ld\n", *(DWORD*)buf);
memset(buf, '?', sizeof(buf)); hres = IInternetProtocolInfo_QueryInfo(protocol_info, javascript_test_url, QUERY_USES_NETWORK, 0, buf, sizeof(buf), NULL, 0); - ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08x\n", hres); - ok(!*(DWORD*)buf, "buf=%d\n", *(DWORD*)buf); + ok(hres == S_OK, "QueryInfo(QUERY_USES_NETWORK) failed: %08lx\n", hres); + ok(!*(DWORD*)buf, "buf=%ld\n", *(DWORD*)buf);
hres = IInternetProtocolInfo_QueryInfo(protocol_info, javascript_test_url, QUERY_USES_NETWORK, 0, buf, 3, &size, 0); - ok(hres == E_FAIL, "QueryInfo(QUERY_USES_NETWORK) failed: %08x, expected E_FAIL\n", hres); + ok(hres == E_FAIL, "QueryInfo(QUERY_USES_NETWORK) failed: %08lx, expected E_FAIL\n", hres);
hres = IInternetProtocolInfo_QueryInfo(protocol_info, javascript_test_url, QUERY_USES_NETWORK, 0, NULL, sizeof(buf), &size, 0); - ok(hres == E_FAIL, "QueryInfo(QUERY_USES_NETWORK) failed: %08x, expected E_FAIL\n", hres); + ok(hres == E_FAIL, "QueryInfo(QUERY_USES_NETWORK) failed: %08lx, expected E_FAIL\n", hres);
hres = IInternetProtocolInfo_QueryInfo(protocol_info, javascript_test_url, 60, 0, NULL, sizeof(buf), &size, 0); ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, - "QueryInfo failed: %08x, expected INET_E_USE_DEFAULT_PROTOCOLHANDLER\n", hres); + "QueryInfo failed: %08lx, expected INET_E_USE_DEFAULT_PROTOCOLHANDLER\n", hres);
/* FIXME: test QUERY_IS_SECURE */
@@ -1014,18 +1014,18 @@ static void test_com_aggregation(const CLSID *clsid) HRESULT hres;
hres = CoGetClassObject(clsid, CLSCTX_INPROC_SERVER, NULL, &IID_IClassFactory, (void**)&class_factory); - ok(hres == S_OK, "CoGetClassObject failed: %08x\n", hres); + ok(hres == S_OK, "CoGetClassObject failed: %08lx\n", hres);
hres = IClassFactory_CreateInstance(class_factory, &outer, &IID_IUnknown, (void**)&unk); - ok(hres == S_OK, "CreateInstance returned: %08x\n", hres); + ok(hres == S_OK, "CreateInstance returned: %08lx\n", hres);
hres = IUnknown_QueryInterface(unk, &IID_IInternetProtocol, (void**)&unk2); - ok(hres == S_OK, "Could not get IDispatch iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDispatch iface: %08lx\n", hres);
SET_EXPECT(outer_QI_test); hres = IUnknown_QueryInterface(unk2, &outer_test_iid, (void**)&unk3); CHECK_CALLED(outer_QI_test); - ok(hres == S_OK, "Could not get IInternetProtocol iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IInternetProtocol iface: %08lx\n", hres); ok(unk3 == (IUnknown*)0xdeadbeef, "unexpected unk2\n");
IUnknown_Release(unk2); @@ -1033,7 +1033,7 @@ static void test_com_aggregation(const CLSID *clsid)
unk = (void*)0xdeadbeef; hres = IClassFactory_CreateInstance(class_factory, &outer, &IID_IInternetProtocol, (void**)&unk); - ok(hres == E_INVALIDARG, "CreateInstance returned: %08x\n", hres); + ok(hres == E_INVALIDARG, "CreateInstance returned: %08lx\n", hres); ok(!unk, "unk = %p\n", unk);
IClassFactory_Release(class_factory); diff --git a/dlls/mshtml/tests/script.c b/dlls/mshtml/tests/script.c index e95cea4307c..de42e899635 100644 --- a/dlls/mshtml/tests/script.c +++ b/dlls/mshtml/tests/script.c @@ -224,7 +224,7 @@ static HRESULT WINAPI PropertyNotifySink_OnChanged(IPropertyNotifySink *iface, D static const WCHAR completeW[] = {'c','o','m','p','l','e','t','e',0};
hres = IHTMLDocument2_get_readyState(notif_doc, &state); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres);
if(!lstrcmpW(state, completeW)) doc_complete = TRUE; @@ -276,8 +276,8 @@ static HRESULT WINAPI VariantChangeType_ChangeType(IVariantChangeType *iface, VA ok(V_VT(dst) == VT_EMPTY, "V_VT(dst) = %d\n", V_VT(dst)); ok(src != NULL, "src = NULL\n"); ok(V_VT(src) == VT_I4, "V_VT(src) = %d\n", V_VT(src)); - ok(V_I4(src) == 0xf0f0f0, "V_I4(src) = %x\n", V_I4(src)); - ok(lcid == LOCALE_NEUTRAL, "lcid = %d\n", lcid); + ok(V_I4(src) == 0xf0f0f0, "V_I4(src) = %lx\n", V_I4(src)); + ok(lcid == LOCALE_NEUTRAL, "lcid = %ld\n", lcid); ok(vt == VT_BSTR, "vt = %d\n", vt);
V_VT(dst) = VT_BSTR; @@ -401,7 +401,7 @@ static HRESULT WINAPI DispatchEx_Invoke(IDispatchEx *iface, DISPID dispIdMember,
static HRESULT WINAPI DispatchEx_DeleteMemberByName(IDispatchEx *iface, BSTR bstrName, DWORD grfdex) { - ok(0, "unexpected call %s %x\n", wine_dbgstr_w(bstrName), grfdex); + ok(0, "unexpected call %s %lx\n", wine_dbgstr_w(bstrName), grfdex); return E_NOTIMPL; }
@@ -446,13 +446,13 @@ static HRESULT WINAPI funcDisp_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid { CHECK_EXPECT(funcDisp);
- ok(id == DISPID_VALUE, "id = %d\n", id); - ok(lcid == 0, "lcid = %x\n", lcid); + ok(id == DISPID_VALUE, "id = %ld\n", id); + ok(lcid == 0, "lcid = %lx\n", lcid); ok(wFlags == DISPATCH_METHOD, "wFlags = %x\n", wFlags); ok(pdp != NULL, "pdp == NULL\n"); ok(pdp->cArgs == 2, "pdp->cArgs = %d\n", pdp->cArgs); ok(pdp->cNamedArgs == 1, "pdp->cNamedArgs = %d\n", pdp->cNamedArgs); - ok(pdp->rgdispidNamedArgs[0] == DISPID_THIS, "pdp->rgdispidNamedArgs[0] = %d\n", pdp->rgdispidNamedArgs[0]); + ok(pdp->rgdispidNamedArgs[0] == DISPID_THIS, "pdp->rgdispidNamedArgs[0] = %ld\n", pdp->rgdispidNamedArgs[0]); ok(V_VT(pdp->rgvarg) == VT_DISPATCH, "V_VT(rgvarg) = %d\n", V_VT(pdp->rgvarg)); ok(V_VT(pdp->rgvarg+1) == VT_BOOL, "V_VT(rgvarg[1]) = %d\n", V_VT(pdp->rgvarg)); ok(V_BOOL(pdp->rgvarg+1) == VARIANT_TRUE, "V_BOOL(rgvarg[1]) = %x\n", V_BOOL(pdp->rgvarg)); @@ -489,21 +489,21 @@ static HRESULT WINAPI scriptDisp_GetDispID(IDispatchEx *iface, BSTR bstrName, DW { if(!lstrcmpW(bstrName, L"testProp")) { CHECK_EXPECT(script_testprop_d); - ok(grfdex == fdexNameCaseSensitive, "grfdex = %x\n", grfdex); + ok(grfdex == fdexNameCaseSensitive, "grfdex = %lx\n", grfdex); *pid = DISPID_SCRIPT_TESTPROP; return S_OK; }
if(!lstrcmpW(bstrName, L"testProp2")) { CHECK_EXPECT(script_testprop2_d); - ok(grfdex == fdexNameCaseSensitive, "grfdex = %x\n", grfdex); + ok(grfdex == fdexNameCaseSensitive, "grfdex = %lx\n", grfdex); *pid = DISPID_SCRIPT_TESTPROP2; return S_OK; }
if(!lstrcmpW(bstrName, L"divid")) { CHECK_EXPECT(script_divid_d); - ok(grfdex == fdexNameCaseSensitive, "grfdex = %x\n", grfdex); + ok(grfdex == fdexNameCaseSensitive, "grfdex = %lx\n", grfdex); return E_FAIL; }
@@ -518,7 +518,7 @@ static HRESULT WINAPI scriptDisp_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc case DISPID_SCRIPT_TESTPROP: CHECK_EXPECT(script_testprop_i);
- ok(lcid == 0, "lcid = %x\n", lcid); + ok(lcid == 0, "lcid = %lx\n", lcid); ok(wFlags == DISPATCH_PROPERTYGET, "wFlags = %x\n", wFlags); ok(pdp != NULL, "pdp == NULL\n"); ok(pdp->cArgs == 0, "pdp->cArgs = %d\n", pdp->cArgs); @@ -1178,23 +1178,23 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum HRESULT hres;
hres = IOleDocumentView_QueryInterface(pViewToActivate, &IID_IOleDocument, (void**)&document); - ok(hres == S_OK, "could not get IOleDocument: %08x\n", hres); + ok(hres == S_OK, "could not get IOleDocument: %08lx\n", hres);
hres = IOleDocument_CreateView(document, &InPlaceSite, NULL, 0, &view); IOleDocument_Release(document); - ok(hres == S_OK, "CreateView failed: %08x\n", hres); + ok(hres == S_OK, "CreateView failed: %08lx\n", hres);
hres = IOleDocumentView_SetInPlaceSite(view, &InPlaceSite); - ok(hres == S_OK, "SetInPlaceSite failed: %08x\n", hres); + ok(hres == S_OK, "SetInPlaceSite failed: %08lx\n", hres);
hres = IOleDocumentView_UIActivate(view, TRUE); - ok(hres == S_OK, "UIActivate failed: %08x\n", hres); + ok(hres == S_OK, "UIActivate failed: %08lx\n", hres);
hres = IOleDocumentView_SetRect(view, &rect); - ok(hres == S_OK, "SetRect failed: %08x\n", hres); + ok(hres == S_OK, "SetRect failed: %08lx\n", hres);
hres = IOleDocumentView_Show(view, TRUE); - ok(hres == S_OK, "Show failed: %08x\n", hres); + ok(hres == S_OK, "Show failed: %08lx\n", hres);
return S_OK; } @@ -1234,7 +1234,7 @@ static IHTMLDocument2 *create_document(void) #if !defined(__i386__) && !defined(__x86_64__) todo_wine #endif - ok(hres == S_OK, "CoCreateInstance failed: %08x\n", hres); + ok(hres == S_OK, "CoCreateInstance failed: %08lx\n", hres); return SUCCEEDED(hres) ? doc : NULL; }
@@ -1251,10 +1251,10 @@ static void load_string(IHTMLDocument2 *doc, const char *str) mem = GlobalAlloc(0, len); memcpy(mem, str, len); hres = CreateStreamOnHGlobal(mem, TRUE, &stream); - ok(hres == S_OK, "Failed to create a stream, hr %#x.\n", hres); + ok(hres == S_OK, "Failed to create a stream, hr %#lx.\n", hres);
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistStreamInit, (void**)&init); - ok(hres == S_OK, "Failed to get IPersistStreamInit, hr %#x.\n", hres); + ok(hres == S_OK, "Failed to get IPersistStreamInit, hr %#lx.\n", hres);
IPersistStreamInit_Load(init, stream); IPersistStreamInit_Release(init); @@ -1269,17 +1269,17 @@ static void do_advise(IHTMLDocument2 *doc, REFIID riid, IUnknown *unk_advise) HRESULT hres;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IConnectionPointContainer, (void**)&container); - ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08lx\n", hres);
hres = IConnectionPointContainer_FindConnectionPoint(container, riid, &cp); IConnectionPointContainer_Release(container); - ok(hres == S_OK, "FindConnectionPoint failed: %08x\n", hres); + ok(hres == S_OK, "FindConnectionPoint failed: %08lx\n", hres);
notif_doc = doc;
hres = IConnectionPoint_Advise(cp, unk_advise, &cookie); IConnectionPoint_Release(cp); - ok(hres == S_OK, "Advise failed: %08x\n", hres); + ok(hres == S_OK, "Advise failed: %08lx\n", hres); }
static void set_client_site(IHTMLDocument2 *doc, BOOL set) @@ -1296,19 +1296,19 @@ static void set_client_site(IHTMLDocument2 *doc, BOOL set) }
hres = IHTMLDocument2_QueryInterface(doc, &IID_IOleObject, (void**)&oleobj); - ok(hres == S_OK, "Could not et IOleObject: %08x\n", hres); + ok(hres == S_OK, "Could not et IOleObject: %08lx\n", hres);
hres = IOleObject_SetClientSite(oleobj, set ? &ClientSite : NULL); - ok(hres == S_OK, "SetClientSite failed: %08x\n", hres); + ok(hres == S_OK, "SetClientSite failed: %08lx\n", hres);
if(set) { IHlinkTarget *hlink;
hres = IOleObject_QueryInterface(oleobj, &IID_IHlinkTarget, (void**)&hlink); - ok(hres == S_OK, "Could not get IHlinkTarget iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHlinkTarget iface: %08lx\n", hres);
hres = IHlinkTarget_Navigate(hlink, 0, NULL); - ok(hres == S_OK, "Navgate failed: %08x\n", hres); + ok(hres == S_OK, "Navgate failed: %08lx\n", hres);
IHlinkTarget_Release(hlink); } @@ -1336,13 +1336,13 @@ static void load_doc(IHTMLDocument2 *doc, const char *str) }
hres = IHTMLDocument2_get_body(doc, &body); - ok(hres == S_OK, "get_body failed: %08x\n", hres); + ok(hres == S_OK, "get_body failed: %08lx\n", hres);
/* Check we can query for function on the IHTMLElementBody interface */ name = (WCHAR*)ucPtr; hres = IHTMLElement_GetIDsOfNames(body, &IID_NULL, &name, 1, LOCALE_USER_DEFAULT, &dispID); - ok(hres == S_OK, "GetIDsOfNames(background) failed %08x\n", hres); - ok(dispID == DISPID_IHTMLBODYELEMENT_BACKGROUND, "Incorrect dispID got (%d)\n", dispID); + ok(hres == S_OK, "GetIDsOfNames(background) failed %08lx\n", hres); + ok(dispID == DISPID_IHTMLBODYELEMENT_BACKGROUND, "Incorrect dispID got (%ld)\n", dispID);
IHTMLElement_Release(body); } @@ -1387,9 +1387,9 @@ static HRESULT WINAPI ObjectSafety_SetInterfaceSafetyOptions(IObjectSafety *ifac ok(IsEqualGUID(&IID_IActiveScriptParse, riid), "unexpected riid %s\n", wine_dbgstr_guid(riid));
ok(dwOptionSetMask == (INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER), - "dwOptionSetMask=%x\n", dwOptionSetMask); + "dwOptionSetMask=%lx\n", dwOptionSetMask); ok(dwEnabledOptions == (INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER), - "dwEnabledOptions=%x\n", dwOptionSetMask); + "dwEnabledOptions=%lx\n", dwOptionSetMask);
return S_OK; } @@ -1454,10 +1454,10 @@ static HRESULT WINAPI AXObjectSafety_SetInterfaceSafetyOptions(IObjectSafety *if CHECK_EXPECT(AXSetInterfaceSafetyOptions_IDispatchEx_caller); break; default: - ok(0, "unexpected dwEnabledOptions %x\n", dwEnabledOptions); + ok(0, "unexpected dwEnabledOptions %lx\n", dwEnabledOptions); }
- ok(dwOptionSetMask == dwEnabledOptions, "dwOptionSetMask=%x, expected %x\n", dwOptionSetMask, dwEnabledOptions); + ok(dwOptionSetMask == dwEnabledOptions, "dwOptionSetMask=%lx, expected %lx\n", dwOptionSetMask, dwEnabledOptions); return ax_setopt_dispex_hres; }
@@ -1474,10 +1474,10 @@ static HRESULT WINAPI AXObjectSafety_SetInterfaceSafetyOptions(IObjectSafety *if hres = ax_setopt_disp_data_hres; break; default: - ok(0, "unexpected dwEnabledOptions %x\n", dwEnabledOptions); + ok(0, "unexpected dwEnabledOptions %lx\n", dwEnabledOptions); hres = E_FAIL; } - ok(dwOptionSetMask == dwEnabledOptions, "dwOptionSetMask=%x, expected %x\n", dwOptionSetMask, dwEnabledOptions); + ok(dwOptionSetMask == dwEnabledOptions, "dwOptionSetMask=%lx, expected %lx\n", dwOptionSetMask, dwEnabledOptions); return hres; }
@@ -1506,9 +1506,9 @@ static BOOL set_safe_reg(BOOL safe_call, BOOL safe_data) #define check_custom_policy(a,b,c,d) _check_custom_policy(__LINE__,a,b,c,d) static void _check_custom_policy(unsigned line, HRESULT hres, BYTE *ppolicy, DWORD policy_size, DWORD expolicy) { - ok_(__FILE__,line)(hres == S_OK, "QueryCusromPolicy failed: %08x\n", hres); - ok_(__FILE__,line)(policy_size == sizeof(DWORD), "policy_size = %d\n", policy_size); - ok_(__FILE__,line)(*(DWORD*)ppolicy == expolicy, "policy = %x, expected %x\n", *(DWORD*)ppolicy, expolicy); + ok_(__FILE__,line)(hres == S_OK, "QueryCusromPolicy failed: %08lx\n", hres); + ok_(__FILE__,line)(policy_size == sizeof(DWORD), "policy_size = %ld\n", policy_size); + ok_(__FILE__,line)(*(DWORD*)ppolicy == expolicy, "policy = %lx, expected %lx\n", *(DWORD*)ppolicy, expolicy); CoTaskMemFree(ppolicy); }
@@ -1584,17 +1584,17 @@ static void test_security(void) HRESULT hres;
hres = IActiveScriptSite_QueryInterface(site, &IID_IServiceProvider, (void**)&sp); - ok(hres == S_OK, "Could not get IServiceProvider iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IServiceProvider iface: %08lx\n", hres);
hres = IServiceProvider_QueryService(sp, &SID_SInternetHostSecurityManager, &IID_IInternetHostSecurityManager, (void**)&sec_mgr); IServiceProvider_Release(sp); - ok(hres == S_OK, "QueryService failed: %08x\n", hres); + ok(hres == S_OK, "QueryService failed: %08lx\n", hres);
hres = IInternetHostSecurityManager_ProcessUrlAction(sec_mgr, URLACTION_ACTIVEX_RUN, (BYTE*)&policy, sizeof(policy), (BYTE*)&CLSID_TestActiveX, sizeof(CLSID), 0, 0); - ok(hres == S_OK, "ProcessUrlAction failed: %08x\n", hres); - ok(policy == URLPOLICY_ALLOW, "policy = %x\n", policy); + ok(hres == S_OK, "ProcessUrlAction failed: %08lx\n", hres); + ok(policy == URLPOLICY_ALLOW, "policy = %lx\n", policy);
cs.clsid = CLSID_TestActiveX; cs.pUnk = (IUnknown*)&AXObjectSafety; @@ -1803,7 +1803,7 @@ static HRESULT WINAPI ActiveScriptProperty_SetProperty(IActiveScriptProperty *if case SCRIPTPROP_INVOKEVERSIONING: CHECK_EXPECT(SetProperty_INVOKEVERSIONING); ok(V_VT(pvarValue) == VT_I4, "V_VT(pvarValue)=%d\n", V_VT(pvarValue)); - ok(V_I4(pvarValue) == 1, "V_I4(pvarValue)=%d\n", V_I4(pvarValue)); + ok(V_I4(pvarValue) == 1, "V_I4(pvarValue)=%ld\n", V_I4(pvarValue)); break; case SCRIPTPROP_ABBREVIATE_GLOBALNAME_RESOLUTION: if(V_BOOL(pvarValue)) @@ -1815,7 +1815,7 @@ static HRESULT WINAPI ActiveScriptProperty_SetProperty(IActiveScriptProperty *if case 0x70000003: /* Undocumented property set by IE10 */ return E_NOTIMPL; default: - ok(0, "unexpected property %x\n", dwProperty); + ok(0, "unexpected property %lx\n", dwProperty); return E_NOTIMPL; }
@@ -1934,21 +1934,21 @@ static void test_func(IDispatchEx *obj) str = SysAllocString(L"toString"); hres = IDispatchEx_GetDispID(obj, str, fdexNameCaseSensitive, &id); SysFreeString(str); - ok(hres == S_OK, "GetDispID failed: %08x\n", hres); - ok(id == DISPID_IOMNAVIGATOR_TOSTRING, "id = %x\n", id); + ok(hres == S_OK, "GetDispID failed: %08lx\n", hres); + ok(id == DISPID_IOMNAVIGATOR_TOSTRING, "id = %lx\n", id);
memset(&dp, 0, sizeof(dp)); memset(&ei, 0, sizeof(ei)); VariantInit(&var); hres = IDispatchEx_InvokeEx(obj, id, LOCALE_NEUTRAL, DISPATCH_PROPERTYGET, &dp, &var, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&var) == VT_DISPATCH, "V_VT(var)=%d\n", V_VT(&var)); ok(V_DISPATCH(&var) != NULL, "V_DISPATCH(var) == NULL\n"); disp = V_DISPATCH(&var);
hres = IDispatch_QueryInterface(disp, &IID_IDispatchEx, (void**)&dispex); IDispatch_Release(disp); - ok(hres == S_OK, "Could not get IDispatchEx iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDispatchEx iface: %08lx\n", hres);
/* FIXME: Test InvokeEx(DISPATCH_METHOD) */
@@ -1956,7 +1956,7 @@ static void test_func(IDispatchEx *obj) memset(&ei, 0, sizeof(ei)); VariantInit(&var); hres = IDispatchEx_Invoke(dispex, DISPID_VALUE, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, &dp, &var, &ei, NULL); - ok(hres == S_OK || broken(hres == E_ACCESSDENIED), "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK || broken(hres == E_ACCESSDENIED), "InvokeEx failed: %08lx\n", hres); if(SUCCEEDED(hres)) { DISPID named_args[2] = { DISPID_THIS, 0xdeadbeef }; VARIANT args[2]; @@ -1974,7 +1974,7 @@ static void test_func(IDispatchEx *obj) V_VT(args+1) = VT_I4; V_I4(args+1) = 3; hres = IDispatchEx_Invoke(dispex, DISPID_VALUE, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, &dp, &var, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&var) == VT_BSTR, "V_VT(var)=%d\n", V_VT(&var)); ok(!lstrcmpW(V_BSTR(&var), L"[object]"), "V_BSTR(var) = %s\n", wine_dbgstr_w(V_BSTR(&var))); VariantClear(&var); @@ -1983,17 +1983,17 @@ static void test_func(IDispatchEx *obj) V_VT(&var) = VT_I4; V_I4(&var) = 100; hres = dispex_propput(obj, id, 0, &var, NULL); - todo_wine ok(hres == E_NOTIMPL, "InvokeEx failed: %08x\n", hres); + todo_wine ok(hres == E_NOTIMPL, "InvokeEx failed: %08lx\n", hres);
hres = dispex_propget(dispex, DISPID_VALUE, &var, NULL); - ok(hres == E_ACCESSDENIED, "InvokeEx returned: %08x, expected E_ACCESSDENIED\n", hres); + ok(hres == E_ACCESSDENIED, "InvokeEx returned: %08lx, expected E_ACCESSDENIED\n", hres); if(SUCCEEDED(hres)) VariantClear(&var);
SET_EXPECT(QS_IActiveScriptSite); SET_EXPECT(QS_GetCaller); hres = dispex_propget(dispex, DISPID_VALUE, &var, &caller_sp); - ok(hres == S_OK, "InvokeEx returned: %08x, expected S_OK\n", hres); + ok(hres == S_OK, "InvokeEx returned: %08lx, expected S_OK\n", hres); ok(V_VT(&var) == VT_BSTR, "V_VT(var) = %d\n", V_VT(&var)); ok(!lstrcmpW(V_BSTR(&var), L"\nfunction toString() {\n [native code]\n}\n"), "V_BSTR(var) = %s\n", wine_dbgstr_w(V_BSTR(&var))); @@ -2013,21 +2013,21 @@ static void test_nextdispid(IDispatchEx *dispex)
name = SysAllocString(L"dynVal"); hres = IDispatchEx_GetDispID(dispex, name, fdexNameCaseSensitive|fdexNameEnsure, &dyn_id); - ok(hres == S_OK, "GetDispID failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID failed: %08lx\n", hres); SysFreeString(name);
V_VT(&var) = VT_EMPTY; hres = dispex_propput(dispex, dyn_id, 0, &var, NULL); - ok(hres == S_OK, "dispex_propput failed: %08x\n", hres); + ok(hres == S_OK, "dispex_propput failed: %08lx\n", hres);
while(last_id != dyn_id) { hres = IDispatchEx_GetNextDispID(dispex, fdexEnumAll, last_id, &id); - ok(hres == S_OK, "GetNextDispID returned: %08x\n", hres); + ok(hres == S_OK, "GetNextDispID returned: %08lx\n", hres); ok(id != DISPID_STARTENUM, "id == DISPID_STARTENUM\n"); ok(id != DISPID_IOMNAVIGATOR_TOSTRING, "id == DISPID_IOMNAVIGATOR_TOSTRING\n");
hres = IDispatchEx_GetMemberName(dispex, id, &name); - ok(hres == S_OK, "GetMemberName failed: %08x\n", hres); + ok(hres == S_OK, "GetMemberName failed: %08lx\n", hres);
if(id == dyn_id) ok(!lstrcmpW(name, L"dynVal"), "name = %s\n", wine_dbgstr_w(name)); @@ -2039,7 +2039,7 @@ static void test_nextdispid(IDispatchEx *dispex) }
hres = IDispatchEx_GetNextDispID(dispex, 0, id, &id); - ok(hres == S_FALSE, "GetNextDispID returned: %08x\n", hres); + ok(hres == S_FALSE, "GetNextDispID returned: %08lx\n", hres); ok(id == DISPID_STARTENUM, "id != DISPID_STARTENUM\n"); }
@@ -2056,7 +2056,7 @@ static void test_global_id(void) SET_EXPECT(script_divid_d); tmp = SysAllocString(L"divid"); hres = IDispatchEx_GetDispID(window_dispex, tmp, fdexNameCaseSensitive, &id); - ok(hres == S_OK, "GetDispID failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID failed: %08lx\n", hres); SysFreeString(tmp); CHECK_CALLED(GetScriptDispatch); CHECK_CALLED(script_divid_d); @@ -2065,7 +2065,7 @@ static void test_global_id(void) memset(&ei, 0, sizeof(ei)); memset(&dp, 0, sizeof(dp)); hres = IDispatchEx_InvokeEx(window_dispex, id, 0, DISPATCH_PROPERTYGET, &dp, &var, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&var) == VT_DISPATCH, "V_VT(var) = %d\n", V_VT(&var)); VariantClear(&var); } @@ -2079,28 +2079,28 @@ static void test_arg_conv(IHTMLWindow2 *window) HRESULT hres;
hres = IHTMLWindow2_get_document(window, &doc); - ok(hres == S_OK, "get_document failed: %08x\n", hres); + ok(hres == S_OK, "get_document failed: %08lx\n", hres);
hres = IHTMLDocument2_get_body(doc, &elem); IHTMLDocument2_Release(doc); - ok(hres == S_OK, "get_body failed: %08x\n", hres); + ok(hres == S_OK, "get_body failed: %08lx\n", hres);
hres = IHTMLElement_QueryInterface(elem, &IID_IDispatchEx, (void**)&dispex); IHTMLElement_Release(elem); - ok(hres == S_OK, "Could not get IDispatchEx iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDispatchEx iface: %08lx\n", hres);
SET_EXPECT(QS_VariantConversion); SET_EXPECT(ChangeType); V_VT(&v) = VT_I4; V_I4(&v) = 0xf0f0f0; hres = dispex_propput(dispex, DISPID_IHTMLBODYELEMENT_BACKGROUND, 0, &v, &caller_sp); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); CHECK_CALLED(QS_VariantConversion); CHECK_CALLED(ChangeType);
V_VT(&v) = VT_EMPTY; hres = dispex_propget(dispex, DISPID_IHTMLBODYELEMENT_BGCOLOR, &v, &caller_sp); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(var)=%d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(&var) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
@@ -2115,10 +2115,10 @@ static void _test_elem_disabled(unsigned line, IHTMLElement *elem, VARIANT_BOOL HRESULT hres;
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLElement3, (void**)&elem3); - ok_(__FILE__,line)(hres == S_OK, "Could not get IHTMLElement3 iface: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "Could not get IHTMLElement3 iface: %08lx\n", hres);
hres = IHTMLElement3_get_disabled(elem3, &b); - ok_(__FILE__,line)(hres == S_OK, "get_disabled failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_disabled failed: %08lx\n", hres); ok_(__FILE__,line)(b == exb, "disabled = %x, expected %x\n", b, exb);
IHTMLElement3_Release(elem3); @@ -2133,21 +2133,21 @@ static void test_default_arg_conv(IHTMLWindow2 *window) HRESULT hres;
hres = IHTMLWindow2_get_document(window, &doc); - ok(hres == S_OK, "get_document failed: %08x\n", hres); + ok(hres == S_OK, "get_document failed: %08lx\n", hres);
hres = IHTMLDocument2_get_body(doc, &elem); IHTMLDocument2_Release(doc); - ok(hres == S_OK, "get_body failed: %08x\n", hres); + ok(hres == S_OK, "get_body failed: %08lx\n", hres);
hres = IHTMLElement_QueryInterface(elem, &IID_IDispatchEx, (void**)&dispex); - ok(hres == S_OK, "Could not get IDispatchEx iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDispatchEx iface: %08lx\n", hres);
test_elem_disabled(elem, VARIANT_FALSE);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"test"); hres = dispex_propput(dispex, DISPID_IHTMLELEMENT3_DISABLED, 0, &v, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); SysFreeString(V_BSTR(&v));
test_elem_disabled(elem, VARIANT_TRUE); @@ -2155,14 +2155,14 @@ static void test_default_arg_conv(IHTMLWindow2 *window) V_VT(&v) = VT_I4; V_I4(&v) = 0; hres = dispex_propput(dispex, DISPID_IHTMLELEMENT3_DISABLED, 0, &v, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres);
test_elem_disabled(elem, VARIANT_FALSE);
V_VT(&v) = VT_I4; V_I4(&v) = 1; hres = dispex_propput(dispex, DISPID_IHTMLELEMENT3_DISABLED, DISPATCH_PROPERTYPUTREF, &v, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres);
test_elem_disabled(elem, VARIANT_TRUE);
@@ -2184,16 +2184,16 @@ static void test_named_args(IHTMLWindow2 *window) BSTR bstr;
hres = IHTMLWindow2_get_document(window, &doc); - ok(hres == S_OK, "get_document failed: %08x\n", hres); + ok(hres == S_OK, "get_document failed: %08lx\n", hres);
bstr = SysAllocString(L"div"); hres = IHTMLDocument2_createElement(doc, bstr, &elem); IHTMLDocument2_Release(doc); SysFreeString(bstr); - ok(hres == S_OK, "createElement failed: %08x\n", hres); + ok(hres == S_OK, "createElement failed: %08lx\n", hres);
hres = IHTMLElement_QueryInterface(elem, &IID_IDispatchEx, (void**)&dispex); - ok(hres == S_OK, "Could not get IDispatchEx iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDispatchEx iface: %08lx\n", hres);
bstr = SysAllocString(L"setAttribute"); hres = IDispatchEx_GetDispID(dispex, bstr, fdexNameCaseSensitive, &id); @@ -2208,16 +2208,16 @@ static void test_named_args(IHTMLWindow2 *window) V_VT(&args[1]) = VT_I4; V_I4(&args[1]) = 0; hres = IDispatchEx_InvokeEx(dispex, id, LOCALE_NEUTRAL, DISPATCH_METHOD, &dp, NULL, NULL, NULL); - ok(hres == S_OK, "InvokeEx returned: %08x\n", hres); + ok(hres == S_OK, "InvokeEx returned: %08lx\n", hres);
hres = IHTMLElement_getAttribute(elem, V_BSTR(&args[0]), 0, &var); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&var) == VT_NULL, "V_VT(var)=%d\n", V_VT(&var));
bstr = SysAllocString(L"0"); hres = IHTMLElement_getAttribute(elem, bstr, 0, &var); SysFreeString(bstr); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&var) == VT_BSTR, "V_VT(var)=%d\n", V_VT(&var)); ok(!lstrcmpW(V_BSTR(&var), L"testattr"), "V_BSTR(&var) = %s\n", debugstr_w(V_BSTR(&var))); VariantClear(&var); @@ -2227,12 +2227,12 @@ static void test_named_args(IHTMLWindow2 *window) V_BSTR(&args[2]) = SysAllocString(L"testval"); hres = IDispatchEx_InvokeEx(dispex, id, LOCALE_NEUTRAL, DISPATCH_METHOD, &dp, NULL, NULL, NULL); VariantClear(&args[2]); - ok(hres == DISP_E_TYPEMISMATCH, "InvokeEx returned: %08x\n", hres); + ok(hres == DISP_E_TYPEMISMATCH, "InvokeEx returned: %08lx\n", hres);
V_VT(&args[2]) = VT_I4; V_I4(&args[2]) = 0; hres = IDispatchEx_InvokeEx(dispex, id, LOCALE_NEUTRAL, DISPATCH_METHOD, &dp, NULL, NULL, NULL); - ok(hres == DISP_E_TYPEMISMATCH, "InvokeEx returned: %08x\n", hres); + ok(hres == DISP_E_TYPEMISMATCH, "InvokeEx returned: %08lx\n", hres);
args[2] = args[0]; V_VT(&args[1]) = VT_BSTR; @@ -2240,11 +2240,11 @@ static void test_named_args(IHTMLWindow2 *window) V_VT(&args[0]) = VT_I4; V_I4(&args[0]) = 0; hres = IDispatchEx_InvokeEx(dispex, id, LOCALE_NEUTRAL, DISPATCH_METHOD, &dp, NULL, NULL, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); VariantClear(&args[1]);
hres = IHTMLElement_getAttribute(elem, V_BSTR(&args[2]), 0, &var); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&var) == VT_BSTR, "V_VT(var)=%d\n", V_VT(&var)); ok(!lstrcmpW(V_BSTR(&var), L"testval"), "V_BSTR(&var) = %s\n", debugstr_w(V_BSTR(&var))); VariantClear(&var); @@ -2255,11 +2255,11 @@ static void test_named_args(IHTMLWindow2 *window) V_VT(&args[0]) = VT_BSTR; V_BSTR(&args[0]) = SysAllocString(L"newValue"); hres = IDispatchEx_InvokeEx(dispex, id, LOCALE_NEUTRAL, DISPATCH_METHOD, &dp, NULL, NULL, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); VariantClear(&args[0]);
hres = IHTMLElement_getAttribute(elem, V_BSTR(&args[1]), 0, &var); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&var) == VT_BSTR, "V_VT(var)=%d\n", V_VT(&var)); ok(!lstrcmpW(V_BSTR(&var), L"newValue"), "V_BSTR(&var) = %s\n", debugstr_w(V_BSTR(&var))); VariantClear(&var); @@ -2274,12 +2274,12 @@ static void test_named_args(IHTMLWindow2 *window) V_VT(&args[0]) = VT_BSTR; V_BSTR(&args[0]) = SysAllocString(L"extra"); hres = IDispatchEx_InvokeEx(dispex, id, LOCALE_NEUTRAL, DISPATCH_METHOD, &dp, NULL, NULL, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); VariantClear(&args[2]); VariantClear(&args[0]);
hres = IHTMLElement_getAttribute(elem, V_BSTR(&args[3]), 0, &var); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&var) == VT_BSTR, "V_VT(var)=%d\n", V_VT(&var)); ok(!lstrcmpW(V_BSTR(&var), L"foobar"), "V_BSTR(&var) = %s\n", debugstr_w(V_BSTR(&var))); VariantClear(&var); @@ -2291,11 +2291,11 @@ static void test_named_args(IHTMLWindow2 *window) V_VT(&args[2]) = VT_BSTR; V_BSTR(&args[2]) = SysAllocString(L"withThis"); hres = IDispatchEx_InvokeEx(dispex, id, LOCALE_NEUTRAL, DISPATCH_METHOD, &dp, NULL, NULL, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); VariantClear(&args[2]);
hres = IHTMLElement_getAttribute(elem, V_BSTR(&args[3]), 0, &var); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&var) == VT_BSTR, "V_VT(var)=%d\n", V_VT(&var)); ok(!lstrcmpW(V_BSTR(&var), L"withThis"), "V_BSTR(&var) = %s\n", debugstr_w(V_BSTR(&var))); VariantClear(&args[3]); @@ -2316,10 +2316,10 @@ static void test_ui(void) win_skip("IActiveScriptSiteUIControl not supported\n"); return; } - ok(hres == S_OK, "Could not get IActiveScriptSiteUIControl: %08x\n", hres); + ok(hres == S_OK, "Could not get IActiveScriptSiteUIControl: %08lx\n", hres);
hres = IActiveScriptSiteUIControl_GetUIBehavior(ui_control, SCRIPTUICITEM_MSGBOX, &uic_handling); - ok(hres == S_OK, "GetUIBehavior failed: %08x\n", hres); + ok(hres == S_OK, "GetUIBehavior failed: %08lx\n", hres); ok(uic_handling == SCRIPTUICHANDLING_ALLOW, "uic_handling = %d\n", uic_handling);
IActiveScriptSiteUIControl_Release(ui_control); @@ -2332,10 +2332,10 @@ static void test_sp(void) HRESULT hres;
hres = IActiveScriptSite_QueryInterface(site, &IID_IServiceProvider, (void**)&sp); - ok(hres == S_OK, "Could not get IServiceProvider iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IServiceProvider iface: %08lx\n", hres);
hres = IServiceProvider_QueryService(sp, &SID_SContainerDispatch, &IID_IHTMLDocument, (void**)&unk); - ok(hres == S_OK, "Could not get SID_SContainerDispatch service: %08x\n", hres); + ok(hres == S_OK, "Could not get SID_SContainerDispatch service: %08lx\n", hres); IUnknown_Release(unk);
IServiceProvider_Release(sp); @@ -2363,8 +2363,8 @@ static void test_script_run(void) tmp = SysAllocString(documentW); hres = IDispatchEx_GetDispID(window_dispex, tmp, fdexNameCaseSensitive, &id); SysFreeString(tmp); - ok(hres == S_OK, "GetDispID(document) failed: %08x\n", hres); - ok(id == DISPID_IHTMLWINDOW2_DOCUMENT, "id=%x\n", id); + ok(hres == S_OK, "GetDispID(document) failed: %08lx\n", hres); + ok(id == DISPID_IHTMLWINDOW2_DOCUMENT, "id=%lx\n", id);
CHECK_CALLED(GetScriptDispatch);
@@ -2373,61 +2373,61 @@ static void test_script_run(void) memset(&ei, 0, sizeof(ei));
hres = IDispatchEx_InvokeEx(window_dispex, id, LOCALE_NEUTRAL, INVOKE_PROPERTYGET, &dp, &var, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&var) == VT_DISPATCH, "V_VT(var)=%d\n", V_VT(&var)); ok(V_DISPATCH(&var) != NULL, "V_DISPATCH(&var) == NULL\n");
hres = IDispatch_QueryInterface(V_DISPATCH(&var), &IID_IDispatchEx, (void**)&document); VariantClear(&var); - ok(hres == S_OK, "Could not get DispatchEx: %08x\n", hres); + ok(hres == S_OK, "Could not get DispatchEx: %08lx\n", hres);
tmp = SysAllocString(testW); hres = IDispatchEx_GetDispID(document, tmp, fdexNameCaseSensitive, &id); - ok(hres == DISP_E_UNKNOWNNAME, "GetDispID(document) failed: %08x, expected DISP_E_UNKNOWNNAME\n", hres); + ok(hres == DISP_E_UNKNOWNNAME, "GetDispID(document) failed: %08lx, expected DISP_E_UNKNOWNNAME\n", hres); hres = IDispatchEx_GetDispID(document, tmp, fdexNameCaseSensitive | fdexNameImplicit, &id); - ok(hres == DISP_E_UNKNOWNNAME, "GetDispID(document) failed: %08x, expected DISP_E_UNKNOWNNAME\n", hres); + ok(hres == DISP_E_UNKNOWNNAME, "GetDispID(document) failed: %08lx, expected DISP_E_UNKNOWNNAME\n", hres); SysFreeString(tmp);
id = 0; tmp = SysAllocString(testW); hres = IDispatchEx_GetDispID(document, tmp, fdexNameCaseSensitive|fdexNameEnsure, &id); SysFreeString(tmp); - ok(hres == S_OK, "GetDispID(document) failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID(document) failed: %08lx\n", hres); ok(id, "id == 0\n");
V_VT(&var) = VT_I4; V_I4(&var) = 100; hres = dispex_propput(document, id, 0, &var, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres);
tmp = SysAllocString(testW); hres = IDispatchEx_GetDispID(document, tmp, fdexNameCaseSensitive, &id); SysFreeString(tmp); - ok(hres == S_OK, "GetDispID(document) failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID(document) failed: %08lx\n", hres);
hres = IDispatchEx_DeleteMemberByDispID(document, id); - ok(hres == E_NOTIMPL, "DeleteMemberByDispID failed = %08x\n", hres); + ok(hres == E_NOTIMPL, "DeleteMemberByDispID failed = %08lx\n", hres);
VariantInit(&var); memset(&dp, 0, sizeof(dp)); memset(&ei, 0, sizeof(ei)); hres = IDispatchEx_InvokeEx(document, id, LOCALE_NEUTRAL, INVOKE_PROPERTYGET, &dp, &var, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&var) == VT_I4, "V_VT(var)=%d\n", V_VT(&var)); - ok(V_I4(&var) == 100, "V_I4(&var) = %d\n", V_I4(&var)); + ok(V_I4(&var) == 100, "V_I4(&var) = %ld\n", V_I4(&var));
V_VT(&var) = VT_I4; V_I4(&var) = 200; hres = dispex_propput(document, id, DISPATCH_PROPERTYPUTREF, &var, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres);
VariantInit(&var); memset(&dp, 0, sizeof(dp)); memset(&ei, 0, sizeof(ei)); hres = IDispatchEx_InvokeEx(document, id, LOCALE_NEUTRAL, INVOKE_PROPERTYGET, &dp, &var, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&var) == VT_I4, "V_VT(var)=%d\n", V_VT(&var)); - ok(V_I4(&var) == 200, "V_I4(&var) = %d\n", V_I4(&var)); + ok(V_I4(&var) == 200, "V_I4(&var) = %ld\n", V_I4(&var));
memset(&dp, 0, sizeof(dp)); memset(&ei, 0, sizeof(ei)); @@ -2436,39 +2436,39 @@ static void test_script_run(void) dp.cArgs = 1; dp.rgvarg = &var; hres = IDispatchEx_InvokeEx(document, id, LOCALE_NEUTRAL, INVOKE_PROPERTYPUT, &dp, NULL, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres);
VariantInit(&var); memset(&dp, 0, sizeof(dp)); memset(&ei, 0, sizeof(ei)); hres = IDispatchEx_InvokeEx(document, id, LOCALE_NEUTRAL, INVOKE_PROPERTYGET, &dp, &var, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&var) == VT_I4, "V_VT(var)=%d\n", V_VT(&var)); - ok(V_I4(&var) == 300, "V_I4(&var) = %d\n", V_I4(&var)); + ok(V_I4(&var) == 300, "V_I4(&var) = %ld\n", V_I4(&var));
V_VT(&var) = VT_BSTR; V_BSTR(&var) = NULL; hres = dispex_propput(document, id, 0, &var, NULL); - ok(hres == S_OK, "dispex_propput failed: %08x\n", hres); + ok(hres == S_OK, "dispex_propput failed: %08lx\n", hres);
VariantInit(&var); memset(&dp, 0, sizeof(dp)); memset(&ei, 0, sizeof(ei)); hres = IDispatchEx_InvokeEx(document, id, LOCALE_NEUTRAL, INVOKE_PROPERTYGET, &dp, &var, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&var) == VT_BSTR, "V_VT(var)=%d\n", V_VT(&var)); ok(!V_BSTR(&var), "V_BSTR(&var) = %s\n", wine_dbgstr_w(V_BSTR(&var)));
unk = (void*)0xdeadbeef; hres = IDispatchEx_GetNameSpaceParent(window_dispex, &unk); - ok(hres == S_OK, "GetNameSpaceParent failed: %08x\n", hres); + ok(hres == S_OK, "GetNameSpaceParent failed: %08lx\n", hres); ok(!unk, "unk=%p, expected NULL\n", unk);
id = 0; tmp = SysAllocString(funcW); hres = IDispatchEx_GetDispID(document, tmp, fdexNameCaseSensitive|fdexNameEnsure, &id); SysFreeString(tmp); - ok(hres == S_OK, "GetDispID(func) failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID(func) failed: %08lx\n", hres); ok(id, "id == 0\n");
dp.cArgs = 1; @@ -2478,7 +2478,7 @@ static void test_script_run(void) V_VT(&var) = VT_DISPATCH; V_DISPATCH(&var) = (IDispatch*)&funcDisp; hres = IDispatchEx_InvokeEx(document, id, LOCALE_NEUTRAL, INVOKE_PROPERTYPUT, &dp, NULL, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres);
VariantInit(&var); memset(&dp, 0, sizeof(dp)); @@ -2495,21 +2495,21 @@ static void test_script_run(void) CHECK_CALLED_BROKEN(SetProperty_ABBREVIATE_GLOBALNAME_RESOLUTION_FALSE); /* IE11 */ CHECK_CALLED(funcDisp);
- ok(hres == S_OK, "InvokeEx(INVOKE_FUNC) failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx(INVOKE_FUNC) failed: %08lx\n", hres); ok(V_VT(&var) == VT_I4, "V_VT(var)=%d\n", V_VT(&var)); ok(V_I4(&var) == 100, "V_I4(&var) == NULL\n");
IDispatchEx_Release(document);
hres = IDispatchEx_QueryInterface(window_dispex, &IID_IHTMLWindow2, (void**)&window); - ok(hres == S_OK, "Could not get IHTMLWindow2 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLWindow2 iface: %08lx\n", hres);
hres = IHTMLWindow2_get_navigator(window, &navigator); - ok(hres == S_OK, "get_navigator failed: %08x\n", hres); + ok(hres == S_OK, "get_navigator failed: %08lx\n", hres);
hres = IOmNavigator_QueryInterface(navigator, &IID_IDispatchEx, (void**)&dispex); IOmNavigator_Release(navigator); - ok(hres == S_OK, "Could not get IDispatchEx iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDispatchEx iface: %08lx\n", hres);
test_func(dispex); test_nextdispid(dispex); @@ -2521,7 +2521,7 @@ static void test_script_run(void)
tmp = SysAllocString(L"test"); hres = IDispatchEx_DeleteMemberByName(dispex, tmp, fdexNameCaseSensitive); - ok(hres == E_NOTIMPL, "DeleteMemberByName failed: %08x\n", hres); + ok(hres == E_NOTIMPL, "DeleteMemberByName failed: %08lx\n", hres);
IDispatchEx_Release(dispex);
@@ -2531,7 +2531,7 @@ static void test_script_run(void) SET_EXPECT(script_testprop_d); tmp = SysAllocString(L"testProp"); hres = IDispatchEx_GetDispID(window_dispex, tmp, fdexNameCaseSensitive, &id); - ok(hres == S_OK, "GetDispID failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID failed: %08lx\n", hres); ok(id != DISPID_SCRIPT_TESTPROP, "id == DISPID_SCRIPT_TESTPROP\n"); CHECK_CALLED(GetScriptDispatch); CHECK_CALLED(script_testprop_d); @@ -2539,7 +2539,7 @@ static void test_script_run(void)
tmp = SysAllocString(L"testProp"); hres = IDispatchEx_GetDispID(window_dispex, tmp, fdexNameCaseSensitive, &id); - ok(hres == S_OK, "GetDispID failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID failed: %08lx\n", hres); ok(id != DISPID_SCRIPT_TESTPROP, "id == DISPID_SCRIPT_TESTPROP\n"); SysFreeString(tmp);
@@ -2548,7 +2548,7 @@ static void test_script_run(void) memset(&ei, 0, sizeof(ei)); memset(&dp, 0, sizeof(dp)); hres = IDispatchEx_InvokeEx(window_dispex, id, 0, DISPATCH_PROPERTYGET, &dp, &var, &ei, NULL); - ok(hres == S_OK, "InvokeEx failed: %08x\n", hres); + ok(hres == S_OK, "InvokeEx failed: %08lx\n", hres); ok(V_VT(&var) == VT_NULL, "V_VT(var) = %d\n", V_VT(&var)); CHECK_CALLED(GetScriptDispatch); CHECK_CALLED(script_testprop_i); @@ -2557,7 +2557,7 @@ static void test_script_run(void) SET_EXPECT(script_testprop2_d); tmp = SysAllocString(L"testProp2"); hres = IDispatchEx_GetDispID(window_dispex, tmp, fdexNameCaseSensitive|fdexNameEnsure, &id); - ok(hres == S_OK, "GetDispID failed: %08x\n", hres); + ok(hres == S_OK, "GetDispID failed: %08lx\n", hres); ok(id != DISPID_SCRIPT_TESTPROP2, "id == DISPID_SCRIPT_TESTPROP2\n"); CHECK_CALLED(GetScriptDispatch); CHECK_CALLED(script_testprop2_d); @@ -2565,7 +2565,7 @@ static void test_script_run(void)
tmp = SysAllocString(L"test"); hres = IDispatchEx_DeleteMemberByName(window_dispex, tmp, fdexNameCaseSensitive); - ok(hres == E_NOTIMPL, "DeleteMemberByName failed: %08x\n", hres); + ok(hres == E_NOTIMPL, "DeleteMemberByName failed: %08lx\n", hres);
test_global_id();
@@ -2586,7 +2586,7 @@ static HRESULT WINAPI ActiveScriptParse_ParseScriptText(IActiveScriptParse *ifac CHECK_EXPECT(ParseScriptText_execScript); ok(!pstrItemName, "pstrItemName = %s\n", wine_dbgstr_w(pstrItemName)); ok(!lstrcmpW(pstrDelimiter, L"""), "pstrDelimiter = %s\n", wine_dbgstr_w(pstrDelimiter)); - ok(dwFlags == SCRIPTTEXT_ISVISIBLE, "dwFlags = %x\n", dwFlags); + ok(dwFlags == SCRIPTTEXT_ISVISIBLE, "dwFlags = %lx\n", dwFlags);
V_VT(pvarResult) = VT_I4; V_I4(pvarResult) = 10; @@ -2595,7 +2595,7 @@ static HRESULT WINAPI ActiveScriptParse_ParseScriptText(IActiveScriptParse *ifac CHECK_EXPECT(ParseScriptText_script); ok(!lstrcmpW(pstrItemName, L"window"), "pstrItemName = %s\n", wine_dbgstr_w(pstrItemName)); ok(!lstrcmpW(pstrDelimiter, L"</SCRIPT>"), "pstrDelimiter = %s\n", wine_dbgstr_w(pstrDelimiter)); - ok(dwFlags == (SCRIPTTEXT_ISVISIBLE|SCRIPTTEXT_HOSTMANAGESSOURCE), "dwFlags = %x\n", dwFlags); + ok(dwFlags == (SCRIPTTEXT_ISVISIBLE|SCRIPTTEXT_HOSTMANAGESSOURCE), "dwFlags = %lx\n", dwFlags);
test_script_run(); return S_OK; @@ -2676,26 +2676,26 @@ static HRESULT WINAPI ActiveScript_SetScriptSite(IActiveScript *iface, IActiveSc ok(pass != NULL, "pass == NULL\n");
hres = IActiveScriptSite_QueryInterface(pass, &IID_IActiveScriptSiteInterruptPoll, (void**)&poll); - ok(hres == S_OK, "Could not get IActiveScriptSiteInterruptPoll interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IActiveScriptSiteInterruptPoll interface: %08lx\n", hres); if(SUCCEEDED(hres)) IActiveScriptSiteInterruptPoll_Release(poll);
hres = IActiveScriptSite_GetLCID(pass, &lcid); - ok(hres == S_OK, "GetLCID failed: %08x\n", hres); + ok(hres == S_OK, "GetLCID failed: %08lx\n", hres);
hres = IActiveScriptSite_OnStateChange(pass, (state = SCRIPTSTATE_INITIALIZED)); - ok(hres == S_OK, "OnStateChange failed: %08x\n", hres); + ok(hres == S_OK, "OnStateChange failed: %08lx\n", hres);
hres = IActiveScriptSite_QueryInterface(pass, &IID_IActiveScriptSiteDebug, (void**)&debug); - ok(hres == S_OK, "Could not get IActiveScriptSiteDebug interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IActiveScriptSiteDebug interface: %08lx\n", hres); if(SUCCEEDED(hres)) IActiveScriptSiteDebug_Release(debug);
hres = IActiveScriptSite_QueryInterface(pass, &IID_ICanHandleException, (void**)&canexception); - ok(hres == E_NOINTERFACE, "Could not get IID_ICanHandleException interface: %08x\n", hres); + ok(hres == E_NOINTERFACE, "Could not get IID_ICanHandleException interface: %08lx\n", hres);
hres = IActiveScriptSite_QueryInterface(pass, &IID_IServiceProvider, (void**)&service); - ok(hres == S_OK, "Could not get IServiceProvider interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IServiceProvider interface: %08lx\n", hres); if(SUCCEEDED(hres)) IServiceProvider_Release(service);
@@ -2731,7 +2731,7 @@ static HRESULT WINAPI ActiveScript_SetScriptState(IActiveScript *iface, SCRIPTST }
hres = IActiveScriptSite_OnStateChange(site, (state = ss)); - ok(hres == S_OK, "OnStateChange failed: %08x\n", hres); + ok(hres == S_OK, "OnStateChange failed: %08lx\n", hres);
return S_OK; } @@ -2764,14 +2764,14 @@ static HRESULT WINAPI ActiveScript_AddNamedItem(IActiveScript *iface, CHECK_EXPECT(AddNamedItem);
ok(!lstrcmpW(pstrName, windowW), "pstrName=%s\n", wine_dbgstr_w(pstrName)); - ok(dwFlags == (SCRIPTITEM_ISVISIBLE|SCRIPTITEM_ISSOURCE|SCRIPTITEM_GLOBALMEMBERS), "dwFlags=%x\n", dwFlags); + ok(dwFlags == (SCRIPTITEM_ISVISIBLE|SCRIPTITEM_ISSOURCE|SCRIPTITEM_GLOBALMEMBERS), "dwFlags=%lx\n", dwFlags);
hres = IActiveScriptSite_GetItemInfo(site, windowW, SCRIPTINFO_IUNKNOWN, &unk, NULL); - ok(hres == S_OK, "GetItemInfo failed: %08x\n", hres); + ok(hres == S_OK, "GetItemInfo failed: %08lx\n", hres); ok(unk != NULL, "unk == NULL\n");
hres = IUnknown_QueryInterface(unk, &IID_IDispatch, (void**)&disp); - ok(hres == S_OK, "Could not get IDispatch interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDispatch interface: %08lx\n", hres); if(SUCCEEDED(hres)) IDispatch_Release(disp);
@@ -2781,7 +2781,7 @@ static HRESULT WINAPI ActiveScript_AddNamedItem(IActiveScript *iface, IUnknown_Release(unk2);
hres = IUnknown_QueryInterface(unk, &IID_IDispatchEx, (void**)&window_dispex); - ok(hres == S_OK, "Could not get IDispatchEx interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IDispatchEx interface: %08lx\n", hres);
IUnknown_Release(unk); return S_OK; @@ -2945,33 +2945,33 @@ static void report_data(ProtocolHandler *This) static const WCHAR emptyW[] = {0};
hres = IInternetProtocolSink_QueryInterface(This->sink, &IID_IServiceProvider, (void**)&service_provider); - ok(hres == S_OK, "Could not get IServiceProvider iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IServiceProvider iface: %08lx\n", hres);
hres = IServiceProvider_QueryService(service_provider, &IID_IHttpNegotiate, &IID_IHttpNegotiate, (void**)&http_negotiate); IServiceProvider_Release(service_provider); - ok(hres == S_OK, "Could not get IHttpNegotiate interface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHttpNegotiate interface: %08lx\n", hres);
hres = IUri_GetDisplayUri(This->uri, &url); - ok(hres == S_OK, "Failed to get display uri: %08x\n", hres); + ok(hres == S_OK, "Failed to get display uri: %08lx\n", hres); hres = IHttpNegotiate_BeginningTransaction(http_negotiate, url, emptyW, 0, &addl_headers); - ok(hres == S_OK, "BeginningTransaction failed: %08x\n", hres); + ok(hres == S_OK, "BeginningTransaction failed: %08lx\n", hres); SysFreeString(url);
CoTaskMemFree(addl_headers);
headers = SysAllocString(L"HTTP/1.1 200 OK\r\n\r\n"); hres = IHttpNegotiate_OnResponse(http_negotiate, 200, headers, NULL, NULL); - ok(hres == S_OK, "OnResponse failed: %08x\n", hres); + ok(hres == S_OK, "OnResponse failed: %08lx\n", hres); SysFreeString(headers);
IHttpNegotiate_Release(http_negotiate);
hres = IInternetProtocolSink_ReportData(This->sink, BSCF_FIRSTDATANOTIFICATION | BSCF_LASTDATANOTIFICATION, This->size, This->size); - ok(hres == S_OK, "ReportData failed: %08x\n", hres); + ok(hres == S_OK, "ReportData failed: %08lx\n", hres);
hres = IInternetProtocolSink_ReportResult(This->sink, S_OK, 0, NULL); - ok(hres == S_OK, "ReportResult failed: %08x\n", hres); + ok(hres == S_OK, "ReportResult failed: %08lx\n", hres); }
typedef struct js_stream_t { @@ -3051,17 +3051,17 @@ static void stream_write(const WCHAR *name, const WCHAR *data) stream->protocol_handler = NULL;
hres = CreateStreamOnHGlobal(NULL, TRUE, &protocol_handler->stream); - ok(hres == S_OK, "CreateStreamOnHGlobal failed: %08x\n", hres); + ok(hres == S_OK, "CreateStreamOnHGlobal failed: %08lx\n", hres);
hres = IStream_Write(protocol_handler->stream, bom_utf16, sizeof(bom_utf16), NULL); - ok(hres == S_OK, "Write failed: %08x\n", hres); + ok(hres == S_OK, "Write failed: %08lx\n", hres);
hres = IStream_Write(protocol_handler->stream, data, lstrlenW(data)*sizeof(WCHAR), NULL); - ok(hres == S_OK, "Write failed: %08x\n", hres); + ok(hres == S_OK, "Write failed: %08lx\n", hres);
U(large_zero).QuadPart = 0; hres = IStream_Seek(protocol_handler->stream, large_zero, STREAM_SEEK_SET, NULL); - ok(hres == S_OK, "Seek failed: %08x\n", hres); + ok(hres == S_OK, "Seek failed: %08lx\n", hres);
async_switch(protocol_handler); IInternetProtocolEx_Release(&protocol_handler->IInternetProtocolEx_iface); @@ -3133,7 +3133,7 @@ static HRESULT WINAPI Protocol_Continue(IInternetProtocolEx *iface, PROTOCOLDATA
static HRESULT WINAPI Protocol_Abort(IInternetProtocolEx *iface, HRESULT hrReason, DWORD dwOptions) { - trace("Abort(%08x %x)\n", hrReason, dwOptions); + trace("Abort(%08lx %lx)\n", hrReason, dwOptions); return E_NOTIMPL; }
@@ -3162,7 +3162,7 @@ static HRESULT WINAPI Protocol_Read(IInternetProtocolEx *iface, void *pv, ULONG
if(This->stream) { hres = IStream_Read(This->stream, pv, cb, &read); - ok(SUCCEEDED(hres), "Read failed: %08x\n", hres); + ok(SUCCEEDED(hres), "Read failed: %08lx\n", hres); if(FAILED(hres)) return hres; if(pcbRead) @@ -3213,7 +3213,7 @@ static HRESULT WINAPI ProtocolEx_StartEx(IInternetProtocolEx *iface, IUri *uri, static const WCHAR empty_prefixW[] = {'/','e','m','p','t','y'};
hres = IInternetBindInfo_GetBindInfo(pOIBindInfo, &bindf, &This->bind_info); - ok(hres == S_OK, "GetBindInfo failed: %08x\n", hres); + ok(hres == S_OK, "GetBindInfo failed: %08lx\n", hres);
hres = IUri_GetPath(uri, &path); if(FAILED(hres)) @@ -3224,7 +3224,7 @@ static HRESULT WINAPI ProtocolEx_StartEx(IInternetProtocolEx *iface, IUri *uri, This->size = strlen(This->data); }else if(!lstrcmpW(path, L"/echo.php")) { ok(This->bind_info.dwBindVerb == BINDVERB_POST, "unexpected bind verb %d\n", This->bind_info.dwBindVerb == BINDVERB_POST); - todo_wine ok(This->bind_info.stgmedData.tymed == TYMED_ISTREAM, "tymed = %x\n", This->bind_info.stgmedData.tymed); + todo_wine ok(This->bind_info.stgmedData.tymed == TYMED_ISTREAM, "tymed = %lx\n", This->bind_info.stgmedData.tymed); switch(This->bind_info.stgmedData.tymed) { case TYMED_HGLOBAL: This->size = This->bind_info.cbstgmedData; @@ -3235,13 +3235,13 @@ static HRESULT WINAPI ProtocolEx_StartEx(IInternetProtocolEx *iface, IUri *uri, IStream_AddRef(This->stream); break; default: - ok(0, "unexpected tymed %d\n", This->bind_info.stgmedData.tymed); + ok(0, "unexpected tymed %ld\n", This->bind_info.stgmedData.tymed); } }else if(!lstrcmpW(path, L"/jsstream.php")) { BSTR query;
hres = IUri_GetQuery(uri, &query); - ok(hres == S_OK, "GetQuery failed: %08x\n", hres); + ok(hres == S_OK, "GetQuery failed: %08lx\n", hres); ok(SysStringLen(query) > 1 && *query == '?', "unexpected query %s\n", wine_dbgstr_w(query)); register_stream(This, query+1); SysFreeString(query); @@ -3394,23 +3394,23 @@ static void test_exec_script(IHTMLDocument2 *doc, const WCHAR *codew, const WCHA HRESULT hres;
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres);
code = SysAllocString(codew); lang = SysAllocString(langw);
SET_EXPECT(ParseScriptText_execScript); hres = IHTMLWindow2_execScript(window, code, lang, &v); - ok(hres == S_OK, "execScript failed: %08x\n", hres); + ok(hres == S_OK, "execScript failed: %08lx\n", hres); ok(V_VT(&v) == VT_I4, "V_VT(v) = %d\n", V_VT(&v)); - ok(V_I4(&v) == 10, "V_I4(v) = %d\n", V_I4(&v)); + ok(V_I4(&v) == 10, "V_I4(v) = %ld\n", V_I4(&v)); CHECK_CALLED(ParseScriptText_execScript); SysFreeString(lang);
lang = SysAllocString(L"invalid"); V_VT(&v) = 100; hres = IHTMLWindow2_execScript(window, code, lang, &v); - ok(hres == CO_E_CLASSSTRING, "execScript failed: %08x, expected CO_E_CLASSSTRING\n", hres); + ok(hres == CO_E_CLASSSTRING, "execScript failed: %08lx, expected CO_E_CLASSSTRING\n", hres); ok(V_VT(&v) == 100, "V_VT(v) = %d\n", V_VT(&v)); SysFreeString(lang); SysFreeString(code); @@ -3487,10 +3487,10 @@ static void run_from_moniker(IMoniker *mon) do_advise(doc, &IID_IPropertyNotifySink, (IUnknown*)&PropertyNotifySink);
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistMoniker, (void**)&persist); - ok(hres == S_OK, "Could not get IPersistMoniker iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IPersistMoniker iface: %08lx\n", hres);
hres = IPersistMoniker_Load(persist, FALSE, mon, NULL, 0); - ok(hres == S_OK, "Load failed: %08x\n", hres); + ok(hres == S_OK, "Load failed: %08lx\n", hres);
IPersistMoniker_Release(persist);
@@ -3522,7 +3522,7 @@ static void run_js_script(const char *test_name) MultiByteToWideChar(CP_ACP, 0, test_name, -1, ptr, url + ARRAY_SIZE(url) - ptr);
hres = CreateURLMoniker(NULL, url, &mon); - ok(hres == S_OK, "CreateURLMoniker failed: %08x\n", hres); + ok(hres == S_OK, "CreateURLMoniker failed: %08lx\n", hres); run_from_moniker(mon);
IMoniker_Release(mon); @@ -3541,7 +3541,7 @@ static void run_from_path(const WCHAR *path, const char *opt) url = SysAllocString(buf); hres = CreateURLMoniker(NULL, url, &mon); SysFreeString(url); - ok(hres == S_OK, "CreateUrlMoniker failed: %08x\n", hres); + ok(hres == S_OK, "CreateUrlMoniker failed: %08lx\n", hres);
run_from_moniker(mon);
@@ -3580,10 +3580,10 @@ static void init_protocol_handler(void) static const WCHAR httpW[] = {'h','t','t','p',0};
hres = CoInternetGetSession(0, &internet_session, 0); - ok(hres == S_OK, "CoInternetGetSession failed: %08x\n", hres); + ok(hres == S_OK, "CoInternetGetSession failed: %08lx\n", hres);
hres = IInternetSession_RegisterNameSpace(internet_session, &protocol_cf, &CLSID_HttpProtocol, httpW, 0, NULL, 0); - ok(hres == S_OK, "RegisterNameSpace failed: %08x\n", hres); + ok(hres == S_OK, "RegisterNameSpace failed: %08lx\n", hres);
IInternetSession_Release(internet_session); } @@ -3647,7 +3647,7 @@ static BOOL register_script_engine(void)
hres = CoRegisterClassObject(&CLSID_TestScript, (IUnknown *)&script_cf, CLSCTX_INPROC_SERVER, REGCLS_MULTIPLEUSE, ®id); - ok(hres == S_OK, "Could not register script engine: %08x\n", hres); + ok(hres == S_OK, "Could not register script engine: %08lx\n", hres);
return TRUE; } diff --git a/dlls/mshtml/tests/style.c b/dlls/mshtml/tests/style.c index 255dc7f7900..bc9afda7617 100644 --- a/dlls/mshtml/tests/style.c +++ b/dlls/mshtml/tests/style.c @@ -67,7 +67,7 @@ static IHTMLElement2 *_get_elem2_iface(unsigned line, IUnknown *unk) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLElement2, (void**)&elem); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement2: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement2: %08lx\n", hres); return elem; }
@@ -78,7 +78,7 @@ static IHTMLCurrentStyle2 *_get_current_style2_iface(unsigned line, IUnknown *un HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IHTMLCurrentStyle2, (void**)¤t_style2); - ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement2: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElement2: %08lx\n", hres); return current_style2; }
@@ -90,7 +90,7 @@ static void _elem_set_innerhtml(unsigned line, IHTMLElement *elem, const WCHAR *
html = SysAllocString(inner_html); hres = IHTMLElement_put_innerHTML(elem, html); - ok_(__FILE__,line)(hres == S_OK, "put_innerHTML failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_innerHTML failed: %08lx\n", hres); SysFreeString(html); }
@@ -102,11 +102,11 @@ static IHTMLElement *get_element_by_id(IHTMLDocument2 *doc, const WCHAR *id) BSTR str;
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3); - ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument3) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument3) failed: %08lx\n", hres);
str = SysAllocString(id); hres = IHTMLDocument3_getElementById(doc3, str, &result); - ok(hres == S_OK, "getElementById failed: %08x\n", hres); + ok(hres == S_OK, "getElementById failed: %08lx\n", hres); ok(result != NULL, "result == NULL\n"); SysFreeString(str);
@@ -122,11 +122,11 @@ static IHTMLCurrentStyle *_get_current_style(unsigned line, IHTMLElement *elem) HRESULT hres;
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLElement2, (void**)&elem2); - ok(hres == S_OK, "Could not get IHTMLElement2 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLElement2 iface: %08lx\n", hres);
cstyle = NULL; hres = IHTMLElement2_get_currentStyle(elem2, &cstyle); - ok(hres == S_OK, "get_currentStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_currentStyle failed: %08lx\n", hres); ok(cstyle != NULL, "cstyle = %p\n", cstyle);
IHTMLElement2_Release(elem2); @@ -141,7 +141,7 @@ static void _test_border_styles(unsigned line, IHTMLStyle *pStyle, BSTR Name)
hres = IHTMLStyle_GetIDsOfNames(pStyle, &IID_NULL, &Name, 1, LOCALE_USER_DEFAULT, &dispid); - ok_(__FILE__,line) (hres == S_OK, "GetIDsOfNames: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "GetIDsOfNames: %08lx\n", hres); if(hres == S_OK) { DISPPARAMS params = {NULL,NULL,0,0}; @@ -152,7 +152,7 @@ static void _test_border_styles(unsigned line, IHTMLStyle *pStyle, BSTR Name)
hres = IHTMLStyle_Invoke(pStyle, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYGET, ¶ms, &vDefault, NULL, NULL); - ok_(__FILE__,line) (hres == S_OK, "get_default. ret: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "get_default. ret: %08lx\n", hres);
params.cArgs = 1; params.cNamedArgs = 1; @@ -162,63 +162,63 @@ static void _test_border_styles(unsigned line, IHTMLStyle *pStyle, BSTR Name) params.rgvarg = &arg; hres = IHTMLStyle_Invoke(pStyle, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, ¶ms, &ret, NULL, NULL); - ok_(__FILE__,line) (hres == S_OK, "none. ret: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "none. ret: %08lx\n", hres); VariantClear(&arg);
V_VT(&arg) = VT_BSTR; V_BSTR(&arg) = SysAllocString(L"dotted"); hres = IHTMLStyle_Invoke(pStyle, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, ¶ms, &ret, NULL, NULL); - ok_(__FILE__,line) (hres == S_OK, "dotted. ret: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "dotted. ret: %08lx\n", hres); VariantClear(&arg);
V_VT(&arg) = VT_BSTR; V_BSTR(&arg) = SysAllocString(L"dashed"); hres = IHTMLStyle_Invoke(pStyle, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, ¶ms, &ret, NULL, NULL); - ok_(__FILE__,line) (hres == S_OK, "dashed. ret: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "dashed. ret: %08lx\n", hres); VariantClear(&arg);
V_VT(&arg) = VT_BSTR; V_BSTR(&arg) = SysAllocString(L"solid"); hres = IHTMLStyle_Invoke(pStyle, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, ¶ms, &ret, NULL, NULL); - ok_(__FILE__,line) (hres == S_OK, "solid. ret: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "solid. ret: %08lx\n", hres); VariantClear(&arg);
V_VT(&arg) = VT_BSTR; V_BSTR(&arg) = SysAllocString(L"double"); hres = IHTMLStyle_Invoke(pStyle, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, ¶ms, &ret, NULL, NULL); - ok_(__FILE__,line) (hres == S_OK, "double. ret: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "double. ret: %08lx\n", hres); VariantClear(&arg);
V_VT(&arg) = VT_BSTR; V_BSTR(&arg) = SysAllocString(L"groove"); hres = IHTMLStyle_Invoke(pStyle, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, ¶ms, &ret, NULL, NULL); - ok_(__FILE__,line) (hres == S_OK, "groove. ret: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "groove. ret: %08lx\n", hres); VariantClear(&arg);
V_VT(&arg) = VT_BSTR; V_BSTR(&arg) = SysAllocString(L"ridge"); hres = IHTMLStyle_Invoke(pStyle, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, ¶ms, &ret, NULL, NULL); - ok_(__FILE__,line) (hres == S_OK, "ridge. ret: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "ridge. ret: %08lx\n", hres); VariantClear(&arg);
V_VT(&arg) = VT_BSTR; V_BSTR(&arg) = SysAllocString(L"inset"); hres = IHTMLStyle_Invoke(pStyle, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, ¶ms, &ret, NULL, NULL); - ok_(__FILE__,line) (hres == S_OK, "inset. ret: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "inset. ret: %08lx\n", hres); VariantClear(&arg);
V_VT(&arg) = VT_BSTR; V_BSTR(&arg) = SysAllocString(L"outset"); hres = IHTMLStyle_Invoke(pStyle, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, ¶ms, &ret, NULL, NULL); - ok_(__FILE__,line) (hres == S_OK, "outset. ret: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "outset. ret: %08lx\n", hres); VariantClear(&arg);
V_VT(&arg) = VT_BSTR; @@ -228,13 +228,13 @@ static void _test_border_styles(unsigned line, IHTMLStyle *pStyle, BSTR Name) if(compat_mode < COMPAT_IE9) ok_(__FILE__,line) (FAILED(hres), "invalid value passed.\n"); else - ok_(__FILE__,line) (hres == S_OK, "invalid value returned: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "invalid value returned: %08lx\n", hres); VariantClear(&arg);
params.rgvarg = &vDefault; hres = IHTMLStyle_Invoke(pStyle, dispid, &IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, ¶ms, &ret, NULL, NULL); - ok_(__FILE__,line) (hres == S_OK, "default. ret: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "default. ret: %08lx\n", hres); VariantClear(&vDefault); } } @@ -246,7 +246,7 @@ static void _test_style_csstext(unsigned line, IHTMLStyle *style, const WCHAR *e HRESULT hres;
hres = IHTMLStyle_get_cssText(style, &text); - ok_(__FILE__,line)(hres == S_OK, "get_cssText failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_cssText failed: %08lx\n", hres); if(extext) ok_(__FILE__,line)(!lstrcmpW(text, extext), "cssText = %s\n", wine_dbgstr_w(text)); else @@ -263,7 +263,7 @@ static void _test_style_set_csstext(unsigned line, IHTMLStyle *style, const WCHA
str = SysAllocString(text); hres = IHTMLStyle_put_cssText(style, str); - ok_(__FILE__,line)(hres == S_OK, "put_cssText failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_cssText failed: %08lx\n", hres); SysFreeString(str); }
@@ -277,7 +277,7 @@ static void _test_style_remove_attribute(unsigned line, IHTMLStyle *style, const str = SysAllocString(attr); hres = IHTMLStyle_removeAttribute(style, str, 1, &b); SysFreeString(str); - ok_(__FILE__,line)(hres == S_OK, "removeAttribute failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "removeAttribute failed: %08lx\n", hres); ok_(__FILE__,line)(b == exb, "removeAttribute returned %x, expected %x\n", b, exb); }
@@ -289,7 +289,7 @@ static void _set_text_decoration(unsigned line, IHTMLStyle *style, const WCHAR *
str = SysAllocString(v); hres = IHTMLStyle_put_textDecoration(style, str); - ok_(__FILE__,line)(hres == S_OK, "put_textDecoration failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_textDecoration failed: %08lx\n", hres); SysFreeString(str); }
@@ -300,7 +300,7 @@ static void _test_text_decoration(unsigned line, IHTMLStyle *style, const WCHAR HRESULT hres;
hres = IHTMLStyle_get_textDecoration(style, &str); - ok_(__FILE__,line)(hres == S_OK, "get_textDecoration failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_textDecoration failed: %08lx\n", hres); if(exdec) ok_(__FILE__,line)(!lstrcmpW(str, exdec), "textDecoration = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exdec)); else @@ -318,36 +318,36 @@ static void test_set_csstext(IHTMLStyle *style) test_style_set_csstext(style, L"background-color: black;");
hres = IHTMLStyle_get_backgroundColor(style, &v); - ok(hres == S_OK, "get_backgroundColor: %08x\n", hres); + ok(hres == S_OK, "get_backgroundColor: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "type failed: %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"black"), "str=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_QueryInterface(style, &IID_IHTMLCSSStyleDeclaration, (void**)&css_style); ok(hres == S_OK || broken(!is_ie9plus && hres == E_NOINTERFACE), - "Could not get IHTMLCSSStyleDeclaration interface: %08x\n", hres); + "Could not get IHTMLCSSStyleDeclaration interface: %08lx\n", hres); if(FAILED(hres)) return;
str = SysAllocString(L"float: left;"); hres = IHTMLCSSStyleDeclaration_put_cssText(css_style, str); - ok(hres == S_OK, "put_cssText failed: %08x\n", hres); + ok(hres == S_OK, "put_cssText failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLCSSStyleDeclaration_get_cssFloat(css_style, &str); - ok(hres == S_OK, "get_cssFloat failed: %08x\n", hres); + ok(hres == S_OK, "get_cssFloat failed: %08lx\n", hres); ok(!lstrcmpW(str, L"left"), "cssFloat = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCSSStyleDeclaration_get_cssText(css_style, &str); - ok(hres == S_OK, "get_cssText failed: %08x\n", hres); + ok(hres == S_OK, "get_cssText failed: %08lx\n", hres); todo_wine_if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(str, compat_mode >= COMPAT_IE9 ? L"float: left;" : L"FLOAT: left"), "cssFloat = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCSSStyleDeclaration_put_cssText(css_style, NULL); - ok(hres == S_OK, "put_cssText failed: %08x\n", hres); + ok(hres == S_OK, "put_cssText failed: %08lx\n", hres);
IHTMLCSSStyleDeclaration_Release(css_style); } @@ -360,24 +360,24 @@ static void test_style2(IHTMLStyle2 *style2)
str = (void*)0xdeadbeef; hres = IHTMLStyle2_get_position(style2, &str); - ok(hres == S_OK, "get_position failed: %08x\n", hres); + ok(hres == S_OK, "get_position failed: %08lx\n", hres); ok(!str, "str != NULL\n");
str = SysAllocString(L"absolute"); hres = IHTMLStyle2_put_position(style2, str); - ok(hres == S_OK, "put_position failed: %08x\n", hres); + ok(hres == S_OK, "put_position failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLStyle2_get_position(style2, &str); - ok(hres == S_OK, "get_position failed: %08x\n", hres); + ok(hres == S_OK, "get_position failed: %08lx\n", hres); ok(!lstrcmpW(str, L"absolute"), "get_position returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
/* Test right */ V_VT(&v) = VT_EMPTY; hres = IHTMLStyle2_get_right(style2, &v); - ok(hres == S_OK, "get_top failed: %08x\n", hres); + ok(hres == S_OK, "get_top failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(right)=%d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(right) != NULL\n"); VariantClear(&v); @@ -385,12 +385,12 @@ static void test_style2(IHTMLStyle2 *style2) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"3px"); hres = IHTMLStyle2_put_right(style2, v); - ok(hres == S_OK, "put_right failed: %08x\n", hres); + ok(hres == S_OK, "put_right failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle2_get_right(style2, &v); - ok(hres == S_OK, "get_right failed: %08x\n", hres); + ok(hres == S_OK, "get_right failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"3px"), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -398,93 +398,93 @@ static void test_style2(IHTMLStyle2 *style2) /* direction */ str = (void*)0xdeadbeef; hres = IHTMLStyle2_get_direction(style2, &str); - ok(hres == S_OK, "get_direction failed: %08x\n", hres); + ok(hres == S_OK, "get_direction failed: %08lx\n", hres); ok(!str, "str = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"ltr"); hres = IHTMLStyle2_put_direction(style2, str); - ok(hres == S_OK, "put_direction failed: %08x\n", hres); + ok(hres == S_OK, "put_direction failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLStyle2_get_direction(style2, &str); - ok(hres == S_OK, "get_direction failed: %08x\n", hres); + ok(hres == S_OK, "get_direction failed: %08lx\n", hres); ok(!lstrcmpW(str, L"ltr"), "str = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
/* bottom */ V_VT(&v) = VT_EMPTY; hres = IHTMLStyle2_get_bottom(style2, &v); - ok(hres == S_OK, "get_bottom failed: %08x\n", hres); + ok(hres == S_OK, "get_bottom failed: %08lx\n", hres); test_var_bstr(&v, NULL);
V_VT(&v) = VT_I4; V_I4(&v) = 4; hres = IHTMLStyle2_put_bottom(style2, v); - ok(hres == S_OK, "put_bottom failed: %08x\n", hres); + ok(hres == S_OK, "put_bottom failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle2_get_bottom(style2, &v); - ok(hres == S_OK, "get_bottom failed: %08x\n", hres); + ok(hres == S_OK, "get_bottom failed: %08lx\n", hres); test_var_bstr(&v, compat_mode < COMPAT_IE9 ? L"4px" : NULL);
/* overflowX */ str = (void*)0xdeadbeef; hres = IHTMLStyle2_get_overflowX(style2, &str); - ok(hres == S_OK, "get_overflowX failed: %08x\n", hres); + ok(hres == S_OK, "get_overflowX failed: %08lx\n", hres); ok(!str, "overflowX = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"hidden"); hres = IHTMLStyle2_put_overflowX(style2, str); - ok(hres == S_OK, "put_overflowX failed: %08x\n", hres); + ok(hres == S_OK, "put_overflowX failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLStyle2_get_overflowX(style2, &str); - ok(hres == S_OK, "get_overflowX failed: %08x\n", hres); + ok(hres == S_OK, "get_overflowX failed: %08lx\n", hres); ok(!lstrcmpW(str, L"hidden"), "overflowX = %s\n", wine_dbgstr_w(str));
/* overflowY */ str = (void*)0xdeadbeef; hres = IHTMLStyle2_get_overflowY(style2, &str); - ok(hres == S_OK, "get_overflowY failed: %08x\n", hres); + ok(hres == S_OK, "get_overflowY failed: %08lx\n", hres); ok(!str, "overflowY = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"hidden"); hres = IHTMLStyle2_put_overflowY(style2, str); - ok(hres == S_OK, "put_overflowY failed: %08x\n", hres); + ok(hres == S_OK, "put_overflowY failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLStyle2_get_overflowY(style2, &str); - ok(hres == S_OK, "get_overflowY failed: %08x\n", hres); + ok(hres == S_OK, "get_overflowY failed: %08lx\n", hres); ok(!lstrcmpW(str, L"hidden"), "overflowX = %s\n", wine_dbgstr_w(str));
/* tableLayout */ str = SysAllocString(L"fixed"); hres = IHTMLStyle2_put_tableLayout(style2, str); - ok(hres == S_OK, "put_tableLayout failed: %08x\n", hres); + ok(hres == S_OK, "put_tableLayout failed: %08lx\n", hres); SysFreeString(str);
str = (void*)0xdeadbeef; hres = IHTMLStyle2_get_tableLayout(style2, &str); - ok(hres == S_OK, "get_tableLayout failed: %08x\n", hres); + ok(hres == S_OK, "get_tableLayout failed: %08lx\n", hres); ok(!lstrcmpW(str, L"fixed"), "tableLayout = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
/* borderCollapse */ str = (void*)0xdeadbeef; hres = IHTMLStyle2_get_borderCollapse(style2, &str); - ok(hres == S_OK, "get_borderCollapse failed: %08x\n", hres); + ok(hres == S_OK, "get_borderCollapse failed: %08lx\n", hres); ok(!str, "borderCollapse = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"separate"); hres = IHTMLStyle2_put_borderCollapse(style2, str); - ok(hres == S_OK, "put_borderCollapse failed: %08x\n", hres); + ok(hres == S_OK, "put_borderCollapse failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle2_get_borderCollapse(style2, &str); - ok(hres == S_OK, "get_borderCollapse failed: %08x\n", hres); + ok(hres == S_OK, "get_borderCollapse failed: %08lx\n", hres); ok(!lstrcmpW(str, L"separate"), "borderCollapse = %s\n", wine_dbgstr_w(str)); SysFreeString(str); } @@ -497,23 +497,23 @@ static void test_style3(IHTMLStyle3 *style3, IHTMLCSSStyleDeclaration *css_style
str = (void*)0xdeadbeef; hres = IHTMLStyle3_get_wordWrap(style3, &str); - ok(hres == S_OK, "get_wordWrap failed: %08x\n", hres); + ok(hres == S_OK, "get_wordWrap failed: %08lx\n", hres); ok(!str, "str != NULL\n");
str = SysAllocString(L"break-word"); hres = IHTMLStyle3_put_wordWrap(style3, str); - ok(hres == S_OK, "put_wordWrap failed: %08x\n", hres); + ok(hres == S_OK, "put_wordWrap failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLStyle3_get_wordWrap(style3, &str); - ok(hres == S_OK, "get_wordWrap failed: %08x\n", hres); + ok(hres == S_OK, "get_wordWrap failed: %08lx\n", hres); ok(!lstrcmpW(str, L"break-word"), "get_wordWrap returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
V_VT(&v) = VT_ERROR; hres = IHTMLStyle3_get_zoom(style3, &v); - ok(hres == S_OK, "get_zoom failed: %08x\n", hres); + ok(hres == S_OK, "get_zoom failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(zoom) = %d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(zoom) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -521,19 +521,19 @@ static void test_style3(IHTMLStyle3 *style3, IHTMLCSSStyleDeclaration *css_style V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"100%"); hres = IHTMLStyle3_put_zoom(style3, v); - ok(hres == S_OK, "put_zoom failed: %08x\n", hres); + ok(hres == S_OK, "put_zoom failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_ERROR; hres = IHTMLStyle3_get_zoom(style3, &v); - ok(hres == S_OK, "get_zoom failed: %08x\n", hres); + ok(hres == S_OK, "get_zoom failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(zoom) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"100%"), "V_BSTR(zoom) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
if(css_style) { hres = IHTMLCSSStyleDeclaration_get_zoom(css_style, &v); - ok(hres == S_OK, "get_zoom failed: %08x\n", hres); + ok(hres == S_OK, "get_zoom failed: %08lx\n", hres); test_var_bstr(&v, L"100%"); VariantClear(&v); } @@ -541,11 +541,11 @@ static void test_style3(IHTMLStyle3 *style3, IHTMLCSSStyleDeclaration *css_style V_VT(&v) = VT_I4; V_I4(&v) = 1; hres = IHTMLStyle3_put_zoom(style3, v); - ok(hres == S_OK, "put_zoom failed: %08x\n", hres); + ok(hres == S_OK, "put_zoom failed: %08lx\n", hres);
V_VT(&v) = VT_ERROR; hres = IHTMLStyle3_get_zoom(style3, &v); - ok(hres == S_OK, "get_zoom failed: %08x\n", hres); + ok(hres == S_OK, "get_zoom failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(zoom) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"1"), "V_BSTR(zoom) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -554,11 +554,11 @@ static void test_style3(IHTMLStyle3 *style3, IHTMLCSSStyleDeclaration *css_style V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"100%"); hres = IHTMLCSSStyleDeclaration_put_zoom(css_style, v); - ok(hres == S_OK, "put_zoom failed: %08x\n", hres); + ok(hres == S_OK, "put_zoom failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLCSSStyleDeclaration_get_zoom(css_style, &v); - ok(hres == S_OK, "get_zoom failed: %08x\n", hres); + ok(hres == S_OK, "get_zoom failed: %08lx\n", hres); test_var_bstr(&v, L"100%"); VariantClear(&v); } @@ -571,22 +571,22 @@ static void test_style4(IHTMLStyle4 *style4) VARIANT vdefault;
hres = IHTMLStyle4_get_minHeight(style4, &vdefault); - ok(hres == S_OK, "get_minHeight failed: %08x\n", hres); + ok(hres == S_OK, "get_minHeight failed: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"10px"); hres = IHTMLStyle4_put_minHeight(style4, v); - ok(hres == S_OK, "put_minHeight failed: %08x\n", hres); + ok(hres == S_OK, "put_minHeight failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle4_get_minHeight(style4, &v); - ok(hres == S_OK, "get_minHeight failed: %08x\n", hres); + ok(hres == S_OK, "get_minHeight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); ok( !lstrcmpW(V_BSTR(&v), L"10px"), "expect 10px got (%s)\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle4_put_minHeight(style4, vdefault); - ok(hres == S_OK, "put_minHeight failed: %08x\n", hres); + ok(hres == S_OK, "put_minHeight failed: %08lx\n", hres); VariantClear(&vdefault); }
@@ -598,16 +598,16 @@ static void test_style5(IHTMLStyle5 *style5)
/* minWidth */ hres = IHTMLStyle5_get_minWidth(style5, &vdefault); - ok(hres == S_OK, "get_minWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_minWidth failed: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"12px"); hres = IHTMLStyle5_put_minWidth(style5, v); - ok(hres == S_OK, "put_minWidth failed: %08x\n", hres); + ok(hres == S_OK, "put_minWidth failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle5_get_minWidth(style5, &v); - ok(hres == S_OK, "get_minWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_minWidth failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"12px"), "expect 12px got (%s)\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -615,11 +615,11 @@ static void test_style5(IHTMLStyle5 *style5) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"10%"); hres = IHTMLStyle5_put_minWidth(style5, v); - ok(hres == S_OK, "put_minWidth failed: %08x\n", hres); + ok(hres == S_OK, "put_minWidth failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle5_get_minWidth(style5, &v); - ok(hres == S_OK, "get_minWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_minWidth failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"10%"), "expect 10%% got (%s)\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -627,30 +627,30 @@ static void test_style5(IHTMLStyle5 *style5) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"10"); hres = IHTMLStyle5_put_minWidth(style5, v); - ok(hres == S_OK, "put_minWidth failed: %08x\n", hres); + ok(hres == S_OK, "put_minWidth failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle5_get_minWidth(style5, &v); - ok(hres == S_OK, "get_minWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_minWidth failed: %08lx\n", hres); test_var_bstr(&v, compat_mode < COMPAT_IE9 ? L"10px" : L"10%"); VariantClear(&v);
hres = IHTMLStyle5_put_minWidth(style5, vdefault); - ok(hres == S_OK, "put_minWidth failed: %08x\n", hres); + ok(hres == S_OK, "put_minWidth failed: %08lx\n", hres); VariantClear(&vdefault);
/* maxWidth */ hres = IHTMLStyle5_get_maxWidth(style5, &vdefault); - ok(hres == S_OK, "get_maxWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_maxWidth failed: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"200px"); hres = IHTMLStyle5_put_maxWidth(style5, v); - ok(hres == S_OK, "put_maxWidth failed: %08x\n", hres); + ok(hres == S_OK, "put_maxWidth failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle5_get_maxWidth(style5, &v); - ok(hres == S_OK, "get_maxWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_maxWidth failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n",V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"200px"), "expect 200px got (%s)\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -658,31 +658,31 @@ static void test_style5(IHTMLStyle5 *style5) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"70%"); hres = IHTMLStyle5_put_maxWidth(style5, v); - ok(hres == S_OK, "put_maxWidth failed: %08x\n", hres); + ok(hres == S_OK, "put_maxWidth failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle5_get_maxWidth(style5, &v); - ok(hres == S_OK, "get maxWidth failed: %08x\n", hres); + ok(hres == S_OK, "get maxWidth failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"70%"), "expect 70%% got (%s)\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle5_put_maxWidth(style5,vdefault); - ok(hres == S_OK, "put_maxWidth failed: %08x\n", hres); + ok(hres == S_OK, "put_maxWidth failed: %08lx\n", hres); VariantClear(&vdefault);
/* maxHeight */ hres = IHTMLStyle5_get_maxHeight(style5, &vdefault); - ok(hres == S_OK, "get maxHeight failed: %08x\n", hres); + ok(hres == S_OK, "get maxHeight failed: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"200px"); hres = IHTMLStyle5_put_maxHeight(style5, v); - ok(hres == S_OK, "put maxHeight failed: %08x\n", hres); + ok(hres == S_OK, "put maxHeight failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle5_get_maxHeight(style5, &v); - ok(hres == S_OK, "get maxHeight failed: %08x\n", hres); + ok(hres == S_OK, "get maxHeight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"200px"), "expect 200px got (%s)\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -690,11 +690,11 @@ static void test_style5(IHTMLStyle5 *style5) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"70%"); hres = IHTMLStyle5_put_maxHeight(style5, v); - ok(hres == S_OK, "put maxHeight failed: %08x\n", hres); + ok(hres == S_OK, "put maxHeight failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle5_get_maxHeight(style5, &v); - ok(hres == S_OK, "get_maxHeight failed: %08x\n", hres); + ok(hres == S_OK, "get_maxHeight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"70%"), "expect 70%% got (%s)\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -702,16 +702,16 @@ static void test_style5(IHTMLStyle5 *style5) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"100"); hres = IHTMLStyle5_put_maxHeight(style5, v); - ok(hres == S_OK, "put maxHeight failed: %08x\n", hres); + ok(hres == S_OK, "put maxHeight failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle5_get_maxHeight(style5, &v); - ok(hres == S_OK, "get_maxHeight failed: %08x\n", hres); + ok(hres == S_OK, "get_maxHeight failed: %08lx\n", hres); test_var_bstr(&v, compat_mode < COMPAT_IE9 ? L"100px" : L"70%"); VariantClear(&v);
hres = IHTMLStyle5_put_maxHeight(style5, vdefault); - ok(hres == S_OK, "put maxHeight failed:%08x\n", hres); + ok(hres == S_OK, "put maxHeight failed:%08lx\n", hres); VariantClear(&vdefault); }
@@ -722,7 +722,7 @@ static void test_style6(IHTMLStyle6 *style)
str = (void*)0xdeadbeef; hres = IHTMLStyle6_get_outline(style, &str); - ok(hres == S_OK, "get_outline failed: %08x\n", hres); + ok(hres == S_OK, "get_outline failed: %08lx\n", hres); if(compat_mode < COMPAT_IE9) ok(str && !*str, "outline = %s\n", wine_dbgstr_w(str)); else @@ -731,44 +731,44 @@ static void test_style6(IHTMLStyle6 *style)
str = SysAllocString(L"1px"); hres = IHTMLStyle6_put_outline(style, str); - ok(hres == S_OK, "put_outline failed: %08x\n", hres); + ok(hres == S_OK, "put_outline failed: %08lx\n", hres); SysFreeString(str);
str = (void*)0xdeadbeef; hres = IHTMLStyle6_get_outline(style, &str); - ok(hres == S_OK, "get_outline failed: %08x\n", hres); + ok(hres == S_OK, "get_outline failed: %08lx\n", hres); ok(wcsstr(str, L"1px") != NULL, "outline = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = (void*)0xdeadbeef; hres = IHTMLStyle6_get_boxSizing(style, &str); - ok(hres == S_OK, "get_boxSizing failed: %08x\n", hres); + ok(hres == S_OK, "get_boxSizing failed: %08lx\n", hres); ok(!str, "boxSizing = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"border-box"); hres = IHTMLStyle6_put_boxSizing(style, str); - ok(hres == S_OK, "put_boxSizing failed: %08x\n", hres); + ok(hres == S_OK, "put_boxSizing failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLStyle6_get_boxSizing(style, &str); - ok(hres == S_OK, "get_boxSizing failed: %08x\n", hres); + ok(hres == S_OK, "get_boxSizing failed: %08lx\n", hres); ok(!lstrcmpW(str, L"border-box"), "boxSizing = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLStyle6_get_borderSpacing(style, &str); - ok(hres == S_OK, "get_borderSpacing failed: %08x\n", hres); + ok(hres == S_OK, "get_borderSpacing failed: %08lx\n", hres); ok(!str, "borderSpacing = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"10px"); hres = IHTMLStyle6_put_borderSpacing(style, str); - ok(hres == S_OK, "put_borderSpacing failed: %08x\n", hres); + ok(hres == S_OK, "put_borderSpacing failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLStyle6_get_borderSpacing(style, &str); - ok(hres == S_OK, "get_borderSpacing failed: %08x\n", hres); + ok(hres == S_OK, "get_borderSpacing failed: %08lx\n", hres); ok(!lstrcmpW(str, L"10px"), "borderSpacing = %s\n", wine_dbgstr_w(str)); SysFreeString(str); } @@ -780,51 +780,51 @@ static void test_css_style_declaration(IHTMLCSSStyleDeclaration *css_style) HRESULT hres;
hres = IHTMLCSSStyleDeclaration_get_backgroundClip(css_style, &str); - ok(hres == S_OK, "get_backgroundClip failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundClip failed: %08lx\n", hres); ok(!str, "backgroundClip = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"border-box"); hres = IHTMLCSSStyleDeclaration_put_backgroundClip(css_style, str); - ok(hres == S_OK, "put_backgroundClip failed: %08x\n", hres); + ok(hres == S_OK, "put_backgroundClip failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLCSSStyleDeclaration_get_backgroundClip(css_style, &str); - ok(hres == S_OK, "get_backgroundClip failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundClip failed: %08lx\n", hres); ok(!lstrcmpW(str, L"border-box"), "backgroundClip = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCSSStyleDeclaration_get_opacity(css_style, &v); - ok(hres == S_OK, "get_opacity failed: %08x\n", hres); + ok(hres == S_OK, "get_opacity failed: %08lx\n", hres); test_var_bstr(&v, NULL);
V_VT(&v) = VT_I4; V_I4(&v) = 0; hres = IHTMLCSSStyleDeclaration_put_opacity(css_style, v); - ok(hres == S_OK, "put_opacity failed: %08x\n", hres); + ok(hres == S_OK, "put_opacity failed: %08lx\n", hres);
hres = IHTMLCSSStyleDeclaration_get_opacity(css_style, &v); - ok(hres == S_OK, "get_opacity failed: %08x\n", hres); + ok(hres == S_OK, "get_opacity failed: %08lx\n", hres); test_var_bstr(&v, L"0"); VariantClear(&v);
V_VT(&v) = VT_R8; V_R8(&v) = 0.5; hres = IHTMLCSSStyleDeclaration_put_opacity(css_style, v); - ok(hres == S_OK, "put_opacity failed: %08x\n", hres); + ok(hres == S_OK, "put_opacity failed: %08lx\n", hres);
hres = IHTMLCSSStyleDeclaration_get_opacity(css_style, &v); - ok(hres == S_OK, "get_opacity failed: %08x\n", hres); + ok(hres == S_OK, "get_opacity failed: %08lx\n", hres); test_var_bstr(&v, L"0.5"); VariantClear(&v);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"1"); hres = IHTMLCSSStyleDeclaration_put_opacity(css_style, v); - ok(hres == S_OK, "put_opacity failed: %08x\n", hres); + ok(hres == S_OK, "put_opacity failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLCSSStyleDeclaration_get_opacity(css_style, &v); - ok(hres == S_OK, "get_opacity failed: %08x\n", hres); + ok(hres == S_OK, "get_opacity failed: %08lx\n", hres); test_var_bstr(&v, L"1"); VariantClear(&v); } @@ -837,74 +837,74 @@ static void test_css_style_declaration2(IHTMLCSSStyleDeclaration2 *css_style)
str = SysAllocString(L"translate(30px, 20px)"); hres = IHTMLCSSStyleDeclaration2_put_transform(css_style, str); - ok(hres == S_OK, "put_transform failed: %08x\n", hres); + ok(hres == S_OK, "put_transform failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration2_get_transform(css_style, &str); - ok(hres == S_OK, "get_transform failed: %08x\n", hres); + ok(hres == S_OK, "get_transform failed: %08lx\n", hres); ok(!lstrcmpW(str, L"translate(30px, 20px)"), "transform = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"none"); hres = IHTMLCSSStyleDeclaration2_put_transform(css_style, str); - ok(hres == S_OK, "put_transform failed: %08x\n", hres); + ok(hres == S_OK, "put_transform failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration2_get_transform(css_style, &str); - ok(hres == S_OK, "get_transform failed: %08x\n", hres); + ok(hres == S_OK, "get_transform failed: %08lx\n", hres); ok(!lstrcmpW(str, L"none"), "transform = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration2_get_animationName(css_style, &str); - ok(hres == S_OK, "get_animationName failed: %08x\n", hres); + ok(hres == S_OK, "get_animationName failed: %08lx\n", hres); ok(!str, "animationName = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"none"); hres = IHTMLCSSStyleDeclaration2_put_animationName(css_style, str); - ok(hres == S_OK, "put_animationName failed: %08x\n", hres); + ok(hres == S_OK, "put_animationName failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration2_get_animationName(css_style, &str); - ok(hres == S_OK, "get_animationName failed: %08x\n", hres); + ok(hres == S_OK, "get_animationName failed: %08lx\n", hres); ok(!lstrcmpW(str, L"none"), "animationName = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration2_get_transition(css_style, &str); - ok(hres == S_OK, "get_transition failed: %08x\n", hres); + ok(hres == S_OK, "get_transition failed: %08lx\n", hres); ok(!str, "transition = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"marigin-right 1s ease-out"); hres = IHTMLCSSStyleDeclaration2_put_transition(css_style, str); - ok(hres == S_OK, "put_transition failed: %08x\n", hres); + ok(hres == S_OK, "put_transition failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration2_get_transition(css_style, &str); - ok(hres == S_OK, "get_transition failed: %08x\n", hres); + ok(hres == S_OK, "get_transition failed: %08lx\n", hres); ok(!wcsncmp(str, L"marigin-right 1s", wcslen(L"marigin-right 1s")), "transition = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_columnCount(css_style, &v); - ok(hres == S_OK, "get_columnCount failed: %08x\n", hres); + ok(hres == S_OK, "get_columnCount failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR && !V_BSTR(&v), "columnCount = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
V_VT(&v) = VT_I4; V_I4(&v) = 2; hres = IHTMLCSSStyleDeclaration2_put_columnCount(css_style, v); - ok(hres == S_OK, "put_columnCount failed: %08x\n", hres); + ok(hres == S_OK, "put_columnCount failed: %08lx\n", hres);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_columnCount(css_style, &v); - ok(hres == S_OK, "get_columnCount failed: %08x\n", hres); + ok(hres == S_OK, "get_columnCount failed: %08lx\n", hres); todo_wine ok(V_VT(&v) == VT_BSTR && V_BSTR(&v) && !lstrcmpW(V_BSTR(&v), L"2"), "columnCount = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v); @@ -912,229 +912,229 @@ static void test_css_style_declaration2(IHTMLCSSStyleDeclaration2 *css_style) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"auto"); hres = IHTMLCSSStyleDeclaration2_put_columnCount(css_style, v); - ok(hres == S_OK, "put_columnCount failed: %08x\n", hres); + ok(hres == S_OK, "put_columnCount failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_columnCount(css_style, &v); - ok(hres == S_OK, "get_columnCount failed: %08x\n", hres); + ok(hres == S_OK, "get_columnCount failed: %08lx\n", hres); todo_wine ok(V_VT(&v) == VT_BSTR && V_BSTR(&v) && !lstrcmpW(V_BSTR(&v), L"auto"), "columnCount = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_columnWidth(css_style, &v); - ok(hres == S_OK, "get_columnWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_columnWidth failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR && !V_BSTR(&v), "columnWidth = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
V_VT(&v) = VT_I4; V_I4(&v) = 20; hres = IHTMLCSSStyleDeclaration2_put_columnWidth(css_style, v); - ok(hres == S_OK, "put_columnWidth failed: %08x\n", hres); + ok(hres == S_OK, "put_columnWidth failed: %08lx\n", hres);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_columnWidth(css_style, &v); - ok(hres == S_OK, "get_columnWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_columnWidth failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR && !V_BSTR(&v), "columnWidth = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"20px"); hres = IHTMLCSSStyleDeclaration2_put_columnWidth(css_style, v); - ok(hres == S_OK, "put_columnWidth failed: %08x\n", hres); + ok(hres == S_OK, "put_columnWidth failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_columnWidth(css_style, &v); - ok(hres == S_OK, "get_columnWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_columnWidth failed: %08lx\n", hres); todo_wine ok(V_VT(&v) == VT_BSTR && V_BSTR(&v) && !lstrcmpW(V_BSTR(&v), L"20px"), "columnWidth = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_columnGap(css_style, &v); - ok(hres == S_OK, "get_columnGap failed: %08x\n", hres); + ok(hres == S_OK, "get_columnGap failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR && !V_BSTR(&v), "columnGap = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
V_VT(&v) = VT_I4; V_I4(&v) = 20; hres = IHTMLCSSStyleDeclaration2_put_columnGap(css_style, v); - ok(hres == S_OK, "put_columnGap failed: %08x\n", hres); + ok(hres == S_OK, "put_columnGap failed: %08lx\n", hres);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_columnGap(css_style, &v); - ok(hres == S_OK, "get_columnGap failed: %08x\n", hres); + ok(hres == S_OK, "get_columnGap failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR && !V_BSTR(&v), "columnGap = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"20px"); hres = IHTMLCSSStyleDeclaration2_put_columnGap(css_style, v); - ok(hres == S_OK, "put_columnGap failed: %08x\n", hres); + ok(hres == S_OK, "put_columnGap failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_columnGap(css_style, &v); - ok(hres == S_OK, "get_columnGap failed: %08x\n", hres); + ok(hres == S_OK, "get_columnGap failed: %08lx\n", hres); todo_wine ok(V_VT(&v) == VT_BSTR && V_BSTR(&v) && !lstrcmpW(V_BSTR(&v), L"20px"), "columnGap = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
str = NULL; hres = IHTMLCSSStyleDeclaration2_get_columnFill(css_style, &str); - ok(hres == S_OK, "get_columnFill failed: %08x\n", hres); + ok(hres == S_OK, "get_columnFill failed: %08lx\n", hres); ok(!str, "columnFill = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"auto"); hres = IHTMLCSSStyleDeclaration2_put_columnFill(css_style, str); - ok(hres == S_OK, "put_columnFill failed: %08x\n", hres); + ok(hres == S_OK, "put_columnFill failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration2_get_columnFill(css_style, &str); - ok(hres == S_OK, "get_columnFill failed: %08x\n", hres); + ok(hres == S_OK, "get_columnFill failed: %08lx\n", hres); todo_wine ok(str && !lstrcmpW(str, L"auto"), "columnFill = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration2_get_columnSpan(css_style, &str); - ok(hres == S_OK, "get_columnSpan failed: %08x\n", hres); + ok(hres == S_OK, "get_columnSpan failed: %08lx\n", hres); ok(!str, "columnSpan = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"all"); hres = IHTMLCSSStyleDeclaration2_put_columnSpan(css_style, str); - ok(hres == S_OK, "put_columnSpan failed: %08x\n", hres); + ok(hres == S_OK, "put_columnSpan failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration2_get_columnSpan(css_style, &str); - ok(hres == S_OK, "get_columnSpan failed: %08x\n", hres); + ok(hres == S_OK, "get_columnSpan failed: %08lx\n", hres); todo_wine ok(str && !lstrcmpW(str, L"all"), "columnSpan = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_columnRuleColor(css_style, &v); - ok(hres == S_OK, "get_columnRuleColor failed: %08x\n", hres); + ok(hres == S_OK, "get_columnRuleColor failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR && !V_BSTR(&v), "columnRuleColor = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"red"); hres = IHTMLCSSStyleDeclaration2_put_columnRuleColor(css_style, v); - ok(hres == S_OK, "put_columnRuleColor failed: %08x\n", hres); + ok(hres == S_OK, "put_columnRuleColor failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_columnRuleColor(css_style, &v); - ok(hres == S_OK, "get_columnRuleColor failed: %08x\n", hres); + ok(hres == S_OK, "get_columnRuleColor failed: %08lx\n", hres); todo_wine ok(V_VT(&v) == VT_BSTR && V_BSTR(&v) && !lstrcmpW(V_BSTR(&v), L"red"), "columnRuleColor = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
str = NULL; hres = IHTMLCSSStyleDeclaration2_get_columnRuleStyle(css_style, &str); - ok(hres == S_OK, "get_columnRuleStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_columnRuleStyle failed: %08lx\n", hres); ok(!str, "columnRuleStyle = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"solid"); hres = IHTMLCSSStyleDeclaration2_put_columnRuleStyle(css_style, str); - ok(hres == S_OK, "put_columnRuleStyle failed: %08x\n", hres); + ok(hres == S_OK, "put_columnRuleStyle failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration2_get_columnRuleStyle(css_style, &str); - ok(hres == S_OK, "get_columnRuleStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_columnRuleStyle failed: %08lx\n", hres); todo_wine ok(str && !lstrcmpW(str, L"solid"), "columnRuleStyle = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_columnRuleWidth(css_style, &v); - ok(hres == S_OK, "get_columnRuleWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_columnRuleWidth failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR && !V_BSTR(&v), "columnRuleWidth = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"10px"); hres = IHTMLCSSStyleDeclaration2_put_columnRuleWidth(css_style, v); - ok(hres == S_OK, "put_columnRuleWidth failed: %08x\n", hres); + ok(hres == S_OK, "put_columnRuleWidth failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_columnRuleWidth(css_style, &v); - ok(hres == S_OK, "get_columnRuleWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_columnRuleWidth failed: %08lx\n", hres); todo_wine ok(V_VT(&v) == VT_BSTR && V_BSTR(&v) && !lstrcmpW(V_BSTR(&v), L"10px"), "columnRuleWidth = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
str = NULL; hres = IHTMLCSSStyleDeclaration2_get_columnRule(css_style, &str); - ok(hres == S_OK, "get_columnRule failed: %08x\n", hres); + ok(hres == S_OK, "get_columnRule failed: %08lx\n", hres); todo_wine ok(str && !lstrcmpW(str, L"10px solid red"), "columnRule = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCSSStyleDeclaration2_put_columnRule(css_style, NULL); - ok(hres == S_OK, "put_columnRule failed: %08x\n", hres); + ok(hres == S_OK, "put_columnRule failed: %08lx\n", hres);
str = (void*)0xdeadbeef; hres = IHTMLCSSStyleDeclaration2_get_columnRule(css_style, &str); - ok(hres == S_OK, "get_columnRule failed: %08x\n", hres); + ok(hres == S_OK, "get_columnRule failed: %08lx\n", hres); ok(!str, "columnRule = %s\n", wine_dbgstr_w(str));
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_perspective(css_style, &v); - ok(hres == S_OK, "get_perspective failed: %08x\n", hres); + ok(hres == S_OK, "get_perspective failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR && !V_BSTR(&v), "perspective = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"100px"); hres = IHTMLCSSStyleDeclaration2_put_perspective(css_style, v); - ok(hres == S_OK, "put_perspective failed: %08x\n", hres); + ok(hres == S_OK, "put_perspective failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_ERROR; hres = IHTMLCSSStyleDeclaration2_get_perspective(css_style, &v); - ok(hres == S_OK, "get_perspective failed: %08x\n", hres); + ok(hres == S_OK, "get_perspective failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR && V_BSTR(&v) && !lstrcmpW(V_BSTR(&v), L"100px"), "perspective = %s\n", wine_dbgstr_variant(&v)); VariantClear(&v);
/* animation property */ hres = IHTMLCSSStyleDeclaration2_put_animation(css_style, NULL); - ok(hres == S_OK, "put_animation failed: %08x\n", hres); + ok(hres == S_OK, "put_animation failed: %08lx\n", hres);
str = (void*)0xdeadbeef; hres = IHTMLCSSStyleDeclaration2_get_animation(css_style, &str); - ok(hres == S_OK, "get_animation failed: %08x\n", hres); + ok(hres == S_OK, "get_animation failed: %08lx\n", hres); ok(!str, "animation = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"test"); hres = IHTMLCSSStyleDeclaration2_put_animation(css_style, str); - ok(hres == S_OK, "put_animation failed: %08x\n", hres); + ok(hres == S_OK, "put_animation failed: %08lx\n", hres); SysFreeString(str);
str = (void*)0xdeadbeef; hres = IHTMLCSSStyleDeclaration2_get_animation(css_style, &str); - ok(hres == S_OK, "get_animation failed: %08x\n", hres); + ok(hres == S_OK, "get_animation failed: %08lx\n", hres); todo_wine ok(!lstrcmpW(str, L"test"), "animation = %s\n", wine_dbgstr_w(str));
str = (void*)0xdeadbeef; hres = IHTMLCSSStyleDeclaration2_get_animationName(css_style, &str); - ok(hres == S_OK, "get_animationName failed: %08x\n", hres); + ok(hres == S_OK, "get_animationName failed: %08lx\n", hres); ok(!lstrcmpW(str, L"test"), "animationName = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"test"); hres = IHTMLCSSStyleDeclaration2_put_animation(css_style, NULL); - ok(hres == S_OK, "put_animation failed: %08x\n", hres); + ok(hres == S_OK, "put_animation failed: %08lx\n", hres); SysFreeString(str); }
@@ -1159,34 +1159,34 @@ static void test_body_style(IHTMLStyle *style)
hres = IHTMLStyle_QueryInterface(style, &IID_IHTMLCSSStyleDeclaration, (void**)&css_style); ok(hres == S_OK || broken(!is_ie9plus && hres == E_NOINTERFACE), - "Could not get IHTMLCSSStyleDeclaration interface: %08x\n", hres); + "Could not get IHTMLCSSStyleDeclaration interface: %08lx\n", hres);
if(css_style) { hres = IHTMLStyle_QueryInterface(style, &IID_IHTMLCSSStyleDeclaration2, (void**)&css_style2); ok(hres == S_OK || broken(hres == E_NOINTERFACE), - "Could not get IHTMLCSSStyleDeclaration2 interface: %08x\n", hres); + "Could not get IHTMLCSSStyleDeclaration2 interface: %08lx\n", hres); }
test_style_csstext(style, NULL);
hres = IHTMLStyle_get_position(style, &str); - ok(hres == S_OK, "get_position failed: %08x\n", hres); + ok(hres == S_OK, "get_position failed: %08lx\n", hres); ok(!str, "str=%s\n", wine_dbgstr_w(str));
V_VT(&v) = VT_NULL; hres = IHTMLStyle_get_marginRight(style, &v); - ok(hres == S_OK, "get_marginRight failed: %08x\n", hres); + ok(hres == S_OK, "get_marginRight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginRight) = %d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(marginRight) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
V_VT(&v) = VT_I4; V_I4(&v) = 6; hres = IHTMLStyle_put_marginRight(style, v); - ok(hres == S_OK, "put_marginRight failed: %08x\n", hres); + ok(hres == S_OK, "put_marginRight failed: %08lx\n", hres);
V_VT(&v) = VT_NULL; hres = IHTMLStyle_get_marginRight(style, &v); - ok(hres == S_OK, "get_marginRight failed: %08x\n", hres); + ok(hres == S_OK, "get_marginRight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginRight) = %d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"6px"), "V_BSTR(marginRight) = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -1197,11 +1197,11 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"5"); hres = IHTMLStyle_put_marginRight(style, v); - ok(hres == S_OK, "put_marginRight failed: %08x\n", hres); + ok(hres == S_OK, "put_marginRight failed: %08lx\n", hres);
V_VT(&v) = VT_NULL; hres = IHTMLStyle_get_marginRight(style, &v); - ok(hres == S_OK, "get_marginRight failed: %08x\n", hres); + ok(hres == S_OK, "get_marginRight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginRight) = %d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"5px"), "V_BSTR(marginRight) = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -1212,7 +1212,7 @@ static void test_body_style(IHTMLStyle *style) if(css_style) { V_VT(&v) = VT_NULL; hres = IHTMLCSSStyleDeclaration_get_marginRight(css_style, &v); - ok(hres == S_OK, "get_marginRight failed: %08x\n", hres); + ok(hres == S_OK, "get_marginRight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginRight) = %d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"5px"), "V_BSTR(marginRight) = %s\n", @@ -1223,11 +1223,11 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_I4; V_I4(&v) = 7; hres = IHTMLCSSStyleDeclaration_put_marginRight(css_style, v); - ok(hres == S_OK, "put_marginRight failed: %08x\n", hres); + ok(hres == S_OK, "put_marginRight failed: %08lx\n", hres);
V_VT(&v) = VT_NULL; hres = IHTMLCSSStyleDeclaration_get_marginRight(css_style, &v); - ok(hres == S_OK, "get_marginRight failed: %08x\n", hres); + ok(hres == S_OK, "get_marginRight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginRight) = %d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"7px"), "V_BSTR(marginRight) = %s\n", @@ -1238,12 +1238,12 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"8"); hres = IHTMLCSSStyleDeclaration_put_marginRight(css_style, v); - ok(hres == S_OK, "put_marginRight failed: %08x\n", hres); + ok(hres == S_OK, "put_marginRight failed: %08lx\n", hres); SysFreeString(V_BSTR(&v));
V_VT(&v) = VT_NULL; hres = IHTMLCSSStyleDeclaration_get_marginRight(css_style, &v); - ok(hres == S_OK, "get_marginRight failed: %08x\n", hres); + ok(hres == S_OK, "get_marginRight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginRight) = %d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"8px"), "V_BSTR(marginRight) = %s\n", @@ -1254,12 +1254,12 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"9px"); hres = IHTMLCSSStyleDeclaration_put_marginRight(css_style, v); - ok(hres == S_OK, "put_marginRight failed: %08x\n", hres); + ok(hres == S_OK, "put_marginRight failed: %08lx\n", hres); SysFreeString(V_BSTR(&v));
V_VT(&v) = VT_NULL; hres = IHTMLCSSStyleDeclaration_get_marginRight(css_style, &v); - ok(hres == S_OK, "get_marginRight failed: %08x\n", hres); + ok(hres == S_OK, "get_marginRight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginRight) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"9px"), "V_BSTR(marginRight) = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -1268,18 +1268,18 @@ static void test_body_style(IHTMLStyle *style)
V_VT(&v) = VT_NULL; hres = IHTMLStyle_get_marginBottom(style, &v); - ok(hres == S_OK, "get_marginBottom failed: %08x\n", hres); + ok(hres == S_OK, "get_marginBottom failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginBottom) = %d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(marginBottom) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
V_VT(&v) = VT_I4; V_I4(&v) = 6; hres = IHTMLStyle_put_marginBottom(style, v); - ok(hres == S_OK, "put_marginBottom failed: %08x\n", hres); + ok(hres == S_OK, "put_marginBottom failed: %08lx\n", hres);
V_VT(&v) = VT_NULL; hres = IHTMLStyle_get_marginBottom(style, &v); - ok(hres == S_OK, "get_marginBottom failed: %08x\n", hres); + ok(hres == S_OK, "get_marginBottom failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginBottom) = %d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"6px"), "V_BSTR(marginBottom) = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -1288,18 +1288,18 @@ static void test_body_style(IHTMLStyle *style)
V_VT(&v) = VT_NULL; hres = IHTMLStyle_get_marginLeft(style, &v); - ok(hres == S_OK, "get_marginLeft failed: %08x\n", hres); + ok(hres == S_OK, "get_marginLeft failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginLeft) = %d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(marginLeft) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
V_VT(&v) = VT_I4; V_I4(&v) = 6; hres = IHTMLStyle_put_marginLeft(style, v); - ok(hres == S_OK, "put_marginLeft failed: %08x\n", hres); + ok(hres == S_OK, "put_marginLeft failed: %08lx\n", hres);
V_VT(&v) = VT_NULL; hres = IHTMLStyle_get_marginLeft(style, &v); - ok(hres == S_OK, "get_marginLeft failed: %08x\n", hres); + ok(hres == S_OK, "get_marginLeft failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginLeft) = %d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"6px"), "V_BSTR(marginLeft) = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -1308,158 +1308,158 @@ static void test_body_style(IHTMLStyle *style)
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_fontFamily(style, &str); - ok(hres == S_OK, "get_fontFamily failed: %08x\n", hres); + ok(hres == S_OK, "get_fontFamily failed: %08lx\n", hres); ok(!str, "fontFamily = %s\n", wine_dbgstr_w(str));
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_fontWeight(style, &str); - ok(hres == S_OK, "get_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "get_fontWeight failed: %08lx\n", hres); ok(!str, "fontWeight = %s\n", wine_dbgstr_w(str));
hres = IHTMLStyle_get_fontWeight(style, &sDefault); - ok(hres == S_OK, "get_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "get_fontWeight failed: %08lx\n", hres);
str = SysAllocString(L"test"); hres = IHTMLStyle_put_fontWeight(style, str); ok(hres == (compat_mode < COMPAT_IE9 ? E_INVALIDARG : S_OK), - "put_fontWeight failed: %08x\n", hres); + "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_fontWeight(style, &str); - ok(hres == S_OK, "get_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "get_fontWeight failed: %08lx\n", hres); ok(!str, "fontWeight = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"bold"); hres = IHTMLStyle_put_fontWeight(style, str); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"bolder"); hres = IHTMLStyle_put_fontWeight(style, str); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"lighter"); hres = IHTMLStyle_put_fontWeight(style, str); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"100"); hres = IHTMLStyle_put_fontWeight(style, str); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"200"); hres = IHTMLStyle_put_fontWeight(style, str); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"300"); hres = IHTMLStyle_put_fontWeight(style, str); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"400"); hres = IHTMLStyle_put_fontWeight(style, str); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"500"); hres = IHTMLStyle_put_fontWeight(style, str); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"600"); hres = IHTMLStyle_put_fontWeight(style, str); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"700"); hres = IHTMLStyle_put_fontWeight(style, str); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"800"); hres = IHTMLStyle_put_fontWeight(style, str); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"900"); hres = IHTMLStyle_put_fontWeight(style, str); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_fontWeight(style, &str); - ok(hres == S_OK, "get_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "get_fontWeight failed: %08lx\n", hres); ok(!lstrcmpW(str, L"900"), "str != style900\n"); SysFreeString(str);
str = SysAllocString(L""); hres = IHTMLStyle_put_fontWeight(style, str); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_fontWeight(style, &str); - ok(hres == S_OK, "get_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "get_fontWeight failed: %08lx\n", hres); ok(!str, "str != NULL\n"); SysFreeString(str);
hres = IHTMLStyle_put_fontWeight(style, sDefault); - ok(hres == S_OK, "put_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "put_fontWeight failed: %08lx\n", hres); SysFreeString(sDefault);
/* font Variant */ hres = IHTMLStyle_get_fontVariant(style, NULL); - ok(hres == E_INVALIDARG, "get_fontVariant failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "get_fontVariant failed: %08lx\n", hres);
hres = IHTMLStyle_get_fontVariant(style, &sDefault); - ok(hres == S_OK, "get_fontVariant failed: %08x\n", hres); + ok(hres == S_OK, "get_fontVariant failed: %08lx\n", hres);
str = SysAllocString(L"test"); hres = IHTMLStyle_put_fontVariant(style, str); ok(hres == (compat_mode < COMPAT_IE9 ? E_INVALIDARG : S_OK), - "fontVariant failed: %08x\n", hres); + "fontVariant failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"small-caps"); hres = IHTMLStyle_put_fontVariant(style, str); - ok(hres == S_OK, "fontVariant failed: %08x\n", hres); + ok(hres == S_OK, "fontVariant failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"normal"); hres = IHTMLStyle_put_fontVariant(style, str); - ok(hres == S_OK, "fontVariant failed: %08x\n", hres); + ok(hres == S_OK, "fontVariant failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_put_fontVariant(style, sDefault); - ok(hres == S_OK, "fontVariant failed: %08x\n", hres); + ok(hres == S_OK, "fontVariant failed: %08lx\n", hres); SysFreeString(sDefault);
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_display(style, &str); - ok(hres == S_OK, "get_display failed: %08x\n", hres); + ok(hres == S_OK, "get_display failed: %08lx\n", hres); ok(!str, "display = %s\n", wine_dbgstr_w(str));
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_visibility(style, &str); - ok(hres == S_OK, "get_visibility failed: %08x\n", hres); + ok(hres == S_OK, "get_visibility failed: %08lx\n", hres); ok(!str, "visibility = %s\n", wine_dbgstr_w(str));
V_VT(&v) = VT_NULL; hres = IHTMLStyle_get_fontSize(style, &v); - ok(hres == S_OK, "get_fontSize failed: %08x\n", hres); + ok(hres == S_OK, "get_fontSize failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(fontSize) = %d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(fontSize) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
V_VT(&v) = VT_I4; V_I4(&v) = 12; hres = IHTMLStyle_put_fontSize(style, v); - ok(hres == S_OK, "put_fontSize failed: %08x\n", hres); + ok(hres == S_OK, "put_fontSize failed: %08lx\n", hres);
V_VT(&v) = VT_NULL; hres = IHTMLStyle_get_fontSize(style, &v); - ok(hres == S_OK, "get_fontSize failed: %08x\n", hres); + ok(hres == S_OK, "get_fontSize failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(fontSize) = %d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"12px"), "fontSize = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -1468,18 +1468,18 @@ static void test_body_style(IHTMLStyle *style)
V_VT(&v) = VT_NULL; hres = IHTMLStyle_get_color(style, &v); - ok(hres == S_OK, "get_color failed: %08x\n", hres); + ok(hres == S_OK, "get_color failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(color) = %d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(color) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
V_VT(&v) = VT_I4; V_I4(&v) = 0xfdfd; hres = IHTMLStyle_put_color(style, v); - ok(hres == S_OK, "put_color failed: %08x\n", hres); + ok(hres == S_OK, "put_color failed: %08lx\n", hres);
V_VT(&v) = VT_NULL; hres = IHTMLStyle_get_color(style, &v); - ok(hres == S_OK, "get_color failed: %08x\n", hres); + ok(hres == S_OK, "get_color failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(color) = %d\n", V_VT(&v)); todo_wine ok(!lstrcmpW(V_BSTR(&v), L"#00fdfd"), "V_BSTR(color) = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -1487,107 +1487,107 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_I4; V_I4(&v) = 3; hres = IHTMLStyle_put_lineHeight(style, v); - ok(hres == S_OK, "put_lineHeight failed: %08x\n", hres); + ok(hres == S_OK, "put_lineHeight failed: %08lx\n", hres);
hres = IHTMLStyle_get_lineHeight(style, &v); - ok(hres == S_OK, "get_lineHeight failed: %08x\n", hres); + ok(hres == S_OK, "get_lineHeight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(lineHeight) = %d, expect VT_BSTR\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"3"), "V_BSTR(lineHeight) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"300%"); hres = IHTMLStyle_put_lineHeight(style, v); - ok(hres == S_OK, "put_lineHeight failed: %08x\n", hres); + ok(hres == S_OK, "put_lineHeight failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_lineHeight(style, &v); - ok(hres == S_OK, "get_lineHeight failed: %08x\n", hres); + ok(hres == S_OK, "get_lineHeight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(lineHeight) = %d, expect VT_BSTR\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"300%"), "V_BSTR(lineHeight) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
b = 0xfefe; hres = IHTMLStyle_get_textDecorationUnderline(style, &b); - ok(hres == S_OK, "get_textDecorationUnderline failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecorationUnderline failed: %08lx\n", hres); ok(b == VARIANT_FALSE, "textDecorationUnderline = %x\n", b);
hres = IHTMLStyle_put_textDecorationUnderline(style, VARIANT_TRUE); - ok(hres == S_OK, "put_textDecorationUnderline failed: %08x\n", hres); + ok(hres == S_OK, "put_textDecorationUnderline failed: %08lx\n", hres);
hres = IHTMLStyle_get_textDecorationUnderline(style, &b); - ok(hres == S_OK, "get_textDecorationUnderline failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecorationUnderline failed: %08lx\n", hres); ok(b == VARIANT_TRUE, "textDecorationUnderline = %x\n", b);
hres = IHTMLStyle_put_textDecorationUnderline(style, VARIANT_FALSE); - ok(hres == S_OK, "put_textDecorationUnderline failed: %08x\n", hres); + ok(hres == S_OK, "put_textDecorationUnderline failed: %08lx\n", hres);
b = 0xfefe; hres = IHTMLStyle_get_textDecorationLineThrough(style, &b); - ok(hres == S_OK, "get_textDecorationLineThrough failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecorationLineThrough failed: %08lx\n", hres); ok(b == VARIANT_FALSE, "textDecorationLineThrough = %x\n", b);
hres = IHTMLStyle_put_textDecorationLineThrough(style, VARIANT_TRUE); - ok(hres == S_OK, "put_textDecorationLineThrough failed: %08x\n", hres); + ok(hres == S_OK, "put_textDecorationLineThrough failed: %08lx\n", hres);
hres = IHTMLStyle_get_textDecorationLineThrough(style, &b); - ok(hres == S_OK, "get_textDecorationLineThrough failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecorationLineThrough failed: %08lx\n", hres); ok(b == VARIANT_TRUE, "textDecorationLineThrough = %x\n", b);
hres = IHTMLStyle_put_textDecorationLineThrough(style, VARIANT_FALSE); - ok(hres == S_OK, "put_textDecorationLineThrough failed: %08x\n", hres); + ok(hres == S_OK, "put_textDecorationLineThrough failed: %08lx\n", hres);
b = 0xfefe; hres = IHTMLStyle_get_textDecorationNone(style, &b); - ok(hres == S_OK, "get_textDecorationNone failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecorationNone failed: %08lx\n", hres); ok(b == VARIANT_FALSE, "textDecorationNone = %x\n", b);
hres = IHTMLStyle_put_textDecorationNone(style, VARIANT_TRUE); - ok(hres == S_OK, "put_textDecorationNone failed: %08x\n", hres); + ok(hres == S_OK, "put_textDecorationNone failed: %08lx\n", hres);
hres = IHTMLStyle_get_textDecorationNone(style, &b); - ok(hres == S_OK, "get_textDecorationNone failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecorationNone failed: %08lx\n", hres); ok(b == VARIANT_TRUE, "textDecorationNone = %x\n", b);
hres = IHTMLStyle_put_textDecorationNone(style, VARIANT_FALSE); - ok(hres == S_OK, "put_textDecorationNone failed: %08x\n", hres); + ok(hres == S_OK, "put_textDecorationNone failed: %08lx\n", hres);
b = 0xfefe; hres = IHTMLStyle_get_textDecorationOverline(style, &b); - ok(hres == S_OK, "get_textDecorationOverline failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecorationOverline failed: %08lx\n", hres); ok(b == VARIANT_FALSE, "textDecorationOverline = %x\n", b);
hres = IHTMLStyle_put_textDecorationOverline(style, VARIANT_TRUE); - ok(hres == S_OK, "put_textDecorationOverline failed: %08x\n", hres); + ok(hres == S_OK, "put_textDecorationOverline failed: %08lx\n", hres);
hres = IHTMLStyle_get_textDecorationOverline(style, &b); - ok(hres == S_OK, "get_textDecorationOverline failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecorationOverline failed: %08lx\n", hres); ok(b == VARIANT_TRUE, "textDecorationOverline = %x\n", b);
hres = IHTMLStyle_put_textDecorationOverline(style, VARIANT_FALSE); - ok(hres == S_OK, "put_textDecorationOverline failed: %08x\n", hres); + ok(hres == S_OK, "put_textDecorationOverline failed: %08lx\n", hres);
b = 0xfefe; hres = IHTMLStyle_get_textDecorationBlink(style, &b); - ok(hres == S_OK, "get_textDecorationBlink failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecorationBlink failed: %08lx\n", hres); ok(b == VARIANT_FALSE, "textDecorationBlink = %x\n", b);
hres = IHTMLStyle_put_textDecorationBlink(style, VARIANT_TRUE); - ok(hres == S_OK, "put_textDecorationBlink failed: %08x\n", hres); + ok(hres == S_OK, "put_textDecorationBlink failed: %08lx\n", hres);
hres = IHTMLStyle_get_textDecorationBlink(style, &b); - ok(hres == S_OK, "get_textDecorationBlink failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecorationBlink failed: %08lx\n", hres); ok(b == VARIANT_TRUE, "textDecorationBlink = %x\n", b);
hres = IHTMLStyle_put_textDecorationBlink(style, VARIANT_FALSE); - ok(hres == S_OK, "textDecorationBlink failed: %08x\n", hres); + ok(hres == S_OK, "textDecorationBlink failed: %08lx\n", hres);
hres = IHTMLStyle_get_textDecoration(style, &sDefault); - ok(hres == S_OK, "get_textDecoration failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecoration failed: %08lx\n", hres);
str = SysAllocString(L"invalid"); hres = IHTMLStyle_put_textDecoration(style, str); ok(hres == (compat_mode < COMPAT_IE9 ? E_INVALIDARG : S_OK), - "put_textDecoration failed: %08x\n", hres); + "put_textDecoration failed: %08lx\n", hres); SysFreeString(str);
set_text_decoration(style, L"none"); @@ -1603,96 +1603,96 @@ static void test_body_style(IHTMLStyle *style) str = SysAllocString(L"invalid"); hres = IHTMLStyle_put_textDecoration(style, str); ok(hres == (compat_mode < COMPAT_IE9 ? E_INVALIDARG : S_OK), - "put_textDecoration failed: %08x\n", hres); + "put_textDecoration failed: %08lx\n", hres); SysFreeString(str); test_text_decoration(style, compat_mode < COMPAT_IE9 ? NULL : L"blink");
hres = IHTMLStyle_put_textDecoration(style, sDefault); - ok(hres == S_OK, "put_textDecoration failed: %08x\n", hres); + ok(hres == S_OK, "put_textDecoration failed: %08lx\n", hres); SysFreeString(sDefault);
hres = IHTMLStyle_get_posWidth(style, NULL); - ok(hres == E_POINTER, "get_posWidth failed: %08x\n", hres); + ok(hres == E_POINTER, "get_posWidth failed: %08lx\n", hres);
hres = IHTMLStyle_get_posWidth(style, &f); - ok(hres == S_OK, "get_posWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_posWidth failed: %08lx\n", hres); ok(f == 0.0f, "f = %f\n", f);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_width(style, &v); - ok(hres == S_OK, "get_width failed: %08x\n", hres); + ok(hres == S_OK, "get_width failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(v)=%p\n", V_BSTR(&v));
hres = IHTMLStyle_put_posWidth(style, 2.2); - ok(hres == S_OK, "put_posWidth failed: %08x\n", hres); + ok(hres == S_OK, "put_posWidth failed: %08lx\n", hres);
hres = IHTMLStyle_get_posWidth(style, &f); - ok(hres == S_OK, "get_posWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_posWidth failed: %08lx\n", hres); ok(f == 2.0f || f == 2.2f, /* IE8 */ "f = %f\n", f);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelWidth(style, &l); - ok(hres == S_OK, "get_pixelWidth failed: %08x\n", hres); - ok(l == 2, "pixelWidth = %d\n", l); + ok(hres == S_OK, "get_pixelWidth failed: %08lx\n", hres); + ok(l == 2, "pixelWidth = %ld\n", l);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"auto"); hres = IHTMLStyle_put_width(style, v); - ok(hres == S_OK, "put_width failed: %08x\n", hres); + ok(hres == S_OK, "put_width failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_width(style, &v); - ok(hres == S_OK, "get_width failed: %08x\n", hres); + ok(hres == S_OK, "get_width failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"auto"), "V_BSTR(v)=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelWidth(style, &l); - ok(hres == S_OK, "get_pixelWidth failed: %08x\n", hres); - ok(!l, "pixelWidth = %d\n", l); + ok(hres == S_OK, "get_pixelWidth failed: %08lx\n", hres); + ok(!l, "pixelWidth = %ld\n", l);
V_VT(&v) = VT_I4; V_I4(&v) = 100; hres = IHTMLStyle_put_width(style, v); - ok(hres == S_OK, "put_width failed: %08x\n", hres); + ok(hres == S_OK, "put_width failed: %08lx\n", hres);
hres = IHTMLStyle_get_width(style, &v); - ok(hres == S_OK, "get_width failed: %08x\n", hres); + ok(hres == S_OK, "get_width failed: %08lx\n", hres); test_var_bstr(&v, compat_mode < COMPAT_IE9 ? L"100px" : L"auto"); VariantClear(&v);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelWidth(style, &l); - ok(hres == S_OK, "get_pixelWidth failed: %08x\n", hres); - ok(l == (compat_mode < COMPAT_IE9 ? 100 : 0), "pixelWidth = %d\n", l); + ok(hres == S_OK, "get_pixelWidth failed: %08lx\n", hres); + ok(l == (compat_mode < COMPAT_IE9 ? 100 : 0), "pixelWidth = %ld\n", l);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_width(style, &v); - ok(hres == S_OK, "get_width failed: %08x\n", hres); + ok(hres == S_OK, "get_width failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), compat_mode < COMPAT_IE9 ? L"100px" : L"auto"), "V_BSTR(v)=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_put_pixelWidth(style, 50); - ok(hres == S_OK, "put_pixelWidth failed: %08x\n", hres); + ok(hres == S_OK, "put_pixelWidth failed: %08lx\n", hres);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelWidth(style, &l); - ok(hres == S_OK, "get_pixelWidth failed: %08x\n", hres); - ok(l == 50, "pixelWidth = %d\n", l); + ok(hres == S_OK, "get_pixelWidth failed: %08lx\n", hres); + ok(l == 50, "pixelWidth = %ld\n", l);
hres = IHTMLStyle_get_pixelWidth(style, NULL); - ok(hres == E_POINTER, "get_pixelWidth failed: %08x\n", hres); + ok(hres == E_POINTER, "get_pixelWidth failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_width(style, &v); - ok(hres == S_OK, "get_width failed: %08x\n", hres); + ok(hres == S_OK, "get_width failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"50px"), "V_BSTR(v)=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -1700,16 +1700,16 @@ static void test_body_style(IHTMLStyle *style) /* margin tests */ str = (void*)0xdeadbeef; hres = IHTMLStyle_get_margin(style, &str); - ok(hres == S_OK, "get_margin failed: %08x\n", hres); + ok(hres == S_OK, "get_margin failed: %08lx\n", hres); ok(!str, "margin = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"1"); hres = IHTMLStyle_put_margin(style, str); - ok(hres == S_OK, "put_margin failed: %08x\n", hres); + ok(hres == S_OK, "put_margin failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_margin(style, &str); - ok(hres == S_OK, "get_margin failed: %08x\n", hres); + ok(hres == S_OK, "get_margin failed: %08lx\n", hres); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(str, L"1px"), "margin = %s\n", wine_dbgstr_w(str)); else @@ -1718,20 +1718,20 @@ static void test_body_style(IHTMLStyle *style)
str = SysAllocString(L"2px"); hres = IHTMLStyle_put_margin(style, str); - ok(hres == S_OK, "put_margin failed: %08x\n", hres); + ok(hres == S_OK, "put_margin failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_margin(style, &str); - ok(hres == S_OK, "get_margin failed: %08x\n", hres); + ok(hres == S_OK, "get_margin failed: %08lx\n", hres); ok(!lstrcmpW(str, L"2px"), "margin = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLStyle_put_margin(style, NULL); - ok(hres == S_OK, "put_margin failed: %08x\n", hres); + ok(hres == S_OK, "put_margin failed: %08lx\n", hres);
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_marginTop(style, &v); - ok(hres == S_OK, "get_marginTop failed: %08x\n", hres); + ok(hres == S_OK, "get_marginTop failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginTop) = %d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(marginTop) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
@@ -1739,11 +1739,11 @@ static void test_body_style(IHTMLStyle *style) V_BSTR(&v) = SysAllocString(L"6px"); hres = IHTMLStyle_put_marginTop(style, v); SysFreeString(V_BSTR(&v)); - ok(hres == S_OK, "put_marginTop failed: %08x\n", hres); + ok(hres == S_OK, "put_marginTop failed: %08lx\n", hres);
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_marginTop(style, &v); - ok(hres == S_OK, "get_marginTop failed: %08x\n", hres); + ok(hres == S_OK, "get_marginTop failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginTop) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"6px"), "V_BSTR(marginTop) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -1751,11 +1751,11 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_I4; V_I4(&v) = 5; hres = IHTMLStyle_put_marginTop(style, v); - ok(hres == S_OK, "put_marginTop failed: %08x\n", hres); + ok(hres == S_OK, "put_marginTop failed: %08lx\n", hres);
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_marginTop(style, &v); - ok(hres == S_OK, "get_marginTop failed: %08x\n", hres); + ok(hres == S_OK, "get_marginTop failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(marginTop) = %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), compat_mode < COMPAT_IE9 ? L"5px" : L"6px"), "V_BSTR(marginTop) = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -1763,41 +1763,41 @@ static void test_body_style(IHTMLStyle *style)
str = NULL; hres = IHTMLStyle_get_border(style, &str); - ok(hres == S_OK, "get_border failed: %08x\n", hres); + ok(hres == S_OK, "get_border failed: %08lx\n", hres); ok(!str || !*str, "str is not empty\n"); SysFreeString(str);
str = SysAllocString(L"1px"); hres = IHTMLStyle_put_border(style, str); - ok(hres == S_OK, "put_border failed: %08x\n", hres); + ok(hres == S_OK, "put_border failed: %08lx\n", hres); SysFreeString(str);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_left(style, &v); - ok(hres == S_OK, "get_left failed: %08x\n", hres); + ok(hres == S_OK, "get_left failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(v) != NULL\n"); VariantClear(&v);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelLeft(style, &l); - ok(hres == S_OK, "get_pixelLeft failed: %08x\n", hres); - ok(!l, "pixelLeft = %d\n", l); + ok(hres == S_OK, "get_pixelLeft failed: %08lx\n", hres); + ok(!l, "pixelLeft = %ld\n", l);
/* Test posLeft */ hres = IHTMLStyle_get_posLeft(style, NULL); - ok(hres == E_POINTER, "get_posLeft failed: %08x\n", hres); + ok(hres == E_POINTER, "get_posLeft failed: %08lx\n", hres);
f = 1.0f; hres = IHTMLStyle_get_posLeft(style, &f); - ok(hres == S_OK, "get_posLeft failed: %08x\n", hres); + ok(hres == S_OK, "get_posLeft failed: %08lx\n", hres); ok(f == 0.0, "expected 0.0 got %f\n", f);
hres = IHTMLStyle_put_posLeft(style, 4.9f); - ok(hres == S_OK, "put_posLeft failed: %08x\n", hres); + ok(hres == S_OK, "put_posLeft failed: %08lx\n", hres);
hres = IHTMLStyle_get_posLeft(style, &f); - ok(hres == S_OK, "get_posLeft failed: %08x\n", hres); + ok(hres == S_OK, "get_posLeft failed: %08lx\n", hres); ok(f == 4.0 || f == 4.9f, /* IE8 */ "expected 4.0 or 4.9 (IE8) got %f\n", f); @@ -1805,7 +1805,7 @@ static void test_body_style(IHTMLStyle *style) /* Ensure left is updated correctly. */ V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_left(style, &v); - ok(hres == S_OK, "get_left failed: %08x\n", hres); + ok(hres == S_OK, "get_left failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"4px") || !lstrcmpW(V_BSTR(&v), L"4.9px"), /* IE8 */ @@ -1816,21 +1816,21 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"3px"); hres = IHTMLStyle_put_left(style, v); - ok(hres == S_OK, "put_left failed: %08x\n", hres); + ok(hres == S_OK, "put_left failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_posLeft(style, &f); - ok(hres == S_OK, "get_posLeft failed: %08x\n", hres); + ok(hres == S_OK, "get_posLeft failed: %08lx\n", hres); ok(f == 3.0, "expected 3.0 got %f\n", f);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelLeft(style, &l); - ok(hres == S_OK, "get_pixelLeft failed: %08x\n", hres); - ok(l == 3, "pixelLeft = %d\n", l); + ok(hres == S_OK, "get_pixelLeft failed: %08lx\n", hres); + ok(l == 3, "pixelLeft = %ld\n", l);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_left(style, &v); - ok(hres == S_OK, "get_left failed: %08x\n", hres); + ok(hres == S_OK, "get_left failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"3px"), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -1838,270 +1838,270 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"4.99"); hres = IHTMLStyle_put_left(style, v); - ok(hres == S_OK, "put_left failed: %08x\n", hres); + ok(hres == S_OK, "put_left failed: %08lx\n", hres); VariantClear(&v);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelLeft(style, &l); - ok(hres == S_OK, "get_pixelLeft failed: %08x\n", hres); - ok(l == (compat_mode < COMPAT_IE9 ? 4 : 3), "pixelLeft = %d\n", l); + ok(hres == S_OK, "get_pixelLeft failed: %08lx\n", hres); + ok(l == (compat_mode < COMPAT_IE9 ? 4 : 3), "pixelLeft = %ld\n", l);
V_VT(&v) = VT_NULL; hres = IHTMLStyle_put_left(style, v); - ok(hres == S_OK, "put_left failed: %08x\n", hres); + ok(hres == S_OK, "put_left failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_left(style, &v); - ok(hres == S_OK, "get_left failed: %08x\n", hres); + ok(hres == S_OK, "get_left failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(v) != NULL\n"); VariantClear(&v);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_top(style, &v); - ok(hres == S_OK, "get_top failed: %08x\n", hres); + ok(hres == S_OK, "get_top failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(v) != NULL\n"); VariantClear(&v);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelLeft(style, &l); - ok(hres == S_OK, "get_pixelLeft failed: %08x\n", hres); - ok(!l, "pixelLeft = %d\n", l); + ok(hres == S_OK, "get_pixelLeft failed: %08lx\n", hres); + ok(!l, "pixelLeft = %ld\n", l);
hres = IHTMLStyle_put_pixelLeft(style, 6); - ok(hres == S_OK, "put_pixelLeft failed: %08x\n", hres); + ok(hres == S_OK, "put_pixelLeft failed: %08lx\n", hres);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelLeft(style, &l); - ok(hres == S_OK, "get_pixelLeft failed: %08x\n", hres); - ok(l == 6, "pixelLeft = %d\n", l); + ok(hres == S_OK, "get_pixelLeft failed: %08lx\n", hres); + ok(l == 6, "pixelLeft = %ld\n", l);
hres = IHTMLStyle_get_pixelLeft(style, NULL); - ok(hres == E_POINTER, "get_pixelLeft failed: %08x\n", hres); + ok(hres == E_POINTER, "get_pixelLeft failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_left(style, &v); - ok(hres == S_OK, "get_left failed: %08x\n", hres); + ok(hres == S_OK, "get_left failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"6px"), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
/* Test posTop */ hres = IHTMLStyle_get_posTop(style, NULL); - ok(hres == E_POINTER, "get_posTop failed: %08x\n", hres); + ok(hres == E_POINTER, "get_posTop failed: %08lx\n", hres);
f = 1.0f; hres = IHTMLStyle_get_posTop(style, &f); - ok(hres == S_OK, "get_posTop failed: %08x\n", hres); + ok(hres == S_OK, "get_posTop failed: %08lx\n", hres); ok(f == 0.0, "expected 0.0 got %f\n", f);
hres = IHTMLStyle_put_posTop(style, 4.9f); - ok(hres == S_OK, "put_posTop failed: %08x\n", hres); + ok(hres == S_OK, "put_posTop failed: %08lx\n", hres);
hres = IHTMLStyle_get_posTop(style, &f); - ok(hres == S_OK, "get_posTop failed: %08x\n", hres); + ok(hres == S_OK, "get_posTop failed: %08lx\n", hres); ok(f == 4.0 || f == 4.9f, /* IE8 */ "expected 4.0 or 4.9 (IE8) got %f\n", f);
hres = IHTMLStyle_put_pixelTop(style, 6); - ok(hres == S_OK, "put_pixelTop failed: %08x\n", hres); + ok(hres == S_OK, "put_pixelTop failed: %08lx\n", hres);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelTop(style, &l); - ok(hres == S_OK, "get_pixelTop failed: %08x\n", hres); - ok(l == 6, "pixelTop = %d\n", l); + ok(hres == S_OK, "get_pixelTop failed: %08lx\n", hres); + ok(l == 6, "pixelTop = %ld\n", l);
hres = IHTMLStyle_get_pixelTop(style, NULL); - ok(hres == E_POINTER, "get_pixelTop failed: %08x\n", hres); + ok(hres == E_POINTER, "get_pixelTop failed: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"3px"); hres = IHTMLStyle_put_top(style, v); - ok(hres == S_OK, "put_top failed: %08x\n", hres); + ok(hres == S_OK, "put_top failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_top(style, &v); - ok(hres == S_OK, "get_top failed: %08x\n", hres); + ok(hres == S_OK, "get_top failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"3px"), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_get_posTop(style, &f); - ok(hres == S_OK, "get_posTop failed: %08x\n", hres); + ok(hres == S_OK, "get_posTop failed: %08lx\n", hres); ok(f == 3.0, "expected 3.0 got %f\n", f);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelTop(style, &l); - ok(hres == S_OK, "get_pixelTop failed: %08x\n", hres); - ok(l == 3, "pixelTop = %d\n", l); + ok(hres == S_OK, "get_pixelTop failed: %08lx\n", hres); + ok(l == 3, "pixelTop = %ld\n", l);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"100%"); hres = IHTMLStyle_put_top(style, v); - ok(hres == S_OK, "put_top failed: %08x\n", hres); + ok(hres == S_OK, "put_top failed: %08lx\n", hres); VariantClear(&v);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelTop(style, &l); - ok(hres == S_OK, "get_pixelTop failed: %08x\n", hres); - ok(!l, "pixelTop = %d\n", l); + ok(hres == S_OK, "get_pixelTop failed: %08lx\n", hres); + ok(!l, "pixelTop = %ld\n", l);
V_VT(&v) = VT_NULL; hres = IHTMLStyle_put_top(style, v); - ok(hres == S_OK, "put_top failed: %08x\n", hres); + ok(hres == S_OK, "put_top failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_top(style, &v); - ok(hres == S_OK, "get_top failed: %08x\n", hres); + ok(hres == S_OK, "get_top failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(v) != NULL\n"); VariantClear(&v);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelTop(style, &l); - ok(hres == S_OK, "get_pixelTop failed: %08x\n", hres); - ok(!l, "pixelTop = %d\n", l); + ok(hres == S_OK, "get_pixelTop failed: %08lx\n", hres); + ok(!l, "pixelTop = %ld\n", l);
/* Test posHeight */ hres = IHTMLStyle_get_posHeight(style, NULL); - ok(hres == E_POINTER, "get_posHeight failed: %08x\n", hres); + ok(hres == E_POINTER, "get_posHeight failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_height(style, &v); - ok(hres == S_OK, "get_height failed: %08x\n", hres); + ok(hres == S_OK, "get_height failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(v) != NULL\n"); VariantClear(&v);
f = 1.0f; hres = IHTMLStyle_get_posHeight(style, &f); - ok(hres == S_OK, "get_posHeight failed: %08x\n", hres); + ok(hres == S_OK, "get_posHeight failed: %08lx\n", hres); ok(f == 0.0, "expected 0.0 got %f\n", f);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelHeight(style, &l); - ok(hres == S_OK, "get_pixelHeight failed: %08x\n", hres); - ok(!l, "pixelHeight = %d\n", l); + ok(hres == S_OK, "get_pixelHeight failed: %08lx\n", hres); + ok(!l, "pixelHeight = %ld\n", l);
hres = IHTMLStyle_put_posHeight(style, 4.9f); - ok(hres == S_OK, "put_posHeight failed: %08x\n", hres); + ok(hres == S_OK, "put_posHeight failed: %08lx\n", hres);
hres = IHTMLStyle_get_posHeight(style, &f); - ok(hres == S_OK, "get_posHeight failed: %08x\n", hres); + ok(hres == S_OK, "get_posHeight failed: %08lx\n", hres); ok(f == 4.0 || f == 4.9f, /* IE8 */ "expected 4.0 or 4.9 (IE8) got %f\n", f);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelHeight(style, &l); - ok(hres == S_OK, "get_pixelHeight failed: %08x\n", hres); + ok(hres == S_OK, "get_pixelHeight failed: %08lx\n", hres); ok(l == 4 || l == 5, /* IE8 */ - "pixelHeight = %d\n", l); + "pixelHeight = %ld\n", l);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"70px"); hres = IHTMLStyle_put_height(style, v); - ok(hres == S_OK, "put_height failed: %08x\n", hres); + ok(hres == S_OK, "put_height failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_height(style, &v); - ok(hres == S_OK, "get_height failed: %08x\n", hres); + ok(hres == S_OK, "get_height failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"70px"), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelHeight(style, &l); - ok(hres == S_OK, "get_pixelHeight failed: %08x\n", hres); - ok(l == 70, "pixelHeight = %d\n", l); + ok(hres == S_OK, "get_pixelHeight failed: %08lx\n", hres); + ok(l == 70, "pixelHeight = %ld\n", l);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"50%"); hres = IHTMLStyle_put_height(style, v); - ok(hres == S_OK, "put_height failed: %08x\n", hres); + ok(hres == S_OK, "put_height failed: %08lx\n", hres); VariantClear(&v);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelHeight(style, &l); - ok(hres == S_OK, "get_pixelHeight failed: %08x\n", hres); - ok(!l, "pixelHeight = %d\n", l); + ok(hres == S_OK, "get_pixelHeight failed: %08lx\n", hres); + ok(!l, "pixelHeight = %ld\n", l);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = NULL; hres = IHTMLStyle_put_height(style, v); - ok(hres == S_OK, "put_height failed: %08x\n", hres); + ok(hres == S_OK, "put_height failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_height(style, &v); - ok(hres == S_OK, "get_height failed: %08x\n", hres); + ok(hres == S_OK, "get_height failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(v) = %s, expected NULL\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelHeight(style, &l); - ok(hres == S_OK, "get_pixelHeight failed: %08x\n", hres); - ok(!l, "pixelHeight = %d\n", l); + ok(hres == S_OK, "get_pixelHeight failed: %08lx\n", hres); + ok(!l, "pixelHeight = %ld\n", l);
hres = IHTMLStyle_put_pixelHeight(style, 50); - ok(hres == S_OK, "put_pixelHeight failed: %08x\n", hres); + ok(hres == S_OK, "put_pixelHeight failed: %08lx\n", hres);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelHeight(style, &l); - ok(hres == S_OK, "get_pixelHeight failed: %08x\n", hres); - ok(l == 50, "pixelHeight = %d\n", l); + ok(hres == S_OK, "get_pixelHeight failed: %08lx\n", hres); + ok(l == 50, "pixelHeight = %ld\n", l);
hres = IHTMLStyle_get_pixelHeight(style, NULL); - ok(hres == E_POINTER, "get_pixelHeight failed: %08x\n", hres); + ok(hres == E_POINTER, "get_pixelHeight failed: %08lx\n", hres);
V_VT(&v) = VT_I4; V_I4(&v) = 64; hres = IHTMLStyle_put_height(style, v); - ok(hres == S_OK, "put_height failed: %08x\n", hres); + ok(hres == S_OK, "put_height failed: %08lx\n", hres);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_height(style, &v); - ok(hres == S_OK, "get_height failed: %08x\n", hres); + ok(hres == S_OK, "get_height failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), compat_mode < COMPAT_IE9 ? L"64px" : L"50px"), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_get_posHeight(style, &f); - ok(hres == S_OK, "get_posHeight failed: %08x\n", hres); + ok(hres == S_OK, "get_posHeight failed: %08lx\n", hres); ok(f == (compat_mode < COMPAT_IE9 ? 64.0 : 50), "expected 64.0 got %f\n", f);
l = 0xdeadbeef; hres = IHTMLStyle_get_pixelHeight(style, &l); - ok(hres == S_OK, "get_pixelHeight failed: %08x\n", hres); - ok(l == (compat_mode < COMPAT_IE9 ? 64 : 50), "pixelHeight = %d\n", l); + ok(hres == S_OK, "get_pixelHeight failed: %08lx\n", hres); + ok(l == (compat_mode < COMPAT_IE9 ? 64 : 50), "pixelHeight = %ld\n", l);
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_cursor(style, &str); - ok(hres == S_OK, "get_cursor failed: %08x\n", hres); + ok(hres == S_OK, "get_cursor failed: %08lx\n", hres); ok(!str, "get_cursor != NULL\n"); SysFreeString(str);
str = SysAllocString(L"default"); hres = IHTMLStyle_put_cursor(style, str); - ok(hres == S_OK, "put_cursor failed: %08x\n", hres); + ok(hres == S_OK, "put_cursor failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLStyle_get_cursor(style, &str); - ok(hres == S_OK, "get_cursor failed: %08x\n", hres); + ok(hres == S_OK, "get_cursor failed: %08lx\n", hres); ok(!lstrcmpW(str, L"default"), "get_cursor returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_verticalAlign(style, &v); - ok(hres == S_OK, "get_vertivalAlign failed: %08x\n", hres); + ok(hres == S_OK, "get_vertivalAlign failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(v) != NULL\n"); VariantClear(&v); @@ -2109,12 +2109,12 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"middle"); hres = IHTMLStyle_put_verticalAlign(style, v); - ok(hres == S_OK, "put_vertivalAlign failed: %08x\n", hres); + ok(hres == S_OK, "put_vertivalAlign failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_verticalAlign(style, &v); - ok(hres == S_OK, "get_verticalAlign failed: %08x\n", hres); + ok(hres == S_OK, "get_verticalAlign failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"middle"), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -2122,12 +2122,12 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_I4; V_I4(&v) = 100; hres = IHTMLStyle_put_verticalAlign(style, v); - ok(hres == S_OK, "put_vertivalAlign failed: %08x\n", hres); + ok(hres == S_OK, "put_vertivalAlign failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_verticalAlign(style, &v); - ok(hres == S_OK, "get_verticalAlign failed: %08x\n", hres); + ok(hres == S_OK, "get_verticalAlign failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), compat_mode < COMPAT_IE9 ? L"100px" : L"middle"), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -2135,34 +2135,34 @@ static void test_body_style(IHTMLStyle *style)
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_textAlign(style, &str); - ok(hres == S_OK, "get_textAlign failed: %08x\n", hres); + ok(hres == S_OK, "get_textAlign failed: %08lx\n", hres); ok(!str, "textAlign != NULL\n");
str = SysAllocString(L"center"); hres = IHTMLStyle_put_textAlign(style, str); - ok(hres == S_OK, "put_textAlign failed: %08x\n", hres); + ok(hres == S_OK, "put_textAlign failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLStyle_get_textAlign(style, &str); - ok(hres == S_OK, "get_textAlign failed: %08x\n", hres); + ok(hres == S_OK, "get_textAlign failed: %08lx\n", hres); ok(!lstrcmpW(str, L"center"), "textAlign = %s\n", wine_dbgstr_w(V_BSTR(&v))); SysFreeString(str);
V_VT(&v) = VT_NULL; hres = IHTMLStyle_get_textIndent(style, &v); - ok(hres == S_OK, "get_textIndent failed: %08x\n", hres); + ok(hres == S_OK, "get_textIndent failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(textIndent) = %d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(textIndent) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
V_VT(&v) = VT_I4; V_I4(&v) = 6; hres = IHTMLStyle_put_textIndent(style, v); - ok(hres == S_OK, "put_textIndent failed: %08x\n", hres); + ok(hres == S_OK, "put_textIndent failed: %08lx\n", hres);
V_VT(&v) = VT_NULL; hres = IHTMLStyle_get_textIndent(style, &v); - ok(hres == S_OK, "get_textIndent failed: %08x\n", hres); + ok(hres == S_OK, "get_textIndent failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(textIndent) = %d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"6px"), "textIndent = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -2171,41 +2171,41 @@ static void test_body_style(IHTMLStyle *style)
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_textTransform(style, &str); - ok(hres == S_OK, "get_textTransform failed: %08x\n", hres); + ok(hres == S_OK, "get_textTransform failed: %08lx\n", hres); ok(!str, "textTransform != NULL\n");
str = SysAllocString(L"lowercase"); hres = IHTMLStyle_put_textTransform(style, str); - ok(hres == S_OK, "put_textTransform failed: %08x\n", hres); + ok(hres == S_OK, "put_textTransform failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLStyle_get_textTransform(style, &str); - ok(hres == S_OK, "get_textTransform failed: %08x\n", hres); + ok(hres == S_OK, "get_textTransform failed: %08lx\n", hres); ok(!lstrcmpW(str, L"lowercase"), "textTransform = %s\n", wine_dbgstr_w(V_BSTR(&v))); SysFreeString(str);
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_filter(style, &str); - ok(hres == S_OK, "get_filter failed: %08x\n", hres); + ok(hres == S_OK, "get_filter failed: %08lx\n", hres); ok(!str, "filter != NULL\n");
str = SysAllocString(L"alpha(opacity=100)"); hres = IHTMLStyle_put_filter(style, str); - ok(hres == S_OK, "put_filter failed: %08x\n", hres); + ok(hres == S_OK, "put_filter failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_put_filter(style, NULL); - ok(hres == S_OK, "put_filter failed: %08x\n", hres); + ok(hres == S_OK, "put_filter failed: %08lx\n", hres);
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_filter(style, &str); - ok(hres == S_OK, "get_filter failed: %08x\n", hres); + ok(hres == S_OK, "get_filter failed: %08lx\n", hres); ok(!str, "filter != NULL\n");
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_zIndex(style, &v); - ok(hres == S_OK, "get_zIndex failed: %08x\n", hres); + ok(hres == S_OK, "get_zIndex failed: %08lx\n", hres); if(compat_mode < COMPAT_IE9) { ok(V_VT(&v) == VT_I4, "V_VT(v)=%d\n", V_VT(&v)); ok(!V_I4(&v), "V_I4(v) != 0\n"); @@ -2217,7 +2217,7 @@ static void test_body_style(IHTMLStyle *style)
if(css_style) { hres = IHTMLCSSStyleDeclaration_get_zIndex(css_style, &v); - ok(hres == S_OK, "get_zIndex failed: %08x\n", hres); + ok(hres == S_OK, "get_zIndex failed: %08lx\n", hres); if(compat_mode < COMPAT_IE9) { ok(V_VT(&v) == VT_I4, "V_VT(v)=%d\n", V_VT(&v)); ok(!V_I4(&v), "V_I4(v) != 0\n"); @@ -2230,122 +2230,122 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"1"); hres = IHTMLStyle_put_zIndex(style, v); - ok(hres == S_OK, "put_zIndex failed: %08x\n", hres); + ok(hres == S_OK, "put_zIndex failed: %08lx\n", hres); VariantClear(&v);
V_VT(&v) = VT_EMPTY; hres = IHTMLStyle_get_zIndex(style, &v); - ok(hres == S_OK, "get_zIndex failed: %08x\n", hres); + ok(hres == S_OK, "get_zIndex failed: %08lx\n", hres); ok(V_VT(&v) == VT_I4, "V_VT(v)=%d\n", V_VT(&v)); - ok(V_I4(&v) == 1, "V_I4(v) = %d\n", V_I4(&v)); + ok(V_I4(&v) == 1, "V_I4(v) = %ld\n", V_I4(&v)); VariantClear(&v);
/* fontStyle */ hres = IHTMLStyle_get_fontStyle(style, &sDefault); - ok(hres == S_OK, "get_fontStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_fontStyle failed: %08lx\n", hres);
str = SysAllocString(L"test"); hres = IHTMLStyle_put_fontStyle(style, str); ok(hres == (compat_mode < COMPAT_IE9 ? E_INVALIDARG : S_OK), - "put_fontStyle failed: %08x\n", hres); + "put_fontStyle failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"italic"); hres = IHTMLStyle_put_fontStyle(style, str); - ok(hres == S_OK, "put_fontStyle failed: %08x\n", hres); + ok(hres == S_OK, "put_fontStyle failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"oblique"); hres = IHTMLStyle_put_fontStyle(style, str); - ok(hres == S_OK, "put_fontStyle failed: %08x\n", hres); + ok(hres == S_OK, "put_fontStyle failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"normal"); hres = IHTMLStyle_put_fontStyle(style, str); - ok(hres == S_OK, "put_fontStyle failed: %08x\n", hres); + ok(hres == S_OK, "put_fontStyle failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_put_fontStyle(style, sDefault); - ok(hres == S_OK, "put_fontStyle failed: %08x\n", hres); + ok(hres == S_OK, "put_fontStyle failed: %08lx\n", hres); SysFreeString(sDefault);
/* overflow */ hres = IHTMLStyle_get_overflow(style, NULL); - ok(hres == E_INVALIDARG, "get_overflow failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "get_overflow failed: %08lx\n", hres);
hres = IHTMLStyle_get_overflow(style, &sOverflowDefault); - ok(hres == S_OK, "get_overflow failed: %08x\n", hres); + ok(hres == S_OK, "get_overflow failed: %08lx\n", hres);
str = SysAllocString(L"test"); hres = IHTMLStyle_put_overflow(style, str); ok(hres == (compat_mode < COMPAT_IE9 ? E_INVALIDARG : S_OK), - "put_overflow failed: %08x\n", hres); + "put_overflow failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"visible"); hres = IHTMLStyle_put_overflow(style, str); - ok(hres == S_OK, "put_overflow failed: %08x\n", hres); + ok(hres == S_OK, "put_overflow failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"scroll"); hres = IHTMLStyle_put_overflow(style, str); - ok(hres == S_OK, "put_overflow failed: %08x\n", hres); + ok(hres == S_OK, "put_overflow failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"hidden"); hres = IHTMLStyle_put_overflow(style, str); - ok(hres == S_OK, "put_overflow failed: %08x\n", hres); + ok(hres == S_OK, "put_overflow failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"auto"); hres = IHTMLStyle_put_overflow(style, str); - ok(hres == S_OK, "put_overflow failed: %08x\n", hres); + ok(hres == S_OK, "put_overflow failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_overflow(style, &str); - ok(hres == S_OK, "get_overflow failed: %08x\n", hres); + ok(hres == S_OK, "get_overflow failed: %08lx\n", hres); ok(!lstrcmpW(str, L"auto"), "str=%s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L""); hres = IHTMLStyle_put_overflow(style, str); - ok(hres == S_OK, "put_overflow failed: %08x\n", hres); + ok(hres == S_OK, "put_overflow failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_overflow(style, &str); - ok(hres == S_OK, "get_overflow failed: %08x\n", hres); + ok(hres == S_OK, "get_overflow failed: %08lx\n", hres); ok(!str, "str=%s\n", wine_dbgstr_w(str)); SysFreeString(str);
/* restore overflow default */ hres = IHTMLStyle_put_overflow(style, sOverflowDefault); - ok(hres == S_OK, "put_overflow failed: %08x\n", hres); + ok(hres == S_OK, "put_overflow failed: %08lx\n", hres); SysFreeString(sOverflowDefault);
/* Attribute Tests*/ hres = IHTMLStyle_getAttribute(style, NULL, 1, &v); - ok(hres == E_INVALIDARG, "getAttribute failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "getAttribute failed: %08lx\n", hres);
str = SysAllocString(L"position"); hres = IHTMLStyle_getAttribute(style, str, 1, NULL); - ok(hres == E_INVALIDARG, "getAttribute failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "getAttribute failed: %08lx\n", hres);
hres = IHTMLStyle_getAttribute(style, str, 1, &v); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "type failed: %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLStyle_setAttribute(style, NULL, v, 1); - ok(hres == E_INVALIDARG, "setAttribute failed: %08x\n", hres); + ok(hres == E_INVALIDARG, "setAttribute failed: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"absolute"); hres = IHTMLStyle_setAttribute(style, str, v, 1); - ok(hres == S_OK, "setAttribute failed: %08x\n", hres); + ok(hres == S_OK, "setAttribute failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_getAttribute(style, str, 1, &v); - ok(hres == S_OK, "getAttribute failed: %08x\n", hres); + ok(hres == S_OK, "getAttribute failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "type failed: %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"absolute"), "str=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -2353,7 +2353,7 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_BSTR; V_BSTR(&v) = NULL; hres = IHTMLStyle_setAttribute(style, str, v, 1); - ok(hres == S_OK, "setAttribute failed: %08x\n", hres); + ok(hres == S_OK, "setAttribute failed: %08lx\n", hres); VariantClear(&v);
SysFreeString(str); @@ -2375,61 +2375,61 @@ static void test_body_style(IHTMLStyle *style) SysFreeString(str);
hres = IHTMLStyle_get_borderStyle(style, &sDefault); - ok(hres == S_OK, "get_borderStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_borderStyle failed: %08lx\n", hres);
str = SysAllocString(L"none dotted dashed solid"); hres = IHTMLStyle_put_borderStyle(style, str); - ok(hres == S_OK, "put_borderStyle failed: %08x\n", hres); + ok(hres == S_OK, "put_borderStyle failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"none dotted dashed solid"); hres = IHTMLStyle_get_borderStyle(style, &str); - ok(hres == S_OK, "get_borderStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_borderStyle failed: %08lx\n", hres); ok(!lstrcmpW(str, L"none dotted dashed solid"), "expected (none dotted dashed solid) = (%s)\n", wine_dbgstr_w(V_BSTR(&v))); SysFreeString(str);
str = SysAllocString(L"double groove ridge inset"); hres = IHTMLStyle_put_borderStyle(style, str); - ok(hres == S_OK, "put_borderStyle failed: %08x\n", hres); + ok(hres == S_OK, "put_borderStyle failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"window-inset outset ridge inset"); hres = IHTMLStyle_put_borderStyle(style, str); - ok(hres == S_OK, "put_borderStyle failed: %08x\n", hres); + ok(hres == S_OK, "put_borderStyle failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"window-inset"); hres = IHTMLStyle_put_borderStyle(style, str); - ok(hres == S_OK, "put_borderStyle failed: %08x\n", hres); + ok(hres == S_OK, "put_borderStyle failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"none none none none none"); hres = IHTMLStyle_put_borderStyle(style, str); - ok(hres == S_OK, "put_borderStyle failed: %08x\n", hres); + ok(hres == S_OK, "put_borderStyle failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"invalid none none none"); hres = IHTMLStyle_put_borderStyle(style, str); todo_wine_if(compat_mode >= COMPAT_IE9) ok(hres == (compat_mode < COMPAT_IE9 ? E_INVALIDARG : S_OK), - "put_borderStyle failed: %08x\n", hres); + "put_borderStyle failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"none invalid none none"); hres = IHTMLStyle_put_borderStyle(style, str); todo_wine_if(compat_mode >= COMPAT_IE9) ok(hres == (compat_mode < COMPAT_IE9 ? E_INVALIDARG : S_OK), - "put_borderStyle failed: %08x\n", hres); + "put_borderStyle failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_put_borderStyle(style, sDefault); - ok(hres == S_OK, "put_borderStyle failed: %08x\n", hres); + ok(hres == S_OK, "put_borderStyle failed: %08lx\n", hres); SysFreeString(sDefault);
/* backgroundColor */ hres = IHTMLStyle_get_backgroundColor(style, &v); - ok(hres == S_OK, "get_backgroundColor: %08x\n", hres); + ok(hres == S_OK, "get_backgroundColor: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "type failed: %d\n", V_VT(&v)); ok(!V_BSTR(&v), "str=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -2437,43 +2437,43 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"red"); hres = IHTMLStyle_put_backgroundColor(style, v); - ok(hres == S_OK, "put_backgroundColor failed: %08x\n", hres); + ok(hres == S_OK, "put_backgroundColor failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_backgroundColor(style, &v); - ok(hres == S_OK, "get_backgroundColor: %08x\n", hres); + ok(hres == S_OK, "get_backgroundColor: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "type failed: %d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"red"), "str=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
str = SysAllocString(L"fixed"); hres = IHTMLStyle_put_backgroundAttachment(style, str); - ok(hres == S_OK, "put_backgroundAttachment failed: %08x\n", hres); + ok(hres == S_OK, "put_backgroundAttachment failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_backgroundAttachment(style, &str); - ok(hres == S_OK, "get_backgroundAttachment failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundAttachment failed: %08lx\n", hres); ok(!lstrcmpW(str, L"fixed"), "ret = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
/* padding */ hres = IHTMLStyle_get_padding(style, &str); - ok(hres == S_OK, "get_padding failed: %08x\n", hres); + ok(hres == S_OK, "get_padding failed: %08lx\n", hres); ok(!str, "padding = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLStyle_get_paddingTop(style, &v); - ok(hres == S_OK, "get_paddingTop: %08x\n", hres); + ok(hres == S_OK, "get_paddingTop: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
V_VT(&v) = VT_I4; V_I4(&v) = 6; hres = IHTMLStyle_put_paddingTop(style, v); - ok(hres == S_OK, "put_paddingTop failed: %08x\n", hres); + ok(hres == S_OK, "put_paddingTop failed: %08lx\n", hres);
hres = IHTMLStyle_get_paddingTop(style, &v); - ok(hres == S_OK, "get_paddingTop: %08x\n", hres); + ok(hres == S_OK, "get_paddingTop: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"6px"), "paddingTop = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -2482,17 +2482,17 @@ static void test_body_style(IHTMLStyle *style) VariantClear(&v);
hres = IHTMLStyle_get_paddingRight(style, &v); - ok(hres == S_OK, "get_paddingRight: %08x\n", hres); + ok(hres == S_OK, "get_paddingRight: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
V_VT(&v) = VT_I4; V_I4(&v) = 6; hres = IHTMLStyle_put_paddingRight(style, v); - ok(hres == S_OK, "put_paddingRight failed: %08x\n", hres); + ok(hres == S_OK, "put_paddingRight failed: %08lx\n", hres);
hres = IHTMLStyle_get_paddingRight(style, &v); - ok(hres == S_OK, "get_paddingRight: %08x\n", hres); + ok(hres == S_OK, "get_paddingRight: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"6px"), "paddingRight = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -2501,17 +2501,17 @@ static void test_body_style(IHTMLStyle *style) VariantClear(&v);
hres = IHTMLStyle_get_paddingBottom(style, &v); - ok(hres == S_OK, "get_paddingBottom: %08x\n", hres); + ok(hres == S_OK, "get_paddingBottom: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); ok(!V_BSTR(&v), "V_BSTR(v) = %s\n", wine_dbgstr_w(V_BSTR(&v)));
V_VT(&v) = VT_I4; V_I4(&v) = 6; hres = IHTMLStyle_put_paddingBottom(style, v); - ok(hres == S_OK, "put_paddingBottom failed: %08x\n", hres); + ok(hres == S_OK, "put_paddingBottom failed: %08lx\n", hres);
hres = IHTMLStyle_get_paddingBottom(style, &v); - ok(hres == S_OK, "get_paddingBottom: %08x\n", hres); + ok(hres == S_OK, "get_paddingBottom: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"6px"), "paddingBottom = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -2521,11 +2521,11 @@ static void test_body_style(IHTMLStyle *style)
str = SysAllocString(L"1"); hres = IHTMLStyle_put_padding(style, str); - ok(hres == S_OK, "put_padding failed: %08x\n", hres); + ok(hres == S_OK, "put_padding failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_padding(style, &str); - ok(hres == S_OK, "get_padding failed: %08x\n", hres); + ok(hres == S_OK, "get_padding failed: %08lx\n", hres); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(str, L"1px"), "padding = %s\n", wine_dbgstr_w(str)); else @@ -2534,7 +2534,7 @@ static void test_body_style(IHTMLStyle *style)
/* PaddingLeft */ hres = IHTMLStyle_get_paddingLeft(style, &vDefault); - ok(hres == S_OK, "get_paddingLeft: %08x\n", hres); + ok(hres == S_OK, "get_paddingLeft: %08lx\n", hres); ok(V_VT(&vDefault) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&vDefault)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&vDefault), L"1px"), "paddingLeft = %s\n", @@ -2545,11 +2545,11 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"10"); hres = IHTMLStyle_put_paddingLeft(style, v); - ok(hres == S_OK, "put_paddingLeft: %08x\n", hres); + ok(hres == S_OK, "put_paddingLeft: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_paddingLeft(style, &v); - ok(hres == S_OK, "get_paddingLeft: %08x\n", hres); + ok(hres == S_OK, "get_paddingLeft: %08lx\n", hres); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"10px"), "paddingLeft = %s\n", wine_dbgstr_w(V_BSTR(&v))); else @@ -2557,72 +2557,72 @@ static void test_body_style(IHTMLStyle *style) VariantClear(&v);
hres = IHTMLStyle_put_paddingLeft(style, vDefault); - ok(hres == S_OK, "put_paddingLeft: %08x\n", hres); + ok(hres == S_OK, "put_paddingLeft: %08lx\n", hres);
/* BackgroundRepeat */ hres = IHTMLStyle_get_backgroundRepeat(style, &sDefault); - ok(hres == S_OK, "get_backgroundRepeat failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundRepeat failed: %08lx\n", hres);
str = SysAllocString(L"invalid"); hres = IHTMLStyle_put_backgroundRepeat(style, str); ok(hres == (compat_mode < COMPAT_IE9 ? E_INVALIDARG : S_OK), - "put_backgroundRepeat failed: %08x\n", hres); + "put_backgroundRepeat failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"repeat"); hres = IHTMLStyle_put_backgroundRepeat(style, str); - ok(hres == S_OK, "put_backgroundRepeat failed: %08x\n", hres); + ok(hres == S_OK, "put_backgroundRepeat failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"no-repeat"); hres = IHTMLStyle_put_backgroundRepeat(style, str); - ok(hres == S_OK, "put_backgroundRepeat failed: %08x\n", hres); + ok(hres == S_OK, "put_backgroundRepeat failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"repeat-x"); hres = IHTMLStyle_put_backgroundRepeat(style, str); - ok(hres == S_OK, "put_backgroundRepeat failed: %08x\n", hres); + ok(hres == S_OK, "put_backgroundRepeat failed: %08lx\n", hres); SysFreeString(str);
str = SysAllocString(L"repeat-y"); hres = IHTMLStyle_put_backgroundRepeat(style, str); - ok(hres == S_OK, "put_backgroundRepeat failed: %08x\n", hres); + ok(hres == S_OK, "put_backgroundRepeat failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_backgroundRepeat(style, &str); - ok(hres == S_OK, "get_backgroundRepeat failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundRepeat failed: %08lx\n", hres); ok(!lstrcmpW(str, L"repeat-y"), "str=%s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLStyle_put_backgroundRepeat(style, sDefault); - ok(hres == S_OK, "put_backgroundRepeat failed: %08x\n", hres); + ok(hres == S_OK, "put_backgroundRepeat failed: %08lx\n", hres); SysFreeString(sDefault);
/* BorderColor */ hres = IHTMLStyle_get_borderColor(style, &sDefault); - ok(hres == S_OK, "get_borderColor failed: %08x\n", hres); + ok(hres == S_OK, "get_borderColor failed: %08lx\n", hres);
str = SysAllocString(L"red green red blue"); hres = IHTMLStyle_put_borderColor(style, str); - ok(hres == S_OK, "put_borderColor failed: %08x\n", hres); + ok(hres == S_OK, "put_borderColor failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_borderColor(style, &str); - ok(hres == S_OK, "get_borderColor failed: %08x\n", hres); + ok(hres == S_OK, "get_borderColor failed: %08lx\n", hres); ok(!lstrcmpW(str, L"red green red blue"), "str=%s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLStyle_put_borderColor(style, sDefault); - ok(hres == S_OK, "put_borderColor failed: %08x\n", hres); + ok(hres == S_OK, "put_borderColor failed: %08lx\n", hres); SysFreeString(sDefault);
/* BorderRight */ hres = IHTMLStyle_get_borderRight(style, &sDefault); - ok(hres == S_OK, "get_borderRight failed: %08x\n", hres); + ok(hres == S_OK, "get_borderRight failed: %08lx\n", hres);
str = SysAllocString(L"thick dotted red"); hres = IHTMLStyle_put_borderRight(style, str); - ok(hres == S_OK, "put_borderRight failed: %08x\n", hres); + ok(hres == S_OK, "put_borderRight failed: %08lx\n", hres); SysFreeString(str);
/* IHTMLStyle_get_borderRight appears to have a bug where @@ -2631,32 +2631,32 @@ static void test_body_style(IHTMLStyle *style) */ V_BSTR(&v) = NULL; hres = IHTMLStyle_get_borderRightColor(style, &v); - ok(hres == S_OK, "get_borderRightColor failed: %08x\n", hres); + ok(hres == S_OK, "get_borderRightColor failed: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"red"), "str=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
V_BSTR(&v) = NULL; hres = IHTMLStyle_get_borderRightWidth(style, &v); - ok(hres == S_OK, "get_borderRightWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_borderRightWidth failed: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"thick"), "str=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_get_borderRightStyle(style, &str); - ok(hres == S_OK, "get_borderRightStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_borderRightStyle failed: %08lx\n", hres); ok(!lstrcmpW(str, L"dotted"), "str=%s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLStyle_put_borderRight(style, sDefault); - ok(hres == S_OK, "put_borderRight failed: %08x\n", hres); + ok(hres == S_OK, "put_borderRight failed: %08lx\n", hres); SysFreeString(sDefault);
/* BorderTop */ hres = IHTMLStyle_get_borderTop(style, &sDefault); - ok(hres == S_OK, "get_borderTop failed: %08x\n", hres); + ok(hres == S_OK, "get_borderTop failed: %08lx\n", hres);
str = SysAllocString(L"thick dotted red"); hres = IHTMLStyle_put_borderTop(style, str); - ok(hres == S_OK, "put_borderTop failed: %08x\n", hres); + ok(hres == S_OK, "put_borderTop failed: %08lx\n", hres); SysFreeString(str);
/* IHTMLStyle_get_borderTop appears to have a bug where @@ -2665,32 +2665,32 @@ static void test_body_style(IHTMLStyle *style) */ V_BSTR(&v) = NULL; hres = IHTMLStyle_get_borderTopColor(style, &v); - ok(hres == S_OK, "get_borderTopColor failed: %08x\n", hres); + ok(hres == S_OK, "get_borderTopColor failed: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"red"), "str=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
V_BSTR(&v) = NULL; hres = IHTMLStyle_get_borderTopWidth(style, &v); - ok(hres == S_OK, "get_borderTopWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_borderTopWidth failed: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"thick"), "str=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_get_borderTopStyle(style, &str); - ok(hres == S_OK, "get_borderTopStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_borderTopStyle failed: %08lx\n", hres); ok(!lstrcmpW(str, L"dotted"), "str=%s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLStyle_put_borderTop(style, sDefault); - ok(hres == S_OK, "put_borderTop failed: %08x\n", hres); + ok(hres == S_OK, "put_borderTop failed: %08lx\n", hres); SysFreeString(sDefault);
/* BorderBottom */ hres = IHTMLStyle_get_borderBottom(style, &sDefault); - ok(hres == S_OK, "get_borderBottom failed: %08x\n", hres); + ok(hres == S_OK, "get_borderBottom failed: %08lx\n", hres);
str = SysAllocString(L"thick dotted red"); hres = IHTMLStyle_put_borderBottom(style, str); - ok(hres == S_OK, "put_borderBottom failed: %08x\n", hres); + ok(hres == S_OK, "put_borderBottom failed: %08lx\n", hres); SysFreeString(str);
/* IHTMLStyle_get_borderBottom appears to have a bug where @@ -2699,32 +2699,32 @@ static void test_body_style(IHTMLStyle *style) */ V_BSTR(&v) = NULL; hres = IHTMLStyle_get_borderBottomColor(style, &v); - ok(hres == S_OK, "get_borderBottomColor failed: %08x\n", hres); + ok(hres == S_OK, "get_borderBottomColor failed: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"red"), "str=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
V_BSTR(&v) = NULL; hres = IHTMLStyle_get_borderBottomWidth(style, &v); - ok(hres == S_OK, "get_borderBottomWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_borderBottomWidth failed: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"thick"), "str=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_get_borderBottomStyle(style, &str); - ok(hres == S_OK, "get_borderBottomStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_borderBottomStyle failed: %08lx\n", hres); ok(!lstrcmpW(str, L"dotted"), "str=%s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLStyle_put_borderBottom(style, sDefault); - ok(hres == S_OK, "put_borderBottom failed: %08x\n", hres); + ok(hres == S_OK, "put_borderBottom failed: %08lx\n", hres); SysFreeString(sDefault);
/* BorderLeft */ hres = IHTMLStyle_get_borderLeft(style, &sDefault); - ok(hres == S_OK, "get_borderLeft failed: %08x\n", hres); + ok(hres == S_OK, "get_borderLeft failed: %08lx\n", hres);
str = SysAllocString(L"thick dotted red"); hres = IHTMLStyle_put_borderLeft(style, str); - ok(hres == S_OK, "put_borderLeft failed: %08x\n", hres); + ok(hres == S_OK, "put_borderLeft failed: %08lx\n", hres); SysFreeString(str);
/* IHTMLStyle_get_borderLeft appears to have a bug where @@ -2733,28 +2733,28 @@ static void test_body_style(IHTMLStyle *style) */ V_BSTR(&v) = NULL; hres = IHTMLStyle_get_borderLeftColor(style, &v); - ok(hres == S_OK, "get_borderLeftColor failed: %08x\n", hres); + ok(hres == S_OK, "get_borderLeftColor failed: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"red"), "str=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
V_BSTR(&v) = NULL; hres = IHTMLStyle_get_borderLeftWidth(style, &v); - ok(hres == S_OK, "get_borderLeftWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_borderLeftWidth failed: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"thick"), "str=%s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_get_borderLeftStyle(style, &str); - ok(hres == S_OK, "get_borderLeftStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_borderLeftStyle failed: %08lx\n", hres); ok(!lstrcmpW(str, L"dotted"), "str=%s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLStyle_put_borderLeft(style, sDefault); - ok(hres == S_OK, "put_borderLeft failed: %08x\n", hres); + ok(hres == S_OK, "put_borderLeft failed: %08lx\n", hres); SysFreeString(sDefault);
/* backgroundPositionX */ hres = IHTMLStyle_get_backgroundPositionX(style, &v); - ok(hres == S_OK, "get_backgroundPositionX failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundPositionX failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!V_BSTR(&v), "backgroundPositionX = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -2763,11 +2763,11 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"11px"); hres = IHTMLCSSStyleDeclaration_put_backgroundPositionX(css_style, v); - ok(hres == S_OK, "put_backgroundPositionX failed: %08x\n", hres); + ok(hres == S_OK, "put_backgroundPositionX failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLCSSStyleDeclaration_get_backgroundPositionX(css_style, &v); - ok(hres == S_OK, "get_backgroundPositionX failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundPositionX failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"11px"), "backgroundPositionX = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -2776,29 +2776,29 @@ static void test_body_style(IHTMLStyle *style) V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"10px"); hres = IHTMLStyle_put_backgroundPositionX(style, v); - ok(hres == S_OK, "put_backgroundPositionX failed: %08x\n", hres); + ok(hres == S_OK, "put_backgroundPositionX failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_backgroundPositionX(style, &v); - ok(hres == S_OK, "get_backgroundPositionX failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundPositionX failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"10px"), "backgroundPositionX = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
/* backgroundPositionY */ hres = IHTMLStyle_get_backgroundPositionY(style, &v); - ok(hres == S_OK, "get_backgroundPositionY failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundPositionY failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); VariantClear(&v);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"15px"); hres = IHTMLStyle_put_backgroundPositionY(style, v); - ok(hres == S_OK, "put_backgroundPositionY failed: %08x\n", hres); + ok(hres == S_OK, "put_backgroundPositionY failed: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_backgroundPositionY(style, &v); - ok(hres == S_OK, "get_backgroundPositionY failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundPositionY failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"15px"), "backgroundPositionY = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -2806,29 +2806,29 @@ static void test_body_style(IHTMLStyle *style) /* backgroundPosition */ str = NULL; hres = IHTMLStyle_get_backgroundPosition(style, &str); - ok(hres == S_OK, "get_backgroundPosition failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundPosition failed: %08lx\n", hres); ok(!lstrcmpW(str, L"10px 15px"), "backgroundPosition = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"center 20%"); hres = IHTMLStyle_put_backgroundPosition(style, str); - ok(hres == S_OK, "put_backgroundPosition failed: %08x\n", hres); + ok(hres == S_OK, "put_backgroundPosition failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLStyle_get_backgroundPosition(style, &str); - ok(hres == S_OK, "get_backgroundPosition failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundPosition failed: %08lx\n", hres); ok(!lstrcmpW(str, L"center 20%"), "backgroundPosition = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLStyle_get_backgroundPositionX(style, &v); - ok(hres == S_OK, "get_backgroundPositionX failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundPositionX failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"center"), "backgroundPositionX = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_get_backgroundPositionY(style, &v); - ok(hres == S_OK, "get_backgroundPositionY failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundPositionY failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); ok(!lstrcmpW(V_BSTR(&v), L"20%"), "backgroundPositionY = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v); @@ -2836,107 +2836,107 @@ static void test_body_style(IHTMLStyle *style) if(css_style) { str = SysAllocString(L"left 21%"); hres = IHTMLCSSStyleDeclaration_put_backgroundPosition(css_style, str); - ok(hres == S_OK, "put_backgroundPosition failed: %08x\n", hres); + ok(hres == S_OK, "put_backgroundPosition failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration_get_backgroundPosition(css_style, &str); - ok(hres == S_OK, "get_backgroundPosition failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundPosition failed: %08lx\n", hres); ok(!lstrcmpW(str, L"left 21%"), "backgroundPosition = %s\n", wine_dbgstr_w(str)); SysFreeString(str); }
/* borderTopWidth */ hres = IHTMLStyle_get_borderTopWidth(style, &vDefault); - ok(hres == S_OK, "get_borderTopWidth: %08x\n", hres); + ok(hres == S_OK, "get_borderTopWidth: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"10px"); hres = IHTMLStyle_put_borderTopWidth(style, v); - ok(hres == S_OK, "put_borderTopWidth: %08x\n", hres); + ok(hres == S_OK, "put_borderTopWidth: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_borderTopWidth(style, &v); - ok(hres == S_OK, "get_borderTopWidth: %08x\n", hres); + ok(hres == S_OK, "get_borderTopWidth: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"10px"), "expected 10px = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_put_borderTopWidth(style, vDefault); - ok(hres == S_OK, "put_borderTopWidth: %08x\n", hres); + ok(hres == S_OK, "put_borderTopWidth: %08lx\n", hres); VariantClear(&vDefault);
/* borderRightWidth */ hres = IHTMLStyle_get_borderRightWidth(style, &vDefault); - ok(hres == S_OK, "get_borderRightWidth: %08x\n", hres); + ok(hres == S_OK, "get_borderRightWidth: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"10"); hres = IHTMLStyle_put_borderRightWidth(style, v); - ok(hres == S_OK, "put_borderRightWidth: %08x\n", hres); + ok(hres == S_OK, "put_borderRightWidth: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_borderRightWidth(style, &v); - ok(hres == S_OK, "get_borderRightWidth: %08x\n", hres); + ok(hres == S_OK, "get_borderRightWidth: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), compat_mode < COMPAT_IE9 ? L"10px" : L"1px"), "borderRightWidth = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_put_borderRightWidth(style, vDefault); - ok(hres == S_OK, "put_borderRightWidth: %08x\n", hres); + ok(hres == S_OK, "put_borderRightWidth: %08lx\n", hres); VariantClear(&vDefault);
/* borderBottomWidth */ hres = IHTMLStyle_get_borderBottomWidth(style, &vDefault); - ok(hres == S_OK, "get_borderBottomWidth: %08x\n", hres); + ok(hres == S_OK, "get_borderBottomWidth: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"10"); hres = IHTMLStyle_put_borderBottomWidth(style, v); - ok(hres == S_OK, "put_borderBottomWidth: %08x\n", hres); + ok(hres == S_OK, "put_borderBottomWidth: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_borderBottomWidth(style, &v); - ok(hres == S_OK, "get_borderBottomWidth: %08x\n", hres); + ok(hres == S_OK, "get_borderBottomWidth: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), compat_mode < COMPAT_IE9 ? L"10px" : L"1px"), "borderBottomWidth = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_put_borderBottomWidth(style, vDefault); - ok(hres == S_OK, "put_borderBottomWidth: %08x\n", hres); + ok(hres == S_OK, "put_borderBottomWidth: %08lx\n", hres); VariantClear(&vDefault);
/* borderLeftWidth */ hres = IHTMLStyle_get_borderLeftWidth(style, &vDefault); - ok(hres == S_OK, "get_borderLeftWidth: %08x\n", hres); + ok(hres == S_OK, "get_borderLeftWidth: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"10"); hres = IHTMLStyle_put_borderLeftWidth(style, v); - ok(hres == S_OK, "put_borderLeftWidth: %08x\n", hres); + ok(hres == S_OK, "put_borderLeftWidth: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_borderLeftWidth(style, &v); - ok(hres == S_OK, "get_borderLeftWidth: %08x\n", hres); + ok(hres == S_OK, "get_borderLeftWidth: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), compat_mode < COMPAT_IE9 ? L"10px" : L"1px"), "expected 10px = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_put_borderLeftWidth(style, vDefault); - ok(hres == S_OK, "put_borderLeftWidth: %08x\n", hres); + ok(hres == S_OK, "put_borderLeftWidth: %08lx\n", hres); VariantClear(&vDefault);
/* wordSpacing */ hres = IHTMLStyle_get_wordSpacing(style, &vDefault); - ok(hres == S_OK, "get_wordSpacing: %08x\n", hres); + ok(hres == S_OK, "get_wordSpacing: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"10"); hres = IHTMLStyle_put_wordSpacing(style, v); - ok(hres == S_OK, "put_wordSpacing: %08x\n", hres); + ok(hres == S_OK, "put_wordSpacing: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_wordSpacing(style, &v); - ok(hres == S_OK, "get_wordSpacing: %08x\n", hres); + ok(hres == S_OK, "get_wordSpacing: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"10px"), "expected 10px = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -2945,21 +2945,21 @@ static void test_body_style(IHTMLStyle *style) VariantClear(&v);
hres = IHTMLStyle_put_wordSpacing(style, vDefault); - ok(hres == S_OK, "put_wordSpacing: %08x\n", hres); + ok(hres == S_OK, "put_wordSpacing: %08lx\n", hres); VariantClear(&vDefault);
/* letterSpacing */ hres = IHTMLStyle_get_letterSpacing(style, &vDefault); - ok(hres == S_OK, "get_letterSpacing: %08x\n", hres); + ok(hres == S_OK, "get_letterSpacing: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"11"); hres = IHTMLStyle_put_letterSpacing(style, v); - ok(hres == S_OK, "put_letterSpacing: %08x\n", hres); + ok(hres == S_OK, "put_letterSpacing: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_letterSpacing(style, &v); - ok(hres == S_OK, "get_letterSpacing: %08x\n", hres); + ok(hres == S_OK, "get_letterSpacing: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v)); if(compat_mode < COMPAT_IE9) ok(!lstrcmpW(V_BSTR(&v), L"11px"), "letterSpacing = %s\n", wine_dbgstr_w(V_BSTR(&v))); @@ -2968,151 +2968,151 @@ static void test_body_style(IHTMLStyle *style) VariantClear(&v);
hres = IHTMLStyle_put_letterSpacing(style, vDefault); - ok(hres == S_OK, "put_letterSpacing: %08x\n", hres); + ok(hres == S_OK, "put_letterSpacing: %08lx\n", hres); VariantClear(&vDefault);
/* borderTopColor */ hres = IHTMLStyle_get_borderTopColor(style, &vDefault); - ok(hres == S_OK, "get_borderTopColor: %08x\n", hres); + ok(hres == S_OK, "get_borderTopColor: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"red"); hres = IHTMLStyle_put_borderTopColor(style, v); - ok(hres == S_OK, "put_borderTopColor: %08x\n", hres); + ok(hres == S_OK, "put_borderTopColor: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_borderTopColor(style, &v); - ok(hres == S_OK, "get_borderTopColor: %08x\n", hres); + ok(hres == S_OK, "get_borderTopColor: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"red"), "expected red = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_put_borderTopColor(style, vDefault); - ok(hres == S_OK, "put_borderTopColor: %08x\n", hres); + ok(hres == S_OK, "put_borderTopColor: %08lx\n", hres);
/* borderRightColor */ hres = IHTMLStyle_get_borderRightColor(style, &vDefault); - ok(hres == S_OK, "get_borderRightColor: %08x\n", hres); + ok(hres == S_OK, "get_borderRightColor: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"blue"); hres = IHTMLStyle_put_borderRightColor(style, v); - ok(hres == S_OK, "put_borderRightColor: %08x\n", hres); + ok(hres == S_OK, "put_borderRightColor: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_borderRightColor(style, &v); - ok(hres == S_OK, "get_borderRightColor: %08x\n", hres); + ok(hres == S_OK, "get_borderRightColor: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"blue"), "expected blue = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_put_borderRightColor(style, vDefault); - ok(hres == S_OK, "putborderRightColorr: %08x\n", hres); + ok(hres == S_OK, "putborderRightColorr: %08lx\n", hres);
/* borderBottomColor */ hres = IHTMLStyle_get_borderBottomColor(style, &vDefault); - ok(hres == S_OK, "get_borderBottomColor: %08x\n", hres); + ok(hres == S_OK, "get_borderBottomColor: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"cyan"); hres = IHTMLStyle_put_borderBottomColor(style, v); - ok(hres == S_OK, "put_borderBottomColor: %08x\n", hres); + ok(hres == S_OK, "put_borderBottomColor: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_borderBottomColor(style, &v); - ok(hres == S_OK, "get_borderBottomColor: %08x\n", hres); + ok(hres == S_OK, "get_borderBottomColor: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"cyan"), "expected cyan = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_put_borderBottomColor(style, vDefault); - ok(hres == S_OK, "put_borderBottomColor: %08x\n", hres); + ok(hres == S_OK, "put_borderBottomColor: %08lx\n", hres);
/* borderLeftColor */ hres = IHTMLStyle_get_borderLeftColor(style, &vDefault); - ok(hres == S_OK, "get_borderLeftColor: %08x\n", hres); + ok(hres == S_OK, "get_borderLeftColor: %08lx\n", hres);
V_VT(&v) = VT_BSTR; V_BSTR(&v) = SysAllocString(L"cyan"); hres = IHTMLStyle_put_borderLeftColor(style, v); - ok(hres == S_OK, "put_borderLeftColor: %08x\n", hres); + ok(hres == S_OK, "put_borderLeftColor: %08lx\n", hres); VariantClear(&v);
hres = IHTMLStyle_get_borderLeftColor(style, &v); - ok(hres == S_OK, "get_borderLeftColor: %08x\n", hres); + ok(hres == S_OK, "get_borderLeftColor: %08lx\n", hres); ok(!lstrcmpW(V_BSTR(&v), L"cyan"), "expected cyan = %s\n", wine_dbgstr_w(V_BSTR(&v))); VariantClear(&v);
hres = IHTMLStyle_put_borderLeftColor(style, vDefault); - ok(hres == S_OK, "put_borderLeftColor: %08x\n", hres); + ok(hres == S_OK, "put_borderLeftColor: %08lx\n", hres);
/* clip */ hres = IHTMLStyle_get_clip(style, &str); - ok(hres == S_OK, "get_clip failed: %08x\n", hres); + ok(hres == S_OK, "get_clip failed: %08lx\n", hres); ok(!str, "clip = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"rect(0px 1px 500px 505px)"); hres = IHTMLStyle_put_clip(style, str); - ok(hres == S_OK, "put_clip failed: %08x\n", hres); + ok(hres == S_OK, "put_clip failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_clip(style, &str); - ok(hres == S_OK, "get_clip failed: %08x\n", hres); + ok(hres == S_OK, "get_clip failed: %08lx\n", hres); ok(!lstrcmpW(str, compat_mode < COMPAT_IE9 ? L"rect(0px 1px 500px 505px)" : L"rect(0px, 1px, 500px, 505px)"), "clip = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
/* clear */ hres = IHTMLStyle_get_clear(style, &str); - ok(hres == S_OK, "get_clear failed: %08x\n", hres); + ok(hres == S_OK, "get_clear failed: %08lx\n", hres); ok(!str, "clear = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"both"); hres = IHTMLStyle_put_clear(style, str); - ok(hres == S_OK, "put_clear failed: %08x\n", hres); + ok(hres == S_OK, "put_clear failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_clear(style, &str); - ok(hres == S_OK, "get_clear failed: %08x\n", hres); + ok(hres == S_OK, "get_clear failed: %08lx\n", hres); ok(!lstrcmpW(str, L"both"), "clear = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
/* pageBreakAfter */ hres = IHTMLStyle_get_pageBreakAfter(style, &str); - ok(hres == S_OK, "get_pageBreakAfter failed: %08x\n", hres); + ok(hres == S_OK, "get_pageBreakAfter failed: %08lx\n", hres); ok(!str, "pageBreakAfter = %s\n", wine_dbgstr_w(str));
if(css_style) { str = SysAllocString(L"right"); hres = IHTMLCSSStyleDeclaration_put_pageBreakAfter(css_style, str); - ok(hres == S_OK, "put_pageBreakAfter failed: %08x\n", hres); + ok(hres == S_OK, "put_pageBreakAfter failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLCSSStyleDeclaration_get_pageBreakAfter(css_style, &str); - ok(hres == S_OK, "get_pageBreakAfter failed: %08x\n", hres); + ok(hres == S_OK, "get_pageBreakAfter failed: %08lx\n", hres); ok(!lstrcmpW(str, L"right"), "pageBreakAfter = %s\n", wine_dbgstr_w(str)); SysFreeString(str); }
str = SysAllocString(L"always"); hres = IHTMLStyle_put_pageBreakAfter(style, str); - ok(hres == S_OK, "put_pageBreakAfter failed: %08x\n", hres); + ok(hres == S_OK, "put_pageBreakAfter failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_pageBreakAfter(style, &str); - ok(hres == S_OK, "get_pageBreakAfter failed: %08x\n", hres); + ok(hres == S_OK, "get_pageBreakAfter failed: %08lx\n", hres); ok(!lstrcmpW(str, L"always"), "pageBreakAfter = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
/* pageBreakBefore */ hres = IHTMLStyle_get_pageBreakBefore(style, &str); - ok(hres == S_OK, "get_pageBreakBefore failed: %08x\n", hres); + ok(hres == S_OK, "get_pageBreakBefore failed: %08lx\n", hres); ok(!str, "pageBreakBefore = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"always"); hres = IHTMLStyle_put_pageBreakBefore(style, str); - ok(hres == S_OK, "put_pageBreakBefore failed: %08x\n", hres); + ok(hres == S_OK, "put_pageBreakBefore failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_pageBreakBefore(style, &str); - ok(hres == S_OK, "get_pageBreakBefore failed: %08x\n", hres); + ok(hres == S_OK, "get_pageBreakBefore failed: %08lx\n", hres); ok(!lstrcmpW(str, L"always"), "pageBreakBefore = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
@@ -3120,70 +3120,70 @@ static void test_body_style(IHTMLStyle *style) test_style_remove_attribute(style, L"pageBreakBefore", VARIANT_FALSE);
hres = IHTMLStyle_get_pageBreakBefore(style, &str); - ok(hres == S_OK, "get_pageBreakBefore failed: %08x\n", hres); + ok(hres == S_OK, "get_pageBreakBefore failed: %08lx\n", hres); ok(!str, "pageBreakBefore = %s\n", wine_dbgstr_w(str));
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_whiteSpace(style, &str); - ok(hres == S_OK, "get_whiteSpace failed: %08x\n", hres); + ok(hres == S_OK, "get_whiteSpace failed: %08lx\n", hres); ok(!str, "whiteSpace = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"nowrap"); hres = IHTMLStyle_put_whiteSpace(style, str); SysFreeString(str); - ok(hres == S_OK, "put_whiteSpace failed: %08x\n", hres); + ok(hres == S_OK, "put_whiteSpace failed: %08lx\n", hres);
str = NULL; hres = IHTMLStyle_get_whiteSpace(style, &str); - ok(hres == S_OK, "get_whiteSpace failed: %08x\n", hres); + ok(hres == S_OK, "get_whiteSpace failed: %08lx\n", hres); ok(!lstrcmpW(str, L"nowrap"), "whiteSpace = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"normal"); hres = IHTMLStyle_put_whiteSpace(style, str); SysFreeString(str); - ok(hres == S_OK, "put_whiteSpace failed: %08x\n", hres); + ok(hres == S_OK, "put_whiteSpace failed: %08lx\n", hres);
str = NULL; hres = IHTMLStyle_get_whiteSpace(style, &str); - ok(hres == S_OK, "get_whiteSpace failed: %08x\n", hres); + ok(hres == S_OK, "get_whiteSpace failed: %08lx\n", hres); ok(!lstrcmpW(str, L"normal"), "whiteSpace = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
/* listStyleType */ hres = IHTMLStyle_get_listStyleType(style, &str); - ok(hres == S_OK, "get_listStyleType failed: %08x\n", hres); + ok(hres == S_OK, "get_listStyleType failed: %08lx\n", hres); ok(!str, "listStyleType = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"square"); hres = IHTMLStyle_put_listStyleType(style, str); - ok(hres == S_OK, "put_listStyleType failed: %08x\n", hres); + ok(hres == S_OK, "put_listStyleType failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLStyle_get_listStyleType(style, &str); - ok(hres == S_OK, "get_listStyleType failed: %08x\n", hres); + ok(hres == S_OK, "get_listStyleType failed: %08lx\n", hres); ok(!lstrcmpW(str, L"square"), "listStyleType = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"inside"); hres = IHTMLStyle_put_listStylePosition(style, str); - ok(hres == S_OK, "put_listStylePosition failed: %08x\n", hres); + ok(hres == S_OK, "put_listStylePosition failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLStyle_get_listStylePosition(style, &str); - ok(hres == S_OK, "get_listStylePosition failed: %08x\n", hres); + ok(hres == S_OK, "get_listStylePosition failed: %08lx\n", hres); ok(!lstrcmpW(str, L"inside"), "listStyleType = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"decimal-leading-zero none inside"); hres = IHTMLStyle_put_listStyle(style, str); ok(hres == S_OK || broken(hres == E_INVALIDARG), /* win 2000 */ - "put_listStyle(%s) failed: %08x\n", wine_dbgstr_w(str), hres); + "put_listStyle(%s) failed: %08lx\n", wine_dbgstr_w(str), hres); SysFreeString(str);
if (hres != E_INVALIDARG) { hres = IHTMLStyle_get_listStyle(style, &str); - ok(hres == S_OK, "get_listStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_listStyle failed: %08lx\n", hres); ok(wcsstr(str, L"decimal-leading-zero") && wcsstr(str, L"inside"), "listStyle = %s\n", wine_dbgstr_w(str)); if(compat_mode < COMPAT_IE9) @@ -3199,72 +3199,72 @@ static void test_body_style(IHTMLStyle *style)
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_styleFloat(style, &str); - ok(hres == S_OK, "get_styleFloat failed: %08x\n", hres); + ok(hres == S_OK, "get_styleFloat failed: %08lx\n", hres); ok(!str, "styleFloat = %s\n", wine_dbgstr_w(str));
str = SysAllocString(L"left"); hres = IHTMLStyle_put_styleFloat(style, str); - ok(hres == S_OK, "put_styleFloat failed: %08x\n", hres); + ok(hres == S_OK, "put_styleFloat failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLStyle_get_styleFloat(style, &str); - ok(hres == S_OK, "get_styleFloat failed: %08x\n", hres); + ok(hres == S_OK, "get_styleFloat failed: %08lx\n", hres); ok(!lstrcmpW(str, L"left"), "styleFloat = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
if(css_style) { str = NULL; hres = IHTMLCSSStyleDeclaration_get_cssFloat(css_style, &str); - ok(hres == S_OK, "get_cssFloat failed: %08x\n", hres); + ok(hres == S_OK, "get_cssFloat failed: %08lx\n", hres); ok(!lstrcmpW(str, L"left"), "cssFloat = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration_get_styleFloat(css_style, &str); - ok(hres == S_OK, "get_styleFloat failed: %08x\n", hres); + ok(hres == S_OK, "get_styleFloat failed: %08lx\n", hres); ok(!lstrcmpW(str, L"left"), "styleFloat = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"right"); hres = IHTMLCSSStyleDeclaration_put_cssFloat(css_style, str); - ok(hres == S_OK, "put_styleFloat failed: %08x\n", hres); + ok(hres == S_OK, "put_styleFloat failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration_get_cssFloat(css_style, &str); - ok(hres == S_OK, "get_cssFloat failed: %08x\n", hres); + ok(hres == S_OK, "get_cssFloat failed: %08lx\n", hres); ok(!lstrcmpW(str, L"right"), "styleFloat = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
str = SysAllocString(L"left"); hres = IHTMLCSSStyleDeclaration_put_styleFloat(css_style, str); - ok(hres == S_OK, "put_styleFloat failed: %08x\n", hres); + ok(hres == S_OK, "put_styleFloat failed: %08lx\n", hres); SysFreeString(str);
str = NULL; hres = IHTMLCSSStyleDeclaration_get_cssFloat(css_style, &str); - ok(hres == S_OK, "get_cssFloat failed: %08x\n", hres); + ok(hres == S_OK, "get_cssFloat failed: %08lx\n", hres); ok(!lstrcmpW(str, L"left"), "styleFloat = %s\n", wine_dbgstr_w(str)); SysFreeString(str); }
hres = IHTMLStyle_QueryInterface(style, &IID_IHTMLStyle2, (void**)&style2); - ok(hres == S_OK, "Could not get IHTMLStyle2 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLStyle2 iface: %08lx\n", hres); if(SUCCEEDED(hres)) { test_style2(style2); IHTMLStyle2_Release(style2); }
hres = IHTMLStyle_QueryInterface(style, &IID_IHTMLStyle3, (void**)&style3); - ok(hres == S_OK, "Could not get IHTMLStyle3 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLStyle3 iface: %08lx\n", hres); if(SUCCEEDED(hres)) { test_style3(style3, css_style); IHTMLStyle3_Release(style3); }
hres = IHTMLStyle_QueryInterface(style, &IID_IHTMLStyle4, (void**)&style4); - ok(hres == S_OK, "Could not get IHTMLStyle4 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLStyle4 iface: %08lx\n", hres); if(SUCCEEDED(hres)) { test_style4(style4); IHTMLStyle4_Release(style4); @@ -3306,7 +3306,7 @@ static void _test_style_filter(unsigned line, IHTMLStyle *style, const WCHAR *ex
str = (void*)0xdeadbeef; hres = IHTMLStyle_get_filter(style, &str); - ok_(__FILE__,line)(hres == S_OK, "get_filter failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_filter failed: %08lx\n", hres); if(exval) ok_(__FILE__,line)(str && !wcscmp(str, exval), "filter = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exval)); else @@ -3323,7 +3323,7 @@ static void _test_current_style_filter(unsigned line, IHTMLCurrentStyle2 *style,
str = (void*)0xdeadbeef; hres = IHTMLCurrentStyle2_get_filter(style, &str); - ok_(__FILE__,line)(hres == S_OK, "get_filter failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "get_filter failed: %08lx\n", hres); if(exval) ok_(__FILE__,line)(str && !lstrcmpW(str, exval), "filter = %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(exval)); else @@ -3340,7 +3340,7 @@ static void _set_style_filter(unsigned line, IHTMLStyle *style, const WCHAR *val
str = SysAllocString(val); hres = IHTMLStyle_put_filter(style, str); - ok_(__FILE__,line)(hres == S_OK, "put_filter failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "put_filter failed: %08lx\n", hres); SysFreeString(str);
_test_style_filter(line, style, val); @@ -3355,10 +3355,10 @@ static void test_style_filters(IHTMLElement *elem) HRESULT hres;
hres = IHTMLElement_get_style(elem, &style); - ok(hres == S_OK, "get_style failed: %08x\n", hres); + ok(hres == S_OK, "get_style failed: %08lx\n", hres);
hres = IHTMLElement2_get_currentStyle(elem2, ¤t_style); - ok(hres == S_OK, "get_style failed: %08x\n", hres); + ok(hres == S_OK, "get_style failed: %08lx\n", hres);
current_style2 = get_current_style2_iface((IUnknown*)current_style);
@@ -3371,7 +3371,7 @@ static void test_style_filters(IHTMLElement *elem) IHTMLStyle_Release(style);
hres = IHTMLElement_get_style(elem, &style); - ok(hres == S_OK, "get_style failed: %08x\n", hres); + ok(hres == S_OK, "get_style failed: %08lx\n", hres);
test_style_filter(style, L"alpha(opacity=100)"); set_style_filter(style, L"xxx(a,b,c) alpha(opacity=100)"); @@ -3398,281 +3398,281 @@ static void test_current_style(IHTMLCurrentStyle *current_style) VARIANT v;
hres = IHTMLCurrentStyle_get_display(current_style, &str); - ok(hres == S_OK, "get_display failed: %08x\n", hres); + ok(hres == S_OK, "get_display failed: %08lx\n", hres); ok(!lstrcmpW(str, L"block"), "get_display returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_position(current_style, &str); - ok(hres == S_OK, "get_position failed: %08x\n", hres); + ok(hres == S_OK, "get_position failed: %08lx\n", hres); ok(!lstrcmpW(str, L"absolute"), "get_position returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_fontFamily(current_style, &str); - ok(hres == S_OK, "get_fontFamily failed: %08x\n", hres); + ok(hres == S_OK, "get_fontFamily failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLCurrentStyle_get_fontStyle(current_style, &str); - ok(hres == S_OK, "get_fontStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_fontStyle failed: %08lx\n", hres); ok(!lstrcmpW(str, L"normal"), "get_fontStyle returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_backgroundImage(current_style, &str); - ok(hres == S_OK, "get_backgroundImage failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundImage failed: %08lx\n", hres); ok(!lstrcmpW(str, L"none"), "get_backgroundImage returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_fontVariant(current_style, &str); - ok(hres == S_OK, "get_fontVariant failed: %08x\n", hres); + ok(hres == S_OK, "get_fontVariant failed: %08lx\n", hres); ok(!lstrcmpW(str, L"normal"), "get_fontVariant returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_borderTopStyle(current_style, &str); - ok(hres == S_OK, "get_borderTopStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_borderTopStyle failed: %08lx\n", hres); ok(!lstrcmpW(str, L"none"), "get_borderTopStyle returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_borderRightStyle(current_style, &str); - ok(hres == S_OK, "get_borderRightStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_borderRightStyle failed: %08lx\n", hres); ok(!lstrcmpW(str, L"none"), "get_borderRightStyle returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_borderBottomStyle(current_style, &str); - ok(hres == S_OK, "get_borderBottomStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_borderBottomStyle failed: %08lx\n", hres); ok(!lstrcmpW(str, L"none"), "get_borderBottomStyle returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_borderLeftStyle(current_style, &str); - ok(hres == S_OK, "get_borderLeftStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_borderLeftStyle failed: %08lx\n", hres); ok(!lstrcmpW(str, L"none"), "get_borderLeftStyle returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_textAlign(current_style, &str); - ok(hres == S_OK, "get_textAlign failed: %08x\n", hres); + ok(hres == S_OK, "get_textAlign failed: %08lx\n", hres); ok(!lstrcmpW(str, L"center"), "get_textAlign returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_textDecoration(current_style, &str); - ok(hres == S_OK, "get_textDecoration failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecoration failed: %08lx\n", hres); ok(!lstrcmpW(str, L"none"), "get_textDecoration returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_cursor(current_style, &str); - ok(hres == S_OK, "get_cursor failed: %08x\n", hres); + ok(hres == S_OK, "get_cursor failed: %08lx\n", hres); ok(!lstrcmpW(str, L"default"), "get_cursor returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_backgroundRepeat(current_style, &str); - ok(hres == S_OK, "get_backgroundRepeat failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundRepeat failed: %08lx\n", hres); ok(!lstrcmpW(str, L"repeat"), "get_backgroundRepeat returned %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_borderColor(current_style, &str); - ok(hres == S_OK, "get_borderColor failed: %08x\n", hres); + ok(hres == S_OK, "get_borderColor failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLCurrentStyle_get_borderStyle(current_style, &str); - ok(hres == S_OK, "get_borderStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_borderStyle failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLCurrentStyle_get_visibility(current_style, &str); - ok(hres == S_OK, "get_visibility failed: %08x\n", hres); + ok(hres == S_OK, "get_visibility failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLCurrentStyle_get_overflow(current_style, &str); - ok(hres == S_OK, "get_overflow failed: %08x\n", hres); + ok(hres == S_OK, "get_overflow failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLCurrentStyle_get_borderWidth(current_style, &str); - ok(hres == S_OK, "get_borderWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_borderWidth failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLCurrentStyle_get_margin(current_style, &str); - ok(hres == S_OK, "get_margin failed: %08x\n", hres); + ok(hres == S_OK, "get_margin failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLCurrentStyle_get_padding(current_style, &str); - ok(hres == S_OK, "get_padding failed: %08x\n", hres); + ok(hres == S_OK, "get_padding failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLCurrentStyle_get_fontWeight(current_style, &v); - ok(hres == S_OK, "get_fontWeight failed: %08x\n", hres); + ok(hres == S_OK, "get_fontWeight failed: %08lx\n", hres); ok(V_VT(&v) == VT_I4, "V_VT(v) = %d\n", V_VT(&v)); - ok( V_I4(&v) == 400, "expect 400 got (%d)\n", V_I4(&v)); + ok( V_I4(&v) == 400, "expect 400 got (%ld)\n", V_I4(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_fontSize(current_style, &v); - ok(hres == S_OK, "get_fontSize failed: %08x\n", hres); + ok(hres == S_OK, "get_fontSize failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_left(current_style, &v); - ok(hres == S_OK, "get_left failed: %08x\n", hres); + ok(hres == S_OK, "get_left failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_top(current_style, &v); - ok(hres == S_OK, "get_top failed: %08x\n", hres); + ok(hres == S_OK, "get_top failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_width(current_style, &v); - ok(hres == S_OK, "get_width failed: %08x\n", hres); + ok(hres == S_OK, "get_width failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_height(current_style, &v); - ok(hres == S_OK, "get_height failed: %08x\n", hres); + ok(hres == S_OK, "get_height failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_paddingLeft(current_style, &v); - ok(hres == S_OK, "get_paddingLeft failed: %08x\n", hres); + ok(hres == S_OK, "get_paddingLeft failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_zIndex(current_style, &v); - ok(hres == S_OK, "get_zIndex failed: %08x\n", hres); + ok(hres == S_OK, "get_zIndex failed: %08lx\n", hres); ok(V_VT(&v) == VT_I4, "V_VT(v) = %d\n", V_VT(&v)); - ok( V_I4(&v) == 1, "expect 1 got (%d)\n", V_I4(&v)); + ok( V_I4(&v) == 1, "expect 1 got (%ld)\n", V_I4(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_verticalAlign(current_style, &v); - ok(hres == S_OK, "get_verticalAlign failed: %08x\n", hres); + ok(hres == S_OK, "get_verticalAlign failed: %08lx\n", hres); test_var_bstr(&v, compat_mode < COMPAT_IE9 ? L"100px" : L"middle"); VariantClear(&v);
hres = IHTMLCurrentStyle_get_marginRight(current_style, &v); - ok(hres == S_OK, "get_marginRight failed: %08x\n", hres); + ok(hres == S_OK, "get_marginRight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_marginLeft(current_style, &v); - ok(hres == S_OK, "get_marginLeft failed: %08x\n", hres); + ok(hres == S_OK, "get_marginLeft failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_borderLeftWidth(current_style, &v); - ok(hres == S_OK, "get_borderLeftWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_borderLeftWidth failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
V_BSTR(&v) = NULL; hres = IHTMLCurrentStyle_get_borderRightWidth(current_style, &v); - ok(hres == S_OK, "get_borderRightWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_borderRightWidth failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_borderBottomWidth(current_style, &v); - ok(hres == S_OK, "get_borderBottomWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_borderBottomWidth failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_borderTopWidth(current_style, &v); - ok(hres == S_OK, "get_borderTopWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_borderTopWidth failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_color(current_style, &v); - ok(hres == S_OK, "get_color failed: %08x\n", hres); + ok(hres == S_OK, "get_color failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_backgroundColor(current_style, &v); - ok(hres == S_OK, "get_backgroundColor failed: %08x\n", hres); + ok(hres == S_OK, "get_backgroundColor failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_borderLeftColor(current_style, &v); - ok(hres == S_OK, "get_borderLeftColor failed: %08x\n", hres); + ok(hres == S_OK, "get_borderLeftColor failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_borderTopColor(current_style, &v); - ok(hres == S_OK, "get_borderTopColor failed: %08x\n", hres); + ok(hres == S_OK, "get_borderTopColor failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_borderRightColor(current_style, &v); - ok(hres == S_OK, "get_borderRightColor failed: %08x\n", hres); + ok(hres == S_OK, "get_borderRightColor failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_borderBottomColor(current_style, &v); - ok(hres == S_OK, "get_borderBottomColor failed: %08x\n", hres); + ok(hres == S_OK, "get_borderBottomColor failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_paddingTop(current_style, &v); - ok(hres == S_OK, "get_paddingTop failed: %08x\n", hres); + ok(hres == S_OK, "get_paddingTop failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_paddingRight(current_style, &v); - ok(hres == S_OK, "get_paddingRight failed: %08x\n", hres); + ok(hres == S_OK, "get_paddingRight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_paddingBottom(current_style, &v); - ok(hres == S_OK, "get_paddingRight failed: %08x\n", hres); + ok(hres == S_OK, "get_paddingRight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_letterSpacing(current_style, &v); - ok(hres == S_OK, "get_letterSpacing failed: %08x\n", hres); + ok(hres == S_OK, "get_letterSpacing failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_marginTop(current_style, &v); - ok(hres == S_OK, "get_marginTop failed: %08x\n", hres); + ok(hres == S_OK, "get_marginTop failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_marginBottom(current_style, &v); - ok(hres == S_OK, "get_marginBottom failed: %08x\n", hres); + ok(hres == S_OK, "get_marginBottom failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_right(current_style, &v); - ok(hres == S_OK, "get_Right failed: %08x\n", hres); + ok(hres == S_OK, "get_Right failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_bottom(current_style, &v); - ok(hres == S_OK, "get_bottom failed: %08x\n", hres); + ok(hres == S_OK, "get_bottom failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_lineHeight(current_style, &v); - ok(hres == S_OK, "get_lineHeight failed: %08x\n", hres); + ok(hres == S_OK, "get_lineHeight failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_textIndent(current_style, &v); - ok(hres == S_OK, "get_textIndent failed: %08x\n", hres); + ok(hres == S_OK, "get_textIndent failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(v) = %d\n", V_VT(&v)); VariantClear(&v);
hres = IHTMLCurrentStyle_get_textTransform(current_style, &str); - ok(hres == S_OK, "get_textTransform failed: %08x\n", hres); + ok(hres == S_OK, "get_textTransform failed: %08lx\n", hres); SysFreeString(str);
hres = IHTMLCurrentStyle_get_styleFloat(current_style, &str); - ok(hres == S_OK, "get_styleFloat failed: %08x\n", hres); + ok(hres == S_OK, "get_styleFloat failed: %08lx\n", hres); ok(!lstrcmpW(str, L"none"), "styleFloat = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_overflowX(current_style, &str); - ok(hres == S_OK, "get_overflowX failed: %08x\n", hres); + ok(hres == S_OK, "get_overflowX failed: %08lx\n", hres); ok(!lstrcmpW(str, L"hidden"), "overflowX = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_overflowY(current_style, &str); - ok(hres == S_OK, "get_overflowY failed: %08x\n", hres); + ok(hres == S_OK, "get_overflowY failed: %08lx\n", hres); ok(!lstrcmpW(str, L"hidden"), "overflowY = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
hres = IHTMLCurrentStyle_get_direction(current_style, &str); - ok(hres == S_OK, "get_direction failed: %08x\n", hres); + ok(hres == S_OK, "get_direction failed: %08lx\n", hres); ok(!lstrcmpW(str, L"ltr"), "direction = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
@@ -3680,26 +3680,26 @@ static void test_current_style(IHTMLCurrentStyle *current_style)
b = 100; hres = IHTMLCurrentStyle2_get_hasLayout(current_style2, &b); - ok(hres == S_OK, "get_hasLayout failed: %08x\n", hres); + ok(hres == S_OK, "get_hasLayout failed: %08lx\n", hres); ok(b == VARIANT_TRUE, "hasLayout = %x\n", b);
IHTMLCurrentStyle2_Release(current_style2);
hres = IHTMLCurrentStyle_QueryInterface(current_style, &IID_IHTMLCurrentStyle3, (void**)¤t_style3); - ok(hres == S_OK, "Could not get IHTMLCurrentStyle3 iface: %08x\n", hres); + ok(hres == S_OK, "Could not get IHTMLCurrentStyle3 iface: %08lx\n", hres);
hres = IHTMLCurrentStyle3_get_whiteSpace(current_style3, &str); - ok(hres == S_OK, "get_whiteSpace failed: %08x\n", hres); + ok(hres == S_OK, "get_whiteSpace failed: %08lx\n", hres); ok(!lstrcmpW(str, L"normal"), "whiteSpace = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
IHTMLCurrentStyle3_Release(current_style3);
hres = IHTMLCurrentStyle_QueryInterface(current_style, &IID_IHTMLCurrentStyle4, (void**)¤t_style4); - ok(hres == S_OK || broken(hres == E_NOINTERFACE), "Could not get IHTMLCurrentStyle4 iface: %08x\n", hres); + ok(hres == S_OK || broken(hres == E_NOINTERFACE), "Could not get IHTMLCurrentStyle4 iface: %08lx\n", hres); if(SUCCEEDED(hres)) { hres = IHTMLCurrentStyle4_get_minWidth(current_style4, &v); - ok(hres == S_OK, "get_minWidth failed: %08x\n", hres); + ok(hres == S_OK, "get_minWidth failed: %08lx\n", hres); ok(V_VT(&v) == VT_BSTR, "V_VT(minWidth) = %d\n", V_VT(&v)); VariantClear(&v);
@@ -3717,12 +3717,12 @@ static void basic_style_test(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_body(doc, &elem); - ok(hres == S_OK, "get_body failed: %08x\n", hres); + ok(hres == S_OK, "get_body failed: %08lx\n", hres);
elem_set_innerhtml(elem, L"<div id="divid"></div>");
hres = IHTMLElement_get_style(elem, &style); - ok(hres == S_OK, "get_style failed: %08x\n", hres); + ok(hres == S_OK, "get_style failed: %08lx\n", hres);
test_body_style(style);
@@ -3762,15 +3762,15 @@ static void runtimestyle_test(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_body(doc, &elem); - ok(hres == S_OK, "get_body failed: %08x\n", hres); + ok(hres == S_OK, "get_body failed: %08lx\n", hres);
elem2 = get_elem2_iface((IUnknown*)elem);
hres = IHTMLElement2_get_runtimeStyle(elem2, &runtime_style); - ok(hres == S_OK, "get_runtimeStyle failed: %08x\n", hres); + ok(hres == S_OK, "get_runtimeStyle failed: %08lx\n", hres);
hres = IHTMLElement_get_style(elem, &style); - ok(hres == S_OK, "get_style failed: %08x\n", hres); + ok(hres == S_OK, "get_style failed: %08lx\n", hres);
test_text_decoration(style, NULL); test_text_decoration(runtime_style, NULL); @@ -3778,7 +3778,7 @@ static void runtimestyle_test(IHTMLDocument2 *doc) test_text_decoration(style, L"underline");
hres = IHTMLStyle_get_textDecoration(style, &str); - ok(hres == S_OK, "get_textDecoration failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecoration failed: %08lx\n", hres); ok(broken(!str) || !lstrcmpW(str, L"underline"), "textDecoration = %s\n", wine_dbgstr_w(str)); SysFreeString(str);
@@ -3786,7 +3786,7 @@ static void runtimestyle_test(IHTMLDocument2 *doc) test_text_decoration(runtime_style, L"blink");
hres = IHTMLStyle_get_textDecoration(style, &str); - ok(hres == S_OK, "get_textDecoration failed: %08x\n", hres); + ok(hres == S_OK, "get_textDecoration failed: %08lx\n", hres); todo_wine ok(!lstrcmpW(str, L"underline"), "textDecoration = %s\n", wine_dbgstr_w(str)); SysFreeString(str); @@ -3811,7 +3811,7 @@ static IHTMLDocument2 *create_document(void) #if !defined(__i386__) && !defined(__x86_64__) todo_wine #endif - ok(hres == S_OK, "CoCreateInstance failed: %08x\n", hres); + ok(hres == S_OK, "CoCreateInstance failed: %08lx\n", hres); if(FAILED(hres)) return NULL;
@@ -3855,7 +3855,7 @@ static HRESULT WINAPI PropertyNotifySink_OnChanged(IPropertyNotifySink *iface, D HRESULT hres;
hres = IHTMLDocument2_get_readyState(notif_doc, &state); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres);
if(!lstrcmpW(state, L"complete")) doc_complete = TRUE; @@ -3900,10 +3900,10 @@ static IHTMLDocument2 *create_doc_with_string(const char *str) mem = GlobalAlloc(0, len); memcpy(mem, str, len); hres = CreateStreamOnHGlobal(mem, TRUE, &stream); - ok(hres == S_OK, "Failed to create a stream, hr %#x.\n", hres); + ok(hres == S_OK, "Failed to create a stream, hr %#lx.\n", hres);
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistStreamInit, (void**)&init); - ok(hres == S_OK, "Failed to get IPersistStreamInit, hr %#x.\n", hres); + ok(hres == S_OK, "Failed to get IPersistStreamInit, hr %#lx.\n", hres);
IPersistStreamInit_Load(init, stream); IPersistStreamInit_Release(init); @@ -3920,15 +3920,15 @@ static void do_advise(IUnknown *unk, REFIID riid, IUnknown *unk_advise) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IConnectionPointContainer, (void**)&container); - ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08lx\n", hres);
hres = IConnectionPointContainer_FindConnectionPoint(container, riid, &cp); IConnectionPointContainer_Release(container); - ok(hres == S_OK, "FindConnectionPoint failed: %08x\n", hres); + ok(hres == S_OK, "FindConnectionPoint failed: %08lx\n", hres);
hres = IConnectionPoint_Advise(cp, unk_advise, &cookie); IConnectionPoint_Release(cp); - ok(hres == S_OK, "Advise failed: %08x\n", hres); + ok(hres == S_OK, "Advise failed: %08lx\n", hres); }
typedef void (*style_test_t)(IHTMLDocument2*); @@ -3954,7 +3954,7 @@ static void run_test(const char *str, style_test_t test)
ref = IHTMLDocument2_Release(doc); ok(!ref || broken(ref == 1), /* Vista */ - "ref = %d\n", ref); + "ref = %ld\n", ref); }
static BOOL check_ie(void) diff --git a/dlls/mshtml/tests/xmlhttprequest.c b/dlls/mshtml/tests/xmlhttprequest.c index 9fafb7afc68..0db5cb9717b 100644 --- a/dlls/mshtml/tests/xmlhttprequest.c +++ b/dlls/mshtml/tests/xmlhttprequest.c @@ -72,23 +72,23 @@ static void _test_disp(unsigned line, IUnknown *unk, const IID *diid, const IID HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IDispatchEx, (void**)&dispex); - ok_(__FILE__,line) (hres == S_OK, "Could not get IDispatch: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IDispatch: %08lx\n", hres); if(FAILED(hres)) return;
ticnt = 0xdeadbeef; hres = IDispatchEx_GetTypeInfoCount(dispex, &ticnt); - ok_(__FILE__,line) (hres == S_OK, "GetTypeInfoCount failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "GetTypeInfoCount failed: %08lx\n", hres); ok_(__FILE__,line) (ticnt == 1, "ticnt=%u\n", ticnt);
hres = IDispatchEx_GetTypeInfo(dispex, 0, 0, &typeinfo); - ok_(__FILE__,line) (hres == S_OK, "GetTypeInfo failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "GetTypeInfo failed: %08lx\n", hres);
if(SUCCEEDED(hres)) { TYPEATTR *type_attr;
hres = ITypeInfo_GetTypeAttr(typeinfo, &type_attr); - ok_(__FILE__,line) (hres == S_OK, "GetTypeAttr failed: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "GetTypeAttr failed: %08lx\n", hres); ok_(__FILE__,line) (IsEqualGUID(&type_attr->guid, diid) || broken(broken_diid && IsEqualGUID(&type_attr->guid, broken_diid)), "unexpected guid %s\n", wine_dbgstr_guid(&type_attr->guid)); @@ -104,12 +104,12 @@ static void _test_disp(unsigned line, IUnknown *unk, const IID *diid, const IID static void _test_event_args(unsigned line, const IID *dispiid, const IID *broken_dispiid, DISPID id, WORD wFlags, DISPPARAMS *pdp, VARIANT *pvarRes, EXCEPINFO *pei, IServiceProvider *pspCaller) { - ok_(__FILE__,line) (id == DISPID_VALUE, "id = %d\n", id); + ok_(__FILE__,line) (id == DISPID_VALUE, "id = %ld\n", id); ok_(__FILE__,line) (wFlags == DISPATCH_METHOD, "wFlags = %x\n", wFlags); ok_(__FILE__,line) (pdp != NULL, "pdp == NULL\n"); ok_(__FILE__,line) (pdp->cArgs == 1, "pdp->cArgs = %d\n", pdp->cArgs); ok_(__FILE__,line) (pdp->cNamedArgs == 1, "pdp->cNamedArgs = %d\n", pdp->cNamedArgs); - ok_(__FILE__,line) (pdp->rgdispidNamedArgs[0] == DISPID_THIS, "pdp->rgdispidNamedArgs[0] = %d\n", + ok_(__FILE__,line) (pdp->rgdispidNamedArgs[0] == DISPID_THIS, "pdp->rgdispidNamedArgs[0] = %ld\n", pdp->rgdispidNamedArgs[0]); ok_(__FILE__,line) (V_VT(pdp->rgvarg) == VT_DISPATCH, "V_VT(rgvarg) = %d\n", V_VT(pdp->rgvarg)); ok_(__FILE__,line) (pvarRes != NULL, "pvarRes == NULL\n"); @@ -180,7 +180,7 @@ static HRESULT WINAPI DispatchEx_GetDispID(IDispatchEx *iface, BSTR bstrName, DW
static HRESULT WINAPI DispatchEx_DeleteMemberByName(IDispatchEx *iface, BSTR bstrName, DWORD grfdex) { - ok(0, "unexpected call %s %x\n", wine_dbgstr_w(bstrName), grfdex); + ok(0, "unexpected call %s %lx\n", wine_dbgstr_w(bstrName), grfdex); return E_NOTIMPL; }
@@ -223,7 +223,7 @@ static HRESULT WINAPI xmlhttprequest_onreadystatechange(IDispatchEx *iface, DISP test_event_args(&DIID_DispHTMLXMLHttpRequest, &IID_IHTMLXMLHttpRequest, id, wFlags, pdp, pvarRes, pei, pspCaller);
hres = IHTMLXMLHttpRequest_get_readyState(xhr, &val); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres); readystatechange_cnt++;
switch(val) { @@ -241,7 +241,7 @@ static HRESULT WINAPI xmlhttprequest_onreadystatechange(IDispatchEx *iface, DISP CHECK_EXPECT(xmlhttprequest_onreadystatechange_done); break; default: - ok(0, "unexpected readyState: %d\n", val); + ok(0, "unexpected readyState: %ld\n", val); } return S_OK; } @@ -297,7 +297,7 @@ static HRESULT WINAPI PropertyNotifySink_OnChanged(IPropertyNotifySink *iface, D HRESULT hres;
hres = IHTMLDocument2_get_readyState(notif_doc, &state); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres);
if(!lstrcmpW(state, L"complete")) doc_complete = TRUE; @@ -332,15 +332,15 @@ static void do_advise(IUnknown *unk, REFIID riid, IUnknown *unk_advise) HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IConnectionPointContainer, (void**)&container); - ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08lx\n", hres);
hres = IConnectionPointContainer_FindConnectionPoint(container, riid, &cp); IConnectionPointContainer_Release(container); - ok(hres == S_OK, "FindConnectionPoint failed: %08x\n", hres); + ok(hres == S_OK, "FindConnectionPoint failed: %08lx\n", hres);
hres = IConnectionPoint_Advise(cp, unk_advise, &cookie); IConnectionPoint_Release(cp); - ok(hres == S_OK, "Advise failed: %08x\n", hres); + ok(hres == S_OK, "Advise failed: %08lx\n", hres); }
static void pump_msgs(BOOL *b) @@ -375,7 +375,7 @@ static void create_xmlhttprequest(IHTMLDocument2 *doc) HRESULT hres;
hres = IHTMLDocument2_get_parentWindow(doc, &window); - ok(hres == S_OK, "get_parentWindow failed: %08x\n", hres); + ok(hres == S_OK, "get_parentWindow failed: %08lx\n", hres); ok(window != NULL, "window == NULL\n");
hres = IHTMLWindow2_QueryInterface(window, &IID_IHTMLWindow5, (void**)&window5); @@ -388,17 +388,17 @@ static void create_xmlhttprequest(IHTMLDocument2 *doc) VariantInit(&var); hres = IHTMLWindow5_get_XMLHttpRequest(window5, &var); IHTMLWindow5_Release(window5); - ok(hres == S_OK, "get_XMLHttpRequest failed: %08x\n", hres); + ok(hres == S_OK, "get_XMLHttpRequest failed: %08lx\n", hres); ok(V_VT(&var) == VT_DISPATCH, "V_VT(&var) is %08x, expected VT_DISPATCH\n", V_VT(&var));
hres = IDispatch_QueryInterface(V_DISPATCH(&var), &IID_IHTMLXMLHttpRequestFactory, (void**)&factory); VariantClear(&var); - ok(hres == S_OK, "QueryInterface(IID_IHTMLXMLHttpRequestFactory) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IHTMLXMLHttpRequestFactory) failed: %08lx\n", hres); ok(factory != NULL, "factory == NULL\n");
hres = IHTMLXMLHttpRequestFactory_create(factory, &xhr); IHTMLXMLHttpRequestFactory_Release(factory); - ok(hres == S_OK, "create failed: %08x\n", hres); + ok(hres == S_OK, "create failed: %08lx\n", hres); ok(xhr != NULL, "xhr == NULL\n"); }
@@ -411,14 +411,14 @@ static void test_header(const struct HEADER_TYPE expect[], int num)
all = NULL; hres = IHTMLXMLHttpRequest_getAllResponseHeaders(xhr, &all); - ok(hres == S_OK, "getAllResponseHeader failed: %08x\n", hres); + ok(hres == S_OK, "getAllResponseHeader failed: %08lx\n", hres); ok(all != NULL, "all == NULL\n");
for(i = 0; i < num; ++i) { text = NULL; key = SysAllocString(expect[i].key); hres = IHTMLXMLHttpRequest_getResponseHeader(xhr, key, &text); - ok(hres == S_OK, "getResponseHeader failed, got %08x\n", hres); + ok(hres == S_OK, "getResponseHeader failed, got %08lx\n", hres); ok(text != NULL, "text == NULL\n"); ok(!lstrcmpW(text, expect[i].value), "Expect %s: %s, got %s\n", wine_dbgstr_w(expect[i].key), wine_dbgstr_w(expect[i].value), @@ -442,16 +442,16 @@ static void test_illegal_xml(IXMLDOMDocument *xmldom) BSTR bstr;
hres = IXMLDOMDocument_get_baseName(xmldom, NULL); - ok(hres == E_INVALIDARG, "Expect E_INVALIDARG, got %08x\n", hres); + ok(hres == E_INVALIDARG, "Expect E_INVALIDARG, got %08lx\n", hres); hres = IXMLDOMDocument_get_baseName(xmldom, &bstr); - ok(hres == S_FALSE, "get_baseName failed: %08x\n", hres); + ok(hres == S_FALSE, "get_baseName failed: %08lx\n", hres); ok(bstr == NULL, "bstr(%p): %s\n", bstr, wine_dbgstr_w(bstr)); SysFreeString(bstr);
hres = IXMLDOMDocument_get_dataType(xmldom, NULL); - ok(hres == E_INVALIDARG, "Expect E_INVALIDARG, got %08x\n", hres); + ok(hres == E_INVALIDARG, "Expect E_INVALIDARG, got %08lx\n", hres); hres = IXMLDOMDocument_get_dataType(xmldom, &variant); - ok(hres == S_FALSE, "get_dataType failed: %08x\n", hres); + ok(hres == S_FALSE, "get_dataType failed: %08lx\n", hres); ok(V_VT(&variant) == VT_NULL, "got %s\n", wine_dbgstr_variant(&variant)); VariantClear(&variant);
@@ -460,16 +460,16 @@ static void test_illegal_xml(IXMLDOMDocument *xmldom) SysFreeString(bstr);
hres = IXMLDOMDocument_get_firstChild(xmldom, NULL); - ok(hres == E_INVALIDARG, "Expect E_INVALIDARG, got %08x\n", hres); + ok(hres == E_INVALIDARG, "Expect E_INVALIDARG, got %08lx\n", hres);
first = (void*)0xdeadbeef; hres = IXMLDOMDocument_get_firstChild(xmldom, &first); - ok(hres == S_FALSE, "get_firstChild failed: %08x\n", hres); + ok(hres == S_FALSE, "get_firstChild failed: %08lx\n", hres); ok(first == NULL, "first != NULL\n");
last = (void*)0xdeadbeef; hres = IXMLDOMDocument_get_lastChild(xmldom, &last); - ok(hres == S_FALSE, "get_lastChild failed: %08x\n", hres); + ok(hres == S_FALSE, "get_lastChild failed: %08lx\n", hres); ok(last == NULL, "last != NULL\n"); }
@@ -480,7 +480,7 @@ static void _set_request_header(unsigned line, IHTMLXMLHttpRequest *xhr, const W HRESULT hres;
hres = IHTMLXMLHttpRequest_setRequestHeader(xhr, header, value); - ok_(__FILE__,line)(hres == S_OK, "setRequestHeader failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "setRequestHeader failed: %08lx\n", hres);
SysFreeString(header); SysFreeString(value); @@ -496,23 +496,23 @@ static void test_responseXML(const WCHAR *expect_text)
disp = NULL; hres = IHTMLXMLHttpRequest_get_responseXML(xhr, &disp); - ok(hres == S_OK, "get_responseXML failed: %08x\n", hres); + ok(hres == S_OK, "get_responseXML failed: %08lx\n", hres); ok(disp != NULL, "disp == NULL\n");
xmldom = NULL; hres = IDispatch_QueryInterface(disp, &IID_IXMLDOMDocument, (void**)&xmldom); - ok(hres == S_OK, "QueryInterface(IXMLDOMDocument) failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface(IXMLDOMDocument) failed: %08lx\n", hres); ok(xmldom != NULL, "xmldom == NULL\n");
hres = IXMLDOMDocument_QueryInterface(xmldom, &IID_IObjectSafety, (void**)&safety); - ok(hres == S_OK, "QueryInterface IObjectSafety failed: %08x\n", hres); + ok(hres == S_OK, "QueryInterface IObjectSafety failed: %08lx\n", hres); hres = IObjectSafety_GetInterfaceSafetyOptions(safety, NULL, &supported, &enabled); - ok(hres == S_OK, "GetInterfaceSafetyOptions failed: %08x\n", hres); + ok(hres == S_OK, "GetInterfaceSafetyOptions failed: %08lx\n", hres); ok(broken(supported == (INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA)) || supported == (INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA | INTERFACE_USES_SECURITY_MANAGER) /* msxml3 SP8+ */, - "Expected supported: (INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA | INTERFACE_USES_SECURITY_MANAGER), got %08x\n", supported); + "Expected supported: (INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA | INTERFACE_USES_SECURITY_MANAGER), got %08lx\n", supported); ok(enabled == ((INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA | INTERFACE_USES_SECURITY_MANAGER) & supported), - "Expected enabled: (INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA | INTERFACE_USES_SECURITY_MANAGER), got 0x%08x\n", enabled); + "Expected enabled: (INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA | INTERFACE_USES_SECURITY_MANAGER), got 0x%08lx\n", enabled); IObjectSafety_Release(safety);
if(!expect_text) @@ -535,7 +535,7 @@ static HRESULT _xhr_open(unsigned line, const WCHAR *url_w, const WCHAR *method_ V_VT(&empty) = VT_EMPTY;
hres = IHTMLXMLHttpRequest_open(xhr, method, url, async, empty, empty); - ok_(__FILE__,line)(hres == S_OK, "open failed: %08x\n", hres); + ok_(__FILE__,line)(hres == S_OK, "open failed: %08lx\n", hres);
SysFreeString(method); SysFreeString(url); @@ -549,7 +549,7 @@ static void _test_response_text(unsigned line, const WCHAR *expect_text) HRESULT hres;
hres = IHTMLXMLHttpRequest_get_responseText(xhr, &text); - ok(hres == S_OK, "get_responseText failed: %08x\n", hres); + ok(hres == S_OK, "get_responseText failed: %08lx\n", hres); ok(text != NULL, "test == NULL\n"); if(expect_text) { unsigned len; @@ -583,51 +583,51 @@ static void test_sync_xhr(IHTMLDocument2 *doc, const WCHAR *xml_url, const WCHAR
V_VT(&var) = VT_EMPTY; hres = IHTMLXMLHttpRequest_get_onreadystatechange(xhr, &var); - ok(hres == S_OK, "get_onreadystatechange failed: %08x\n", hres); + ok(hres == S_OK, "get_onreadystatechange failed: %08lx\n", hres); ok(V_VT(&var) == VT_NULL, "V_VT(onreadystatechange) = %d\n", V_VT(&var));
V_VT(&var) = VT_DISPATCH; V_DISPATCH(&var) = (IDispatch*)&xmlhttprequest_onreadystatechange_obj; hres = IHTMLXMLHttpRequest_put_onreadystatechange(xhr, var); - ok(hres == S_OK, "put_onreadystatechange failed: %08x\n", hres); + ok(hres == S_OK, "put_onreadystatechange failed: %08lx\n", hres);
V_VT(&var) = VT_EMPTY; hres = IHTMLXMLHttpRequest_get_onreadystatechange(xhr, &var); - ok(hres == S_OK, "get_onreadystatechange failed: %08x\n", hres); + ok(hres == S_OK, "get_onreadystatechange failed: %08lx\n", hres); ok(V_VT(&var) == VT_DISPATCH, "V_VT(onreadystatechange) = %d\n", V_VT(&var)); ok(V_DISPATCH(&var) == (IDispatch*)&xmlhttprequest_onreadystatechange_obj, "unexpected onreadystatechange value\n");
hres = IHTMLXMLHttpRequest_get_readyState(xhr, NULL); - ok(hres == E_POINTER, "Expect E_POINTER, got %08x\n", hres); + ok(hres == E_POINTER, "Expect E_POINTER, got %08lx\n", hres);
val = 0xdeadbeef; hres = IHTMLXMLHttpRequest_get_readyState(xhr, &val); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); - ok(val == 0, "Expect UNSENT, got %d\n", val); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres); + ok(val == 0, "Expect UNSENT, got %ld\n", val);
hres = IHTMLXMLHttpRequest_get_status(xhr, NULL); - ok(hres == E_POINTER, "Expect E_POINTER, got %08x\n", hres); + ok(hres == E_POINTER, "Expect E_POINTER, got %08lx\n", hres);
val = 0xdeadbeef; hres = IHTMLXMLHttpRequest_get_status(xhr, &val); - ok(hres == E_FAIL, "Expect E_FAIL, got: %08x\n", hres); - ok(val == 0, "Expect 0, got %d\n", val); + ok(hres == E_FAIL, "Expect E_FAIL, got: %08lx\n", hres); + ok(val == 0, "Expect 0, got %ld\n", val);
hres = IHTMLXMLHttpRequest_get_statusText(xhr, NULL); - ok(hres == E_POINTER, "Expect E_POINTER, got %08x\n", hres); + ok(hres == E_POINTER, "Expect E_POINTER, got %08lx\n", hres);
hres = IHTMLXMLHttpRequest_get_statusText(xhr, &text); - ok(hres == E_FAIL, "Expect E_FAIL, got: %08x\n", hres); + ok(hres == E_FAIL, "Expect E_FAIL, got: %08lx\n", hres); ok(text == NULL, "Expect NULL, got %p\n", text);
text = (BSTR)0xdeadbeef; hres = IHTMLXMLHttpRequest_getAllResponseHeaders(xhr, &text); - ok(hres == E_FAIL, "got %08x\n", hres); + ok(hres == E_FAIL, "got %08lx\n", hres); ok(text == NULL, "text = %p\n", text);
text = (BSTR)0xdeadbeef; hres = IHTMLXMLHttpRequest_getResponseHeader(xhr, content_type, &text); - ok(hres == E_FAIL, "got %08x\n", hres); + ok(hres == E_FAIL, "got %08lx\n", hres); ok(text == NULL, "text = %p\n", text);
method = SysAllocString(L"GET"); @@ -638,7 +638,7 @@ static void test_sync_xhr(IHTMLDocument2 *doc, const WCHAR *xml_url, const WCHAR
SET_EXPECT(xmlhttprequest_onreadystatechange_opened); hres = IHTMLXMLHttpRequest_open(xhr, method, url, vbool, vempty, vempty); - todo_wine ok(hres == S_OK, "open failed: %08x\n", hres); /* Gecko 30+ only supports async */ + todo_wine ok(hres == S_OK, "open failed: %08lx\n", hres); /* Gecko 30+ only supports async */ todo_wine CHECK_CALLED(xmlhttprequest_onreadystatechange_opened);
SysFreeString(method); @@ -652,27 +652,27 @@ static void test_sync_xhr(IHTMLDocument2 *doc, const WCHAR *xml_url, const WCHAR
text = (BSTR)0xdeadbeef; hres = IHTMLXMLHttpRequest_getAllResponseHeaders(xhr, &text); - ok(hres == E_FAIL, "got %08x\n", hres); + ok(hres == E_FAIL, "got %08lx\n", hres); ok(text == NULL, "text = %p\n", text);
text = (BSTR)0xdeadbeef; hres = IHTMLXMLHttpRequest_getResponseHeader(xhr, content_type, &text); - ok(hres == E_FAIL, "got %08x\n", hres); + ok(hres == E_FAIL, "got %08lx\n", hres); ok(text == NULL, "text = %p\n", text);
val = 0xdeadbeef; hres = IHTMLXMLHttpRequest_get_status(xhr, &val); - ok(hres == E_FAIL, "Expect E_FAIL, got: %08x\n", hres); - ok(val == 0, "Expect 0, got %d\n", val); + ok(hres == E_FAIL, "Expect E_FAIL, got: %08lx\n", hres); + ok(val == 0, "Expect 0, got %ld\n", val);
hres = IHTMLXMLHttpRequest_get_statusText(xhr, &text); - ok(hres == E_FAIL, "Expect E_FAIL, got: %08x\n", hres); + ok(hres == E_FAIL, "Expect E_FAIL, got: %08lx\n", hres); ok(text == NULL, "Expect NULL, got %p\n", text);
val = 0xdeadbeef; hres = IHTMLXMLHttpRequest_get_readyState(xhr, &val); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); - ok(val == 1, "Expect OPENED, got %d\n", val); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres); + ok(val == 1, "Expect OPENED, got %ld\n", val);
set_request_header(xhr, L"x-wine-test", L"sync-test");
@@ -682,7 +682,7 @@ static void test_sync_xhr(IHTMLDocument2 *doc, const WCHAR *xml_url, const WCHAR SET_EXPECT(xmlhttprequest_onreadystatechange_done); loading_cnt = 0; hres = IHTMLXMLHttpRequest_send(xhr, vempty); - ok(hres == S_OK, "send failed: %08x\n", hres); + ok(hres == S_OK, "send failed: %08lx\n", hres); CHECK_CALLED(xmlhttprequest_onreadystatechange_opened); CHECK_CALLED(xmlhttprequest_onreadystatechange_headers_received); CHECK_CALLED(xmlhttprequest_onreadystatechange_loading); @@ -691,7 +691,7 @@ static void test_sync_xhr(IHTMLDocument2 *doc, const WCHAR *xml_url, const WCHAR
text = NULL; hres = IHTMLXMLHttpRequest_getResponseHeader(xhr, content_type, &text); - ok(hres == S_OK, "getResponseHeader failed, got %08x\n", hres); + ok(hres == S_OK, "getResponseHeader failed, got %08lx\n", hres); ok(text != NULL, "text == NULL\n"); SysFreeString(text);
@@ -700,11 +700,11 @@ static void test_sync_xhr(IHTMLDocument2 *doc, const WCHAR *xml_url, const WCHAR
val = 0xdeadbeef; hres = IHTMLXMLHttpRequest_get_status(xhr, &val); - ok(hres == S_OK, "get_status failed: %08x\n", hres); - ok(val == 200, "Expect 200, got %d\n", val); + ok(hres == S_OK, "get_status failed: %08lx\n", hres); + ok(val == 200, "Expect 200, got %ld\n", val);
hres = IHTMLXMLHttpRequest_get_statusText(xhr, &text); - ok(hres == S_OK, "get_statusText failed: %08x\n", hres); + ok(hres == S_OK, "get_statusText failed: %08lx\n", hres); ok(text != NULL, "text == NULL\n"); ok(!lstrcmpW(text, L"OK"), "Expected "OK", got %s\n", wine_dbgstr_w(text)); @@ -712,8 +712,8 @@ static void test_sync_xhr(IHTMLDocument2 *doc, const WCHAR *xml_url, const WCHAR
val = 0xdeadbeef; hres = IHTMLXMLHttpRequest_get_readyState(xhr, &val); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); - ok(val == 4, "Expect DONE, got %d\n", val); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres); + ok(val == 4, "Expect DONE, got %ld\n", val);
test_response_text(expect_text); test_responseXML(expect_text); @@ -740,51 +740,51 @@ static void test_async_xhr(IHTMLDocument2 *doc, const WCHAR *xml_url, const WCHA V_VT(&var) = VT_DISPATCH; V_DISPATCH(&var) = (IDispatch*)&xmlhttprequest_onreadystatechange_obj; hres = IHTMLXMLHttpRequest_put_onreadystatechange(xhr, var); - ok(hres == S_OK, "put_onreadystatechange failed: %08x\n", hres); + ok(hres == S_OK, "put_onreadystatechange failed: %08lx\n", hres);
V_VT(&var) = VT_EMPTY; hres = IHTMLXMLHttpRequest_get_onreadystatechange(xhr, &var); - ok(hres == S_OK, "get_onreadystatechange failed: %08x\n", hres); + ok(hres == S_OK, "get_onreadystatechange failed: %08lx\n", hres); ok(V_VT(&var) == VT_DISPATCH, "V_VT(onreadystatechange) = %d\n", V_VT(&var)); ok(V_DISPATCH(&var) == (IDispatch*)&xmlhttprequest_onreadystatechange_obj, "unexpected onreadystatechange value\n");
hres = IHTMLXMLHttpRequest_getResponseHeader(xhr, NULL, &text); - ok(hres == E_INVALIDARG, "Expect E_INVALIDARG, got %08x\n", hres); + ok(hres == E_INVALIDARG, "Expect E_INVALIDARG, got %08lx\n", hres);
hres = IHTMLXMLHttpRequest_getResponseHeader(xhr, content_type, NULL); - ok(hres == E_POINTER, "Expect E_POINTER, got %08x\n", hres); + ok(hres == E_POINTER, "Expect E_POINTER, got %08lx\n", hres);
hres = IHTMLXMLHttpRequest_getResponseHeader(xhr, NULL, NULL); ok(hres == E_POINTER || broken(hres == E_INVALIDARG), /* Vista and before */ - "Expect E_POINTER, got %08x\n", hres); + "Expect E_POINTER, got %08lx\n", hres);
text = (BSTR)0xdeadbeef; hres = IHTMLXMLHttpRequest_getResponseHeader(xhr, content_type, &text); - ok(hres == E_FAIL, "got %08x\n", hres); + ok(hres == E_FAIL, "got %08lx\n", hres); ok(text == NULL, "text = %p\n", text);
hres = IHTMLXMLHttpRequest_getAllResponseHeaders(xhr, NULL); - ok(hres == E_POINTER, "Expect E_POINTER, got %08x\n", hres); + ok(hres == E_POINTER, "Expect E_POINTER, got %08lx\n", hres);
text = (BSTR)0xdeadbeef; hres = IHTMLXMLHttpRequest_getAllResponseHeaders(xhr, &text); - ok(hres == E_FAIL, "got %08x\n", hres); + ok(hres == E_FAIL, "got %08lx\n", hres); ok(text == NULL, "text = %p\n", text);
val = 0xdeadbeef; hres = IHTMLXMLHttpRequest_get_status(xhr, &val); - ok(hres == E_FAIL, "Expect E_FAIL, got: %08x\n", hres); - ok(val == 0, "Expect 0, got %d\n", val); + ok(hres == E_FAIL, "Expect E_FAIL, got: %08lx\n", hres); + ok(val == 0, "Expect 0, got %ld\n", val);
text = (BSTR)0xdeadbeef; hres = IHTMLXMLHttpRequest_get_statusText(xhr, &text); - ok(hres == E_FAIL, "Expect E_FAIL, got: %08x\n", hres); + ok(hres == E_FAIL, "Expect E_FAIL, got: %08lx\n", hres); ok(text == NULL, "Expect NULL, got %p\n", text);
val = 0xdeadbeef; hres = IHTMLXMLHttpRequest_get_readyState(xhr, &val); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); - ok(val == 0, "Expect UNSENT, got %d\n", val); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres); + ok(val == 0, "Expect UNSENT, got %ld\n", val);
SET_EXPECT(xmlhttprequest_onreadystatechange_opened); hres = xhr_open(xml_url, L"GET"); @@ -798,27 +798,27 @@ static void test_async_xhr(IHTMLDocument2 *doc, const WCHAR *xml_url, const WCHA
text = (BSTR)0xdeadbeef; hres = IHTMLXMLHttpRequest_getAllResponseHeaders(xhr, &text); - ok(hres == E_FAIL, "got %08x\n", hres); + ok(hres == E_FAIL, "got %08lx\n", hres); ok(text == NULL, "text = %p\n", text);
text = (BSTR)0xdeadbeef; hres = IHTMLXMLHttpRequest_getResponseHeader(xhr, content_type, &text); - ok(hres == E_FAIL, "got %08x\n", hres); + ok(hres == E_FAIL, "got %08lx\n", hres); ok(text == NULL, "text = %p\n", text);
val = 0xdeadbeef; hres = IHTMLXMLHttpRequest_get_status(xhr, &val); - ok(hres == E_FAIL, "Expect E_FAIL, got: %08x\n", hres); - ok(val == 0, "Expect 0, got %d\n", val); + ok(hres == E_FAIL, "Expect E_FAIL, got: %08lx\n", hres); + ok(val == 0, "Expect 0, got %ld\n", val);
hres = IHTMLXMLHttpRequest_get_statusText(xhr, &text); - ok(hres == E_FAIL, "Expect E_FAIL, got: %08x\n", hres); + ok(hres == E_FAIL, "Expect E_FAIL, got: %08lx\n", hres); ok(text == NULL, "Expect NULL, got %p\n", text);
val = 0xdeadbeef; hres = IHTMLXMLHttpRequest_get_readyState(xhr, &val); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); - ok(val == 1, "Expect OPENED, got %d\n", val); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres); + ok(val == 1, "Expect OPENED, got %ld\n", val);
set_request_header(xhr, L"x-wine-test", L"async-test");
@@ -830,7 +830,7 @@ static void test_async_xhr(IHTMLDocument2 *doc, const WCHAR *xml_url, const WCHA V_VT(&vempty) = VT_EMPTY; hres = IHTMLXMLHttpRequest_send(xhr, vempty);
- ok(hres == S_OK, "send failed: %08x\n", hres); + ok(hres == S_OK, "send failed: %08lx\n", hres); if(SUCCEEDED(hres)) pump_msgs(&called_xmlhttprequest_onreadystatechange_done); todo_wine CHECK_CALLED(xmlhttprequest_onreadystatechange_opened); @@ -849,7 +849,7 @@ static void test_async_xhr(IHTMLDocument2 *doc, const WCHAR *xml_url, const WCHA
text = NULL; hres = IHTMLXMLHttpRequest_getAllResponseHeaders(xhr, &text); - ok(hres == S_OK, "getAllResponseHeader failed, got %08x\n", hres); + ok(hres == S_OK, "getAllResponseHeader failed, got %08lx\n", hres); ok(text != NULL, "text == NULL\n"); SysFreeString(text);
@@ -858,20 +858,20 @@ static void test_async_xhr(IHTMLDocument2 *doc, const WCHAR *xml_url, const WCHA
val = 0xdeadbeef; hres = IHTMLXMLHttpRequest_get_status(xhr, &val); - ok(hres == S_OK, "get_status failed: %08x\n", hres); - ok(val == 200, "Expect 200, got %d\n", val); + ok(hres == S_OK, "get_status failed: %08lx\n", hres); + ok(val == 200, "Expect 200, got %ld\n", val);
text = NULL; hres = IHTMLXMLHttpRequest_get_statusText(xhr, &text); - ok(hres == S_OK, "get_statusText failed: %08x\n", hres); + ok(hres == S_OK, "get_statusText failed: %08lx\n", hres); ok(text != NULL, "text == NULL\n"); ok(!lstrcmpW(text, L"OK"), "Expected "OK", got %s\n", wine_dbgstr_w(text)); SysFreeString(text);
val = 0xdeadbeef; hres = IHTMLXMLHttpRequest_get_readyState(xhr, &val); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); - ok(val == 4, "Expect DONE, got %d\n", val); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres); + ok(val == 4, "Expect DONE, got %ld\n", val);
test_response_text(expect_text); test_responseXML(expect_text); @@ -902,15 +902,15 @@ static void test_async_xhr_abort(IHTMLDocument2 *doc, const WCHAR *xml_url) CHECK_CALLED(xmlhttprequest_onreadystatechange_opened);
hres = IHTMLXMLHttpRequest_abort(xhr); - ok(hres == S_OK, "abort failed: %08x\n", hres); + ok(hres == S_OK, "abort failed: %08lx\n", hres);
hres = IHTMLXMLHttpRequest_get_status(xhr, &val); - ok(hres == E_FAIL, "Expect E_FAIL, got: %08x\n", hres); - ok(val == 0, "Expect 0, got %d\n", val); + ok(hres == E_FAIL, "Expect E_FAIL, got: %08lx\n", hres); + ok(val == 0, "Expect 0, got %ld\n", val);
hres = IHTMLXMLHttpRequest_get_readyState(xhr, &val); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); - ok(val == 0, "Expect UNSENT, got %d\n", val); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres); + ok(val == 0, "Expect UNSENT, got %ld\n", val);
IHTMLXMLHttpRequest_Release(xhr); xhr = NULL; @@ -930,20 +930,20 @@ static void test_async_xhr_abort(IHTMLDocument2 *doc, const WCHAR *xml_url) SET_EXPECT(xmlhttprequest_onreadystatechange_opened); SET_EXPECT(xmlhttprequest_onreadystatechange_done); hres = IHTMLXMLHttpRequest_send(xhr, vempty); - ok(hres == S_OK, "send failed: %08x\n", hres); + ok(hres == S_OK, "send failed: %08lx\n", hres); todo_wine CHECK_CALLED(xmlhttprequest_onreadystatechange_opened);
hres = IHTMLXMLHttpRequest_abort(xhr); - ok(hres == S_OK, "abort failed: %08x\n", hres); + ok(hres == S_OK, "abort failed: %08lx\n", hres); CHECK_CALLED(xmlhttprequest_onreadystatechange_done);
hres = IHTMLXMLHttpRequest_get_readyState(xhr, &val); - ok(hres == S_OK, "get_readyState failed: %08x\n", hres); - ok(val == 0, "Expect UNSENT, got %d\n", val); + ok(hres == S_OK, "get_readyState failed: %08lx\n", hres); + ok(val == 0, "Expect UNSENT, got %ld\n", val);
hres = IHTMLXMLHttpRequest_get_status(xhr, &val); - ok(hres == E_FAIL, "Expect E_FAIL, got: %08x\n", hres); - ok(val == 0, "Expect 0, got %d\n", val); + ok(hres == E_FAIL, "Expect E_FAIL, got: %08lx\n", hres); + ok(val == 0, "Expect 0, got %ld\n", val);
ok(loading_cnt == 0, "loading_cnt = %d, expect 0, loading_cnt\n", loading_cnt); todo_wine ok(readystatechange_cnt == 2, "readystatechange_cnt = %d, expect 2\n", readystatechange_cnt); @@ -966,7 +966,7 @@ static void test_xhr_post(IHTMLDocument2 *doc) V_VT(&v) = VT_DISPATCH; V_DISPATCH(&v) = (IDispatch*)&xmlhttprequest_onreadystatechange_obj; hres = IHTMLXMLHttpRequest_put_onreadystatechange(xhr, v); - ok(hres == S_OK, "put_onreadystatechange failed: %08x\n", hres); + ok(hres == S_OK, "put_onreadystatechange failed: %08lx\n", hres);
SET_EXPECT(xmlhttprequest_onreadystatechange_opened); xhr_open(L"http://test.winehq.org/tests/post.php", L"POST"); @@ -984,7 +984,7 @@ static void test_xhr_post(IHTMLDocument2 *doc) SET_EXPECT(xmlhttprequest_onreadystatechange_done);
hres = IHTMLXMLHttpRequest_send(xhr, v); - ok(hres == S_OK, "send failed: %08x\n", hres); + ok(hres == S_OK, "send failed: %08lx\n", hres); if(SUCCEEDED(hres)) pump_msgs(&called_xmlhttprequest_onreadystatechange_done);
@@ -1012,11 +1012,11 @@ static IHTMLDocument2 *create_doc_from_url(const WCHAR *start_url) HRESULT hres;
hres = CreateBindCtx(0, &bc); - ok(hres == S_OK, "CreateBindCtx failed: 0x%08x\n", hres); + ok(hres == S_OK, "CreateBindCtx failed: 0x%08lx\n", hres);
url = SysAllocString(start_url); hres = CreateURLMoniker(NULL, url, &url_mon); - ok(hres == S_OK, "CreateURLMoniker failed: 0x%08x\n", hres); + ok(hres == S_OK, "CreateURLMoniker failed: 0x%08lx\n", hres);
hres = CoCreateInstance(&CLSID_HTMLDocument, NULL, CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER, &IID_IHTMLDocument2, @@ -1024,15 +1024,15 @@ static IHTMLDocument2 *create_doc_from_url(const WCHAR *start_url) #if !defined(__i386__) && !defined(__x86_64__) todo_wine #endif - ok(hres == S_OK, "CoCreateInstance failed: 0x%08x\n", hres); + ok(hres == S_OK, "CoCreateInstance failed: 0x%08lx\n", hres);
hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistMoniker, (void**)&persist_mon); - ok(hres == S_OK, "IHTMLDocument2_QueryInterface failed: 0x%08x\n", hres); + ok(hres == S_OK, "IHTMLDocument2_QueryInterface failed: 0x%08lx\n", hres);
hres = IPersistMoniker_Load(persist_mon, FALSE, url_mon, bc, STGM_SHARE_EXCLUSIVE | STGM_READWRITE); - ok(hres == S_OK, "IPersistMoniker_Load failed: 0x%08x\n", hres); + ok(hres == S_OK, "IPersistMoniker_Load failed: 0x%08lx\n", hres);
IPersistMoniker_Release(persist_mon); IMoniker_Release(url_mon);