From f3dbf490a7df11f6010c8c785f7ddb769dd40e8d Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Sat, 7 Oct 2006 15:31:04 +0200 Subject: [PATCH] mshtml: Win64 printf format warning fixes. --- dlls/mshtml/tests/Makefile.in | 1 - dlls/mshtml/tests/htmldoc.c | 288 +++++++++++++++++----------------- dlls/mshtml/tests/misc.c | 40 ++--- dlls/mshtml/tests/protocol.c | 158 +++++++++---------- 4 files changed, 243 insertions(+), 244 deletions(-) diff --git a/dlls/mshtml/tests/Makefile.in b/dlls/mshtml/tests/Makefile.in index b641ff86f9e..e3440d0d2f1 100644 --- a/dlls/mshtml/tests/Makefile.in +++ b/dlls/mshtml/tests/Makefile.in @@ -5,7 +5,6 @@ VPATH = @srcdir@ TESTDLL = mshtml.dll IMPORTS = ole32 user32 urlmon advapi32 kernel32 EXTRALIBS = -luuid -EXTRADEFS = -DWINE_NO_LONG_AS_INT CTESTS = \ htmldoc.c \ diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c index 6a4a4da680e..cd3162d0a3d 100644 --- a/dlls/mshtml/tests/htmldoc.c +++ b/dlls/mshtml/tests/htmldoc.c @@ -165,7 +165,7 @@ static HRESULT WINAPI HlinkFrame_Navigate(IHlinkFrame *iface, DWORD grfHLNF, LPB CHECK_EXPECT(Navigate); - ok(grfHLNF == 0, "grfHLNF=%ld, expected 0\n", grfHLNF); + ok(grfHLNF == 0, "grfHLNF=%d, expected 0\n", grfHLNF); ok(pbc != NULL, "pbc == NULL\n"); ok(pibsc != NULL, "pubsc == NULL\n"); ok(pihlNavigate != NULL, "puhlNavigate == NULL\n"); @@ -178,18 +178,18 @@ 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: %08lx\n", hres); + ok(hres == S_FALSE, "GetTargetFrameName failed: %08x\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: %08lx\n", hres); + ok(hres == S_OK, "GetMonikerReference failed: %08x\n", hres); ok(location == NULL, "location = %p\n", location); ok(mon != NULL, "mon == NULL\n"); hres = IHlink_GetHlinkSite(pihlNavigate, &site, &site_data); - ok(hres == S_OK, "GetHlinkSite failed: %08lx\n", hres); + ok(hres == S_OK, "GetHlinkSite failed: %08x\n", hres); ok(site == NULL, "site = %p\n, expected NULL\n", site); - ok(site_data == 0xdeadbeef, "site_data = %lx\n", site_data); + ok(site_data == 0xdeadbeef, "site_data = %x\n", site_data); } return S_OK; @@ -262,7 +262,7 @@ static HRESULT WINAPI PropertyNotifySink_OnChanged(IPropertyNotifySink *iface, D return S_OK; } - ok(0, "unexpected id %ld\n", dispID); + ok(0, "unexpected id %d\n", dispID); return E_NOTIMPL; } @@ -432,40 +432,40 @@ 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: %08lx\n", hres); + ok(hres == S_OK, "GetObjectParam failed: %08x\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: %08lx\n", hres); - ok(bindf == (BINDF_PULLDATA|BINDF_ASYNCSTORAGE|BINDF_ASYNCHRONOUS), "bindf = %08lx\n", bindf); - ok(bindinfo.cbSize == sizeof(bindinfo), "bindinfo.cbSize=%ld\n", bindinfo.cbSize); + ok(hres == S_OK, "GetBindInfo failed: %08x\n", hres); + ok(bindf == (BINDF_PULLDATA|BINDF_ASYNCSTORAGE|BINDF_ASYNCHRONOUS), "bindf = %08x\n", bindf); + ok(bindinfo.cbSize == sizeof(bindinfo), "bindinfo.cbSize=%d\n", bindinfo.cbSize); ok(bindinfo.szExtraInfo == NULL, "bindinfo.szExtraInfo=%p\n", bindinfo.szExtraInfo); /* TODO: test stgmedData */ - ok(bindinfo.grfBindInfoF == 0, "bindinfo.grfBinfInfoF=%08lx\n", bindinfo.grfBindInfoF); - ok(bindinfo.dwBindVerb == 0, "bindinfo.dwBindVerb=%ld\n", bindinfo.dwBindVerb); + ok(bindinfo.grfBindInfoF == 0, "bindinfo.grfBinfInfoF=%08x\n", bindinfo.grfBindInfoF); + ok(bindinfo.dwBindVerb == 0, "bindinfo.dwBindVerb=%d\n", bindinfo.dwBindVerb); ok(bindinfo.szCustomVerb == 0, "bindinfo.szCustomVerb=%p\n", bindinfo.szCustomVerb); - ok(bindinfo.cbstgmedData == 0, "bindinfo.cbstgmedData=%ld\n", bindinfo.cbstgmedData); - ok(bindinfo.dwOptions == 0x80000, "bindinfo.dwOptions=%lx\n", bindinfo.dwOptions); - ok(bindinfo.dwOptionsFlags == 0, "bindinfo.dwOptionsFlags=%ld\n", bindinfo.dwOptionsFlags); + ok(bindinfo.cbstgmedData == 0, "bindinfo.cbstgmedData=%d\n", bindinfo.cbstgmedData); + ok(bindinfo.dwOptions == 0x80000, "bindinfo.dwOptions=%x\n", bindinfo.dwOptions); + ok(bindinfo.dwOptionsFlags == 0, "bindinfo.dwOptionsFlags=%d\n", bindinfo.dwOptionsFlags); /* TODO: test dwCodePage */ /* TODO: test securityAttributes */ ok(IsEqualGUID(&IID_NULL, &bindinfo.iid), "unexepected bindinfo.iid\n"); ok(bindinfo.pUnk == NULL, "bindinfo.pUnk=%p\n", bindinfo.pUnk); - ok(bindinfo.dwReserved == 0, "bindinfo.dwReserved=%ld\n", bindinfo.dwReserved); + ok(bindinfo.dwReserved == 0, "bindinfo.dwReserved=%d\n", bindinfo.dwReserved); hres = IBindStatusCallback_OnStartBinding(callback, 0, &Binding); - ok(hres == S_OK, "OnStartBinding failed: %08lx\n", hres); + ok(hres == S_OK, "OnStartBinding failed: %08x\n", hres); hres = IBindStatusCallback_OnProgress(callback, 0, 0, BINDSTATUS_MIMETYPEAVAILABLE, wszTextHtml); - ok(hres == S_OK, "OnProgress(BINDSTATUS_MIMETYPEAVAILABLE) failed: %08lx\n", hres); + ok(hres == S_OK, "OnProgress(BINDSTATUS_MIMETYPEAVAILABLE) failed: %08x\n", hres); hres = IBindStatusCallback_OnProgress(callback, 0, 0, BINDSTATUS_BEGINDOWNLOADDATA, NULL); - ok(hres == S_OK, "OnProgress(BINDSTATUS_BEGINDOWNLOADDATA) failed: %08lx\n", hres); + ok(hres == S_OK, "OnProgress(BINDSTATUS_BEGINDOWNLOADDATA) failed: %08x\n", hres); CreateStreamOnHGlobal(0, TRUE, &stream); IStream_Write(stream, html_page, sizeof(html_page)-1, &written); @@ -476,15 +476,15 @@ static HRESULT WINAPI Moniker_BindToStorage(IMoniker *iface, IBindCtx *pbc, IMon hres = IBindStatusCallback_OnDataAvailable(callback, BSCF_FIRSTDATANOTIFICATION|BSCF_LASTDATANOTIFICATION, 100, &formatetc, &stgmedium); - ok(hres == S_OK, "OnDataAvailable failed: %08lx\n", hres); + ok(hres == S_OK, "OnDataAvailable failed: %08x\n", hres); IStream_Release(stream); hres = IBindStatusCallback_OnProgress(callback, sizeof(html_page)-1, sizeof(html_page)-1, BINDSTATUS_ENDDOWNLOADDATA, NULL); - ok(hres == S_OK, "OnProgress(BINDSTATUS_ENDDOWNLOADDATA) failed: %08lx\n", hres); + ok(hres == S_OK, "OnProgress(BINDSTATUS_ENDDOWNLOADDATA) failed: %08x\n", hres); hres = IBindStatusCallback_OnStopBinding(callback, S_OK, NULL); - ok(hres == S_OK, "OnStopBinding failed: %08lx\n", hres); + ok(hres == S_OK, "OnStopBinding failed: %08x\n", hres); IBindStatusCallback_Release(callback); @@ -1020,11 +1020,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: %08lx\n", hres); + ok(hres == S_OK, "could not get IOleDocument: %08x\n", hres); if(SUCCEEDED(hres)) { hres = IOleDocument_CreateView(document, &InPlaceSite, NULL, 0, &view); - ok(hres == S_OK, "CreateView failed: %08lx\n", hres); + ok(hres == S_OK, "CreateView failed: %08x\n", hres); if(SUCCEEDED(hres)) { IOleInPlaceActiveObject *activeobj = NULL; @@ -1033,24 +1033,24 @@ 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: %08lx\n", hres); + ok(hres == S_OK, "GetInPlaceSite failed: %08x\n", hres); ok(inplacesite == &InPlaceSite, "inplacesite=%p, expected %p\n", inplacesite, &InPlaceSite); hres = IOleDocumentView_SetInPlaceSite(view, &InPlaceSite); - ok(hres == S_OK, "SetInPlaceSite failed: %08lx\n", hres); + ok(hres == S_OK, "SetInPlaceSite failed: %08x\n", hres); hres = IOleDocumentView_GetInPlaceSite(view, &inplacesite); - ok(hres == S_OK, "GetInPlaceSite failed: %08lx\n", hres); + ok(hres == S_OK, "GetInPlaceSite failed: %08x\n", hres); ok(inplacesite == &InPlaceSite, "inplacesite=%p, expected %p\n", inplacesite, &InPlaceSite); hres = IOleDocumentView_QueryInterface(view, &IID_IOleInPlaceActiveObject, (void**)&activeobj); - ok(hres == S_OK, "Could not get IOleInPlaceActiveObject: %08lx\n", hres); + ok(hres == S_OK, "Could not get IOleInPlaceActiveObject: %08x\n", hres); if(activeobj) { IOleInPlaceActiveObject_GetWindow(activeobj, &hwnd); - ok(hres == S_OK, "GetWindow failed: %08lx\n", hres); + ok(hres == S_OK, "GetWindow failed: %08x\n", hres); ok(hwnd == NULL, "hwnd=%p, expeted NULL\n", hwnd); } @@ -1071,10 +1071,10 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum hres = IOleDocumentView_UIActivate(view, TRUE); if(FAILED(hres)) { - trace("UIActivate failed: %08lx\n", hres); + trace("UIActivate failed: %08x\n", hres); return hres; } - ok(hres == S_OK, "UIActivate failed: %08lx\n", hres); + ok(hres == S_OK, "UIActivate failed: %08x\n", hres); CHECK_CALLED(CanInPlaceActivate); CHECK_CALLED(GetWindowContext); @@ -1089,28 +1089,28 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum if(activeobj) { hres = IOleInPlaceActiveObject_GetWindow(activeobj, &hwnd); - ok(hres == S_OK, "GetWindow failed: %08lx\n", hres); + ok(hres == S_OK, "GetWindow failed: %08x\n", hres); ok(hwnd != NULL, "hwnd == NULL\n"); if(last_hwnd) ok(hwnd == last_hwnd, "hwnd != last_hwnd\n"); } hres = IOleDocumentView_UIActivate(view, TRUE); - ok(hres == S_OK, "UIActivate failed: %08lx\n", hres); + ok(hres == S_OK, "UIActivate failed: %08x\n", hres); if(activeobj) { hres = IOleInPlaceActiveObject_GetWindow(activeobj, &tmp_hwnd); - ok(hres == S_OK, "GetWindow failed: %08lx\n", hres); + ok(hres == S_OK, "GetWindow failed: %08x\n", hres); ok(tmp_hwnd == hwnd, "tmp_hwnd=%p, expected %p\n", tmp_hwnd, hwnd); } } hres = IOleDocumentView_SetRect(view, &rect); - ok(hres == S_OK, "SetRect failed: %08lx\n", hres); + ok(hres == S_OK, "SetRect failed: %08x\n", hres); if(call_UIActivate) { hres = IOleDocumentView_Show(view, TRUE); - ok(hres == S_OK, "Show failed: %08lx\n", hres); + ok(hres == S_OK, "Show failed: %08x\n", hres); }else { SET_EXPECT(CanInPlaceActivate); SET_EXPECT(GetWindowContext); @@ -1123,7 +1123,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: %08lx\n", hres); + ok(hres == S_OK, "Show failed: %08x\n", hres); CHECK_CALLED(CanInPlaceActivate); CHECK_CALLED(GetWindowContext); @@ -1135,7 +1135,7 @@ static HRESULT WINAPI DocumentSite_ActivateMe(IOleDocumentSite *iface, IOleDocum if(activeobj) { hres = IOleInPlaceActiveObject_GetWindow(activeobj, &hwnd); - ok(hres == S_OK, "GetWindow failed: %08lx\n", hres); + ok(hres == S_OK, "GetWindow failed: %08x\n", hres); ok(hwnd != NULL, "hwnd == NULL\n"); if(last_hwnd) ok(hwnd == last_hwnd, "hwnd != last_hwnd\n"); @@ -1188,12 +1188,12 @@ static HRESULT WINAPI DocHostUIHandler_GetHostInfo(IDocHostUIHandler2 *iface, DO CHECK_EXPECT(GetHostInfo); ok(pInfo != NULL, "pInfo=NULL\n"); if(pInfo) { - ok(pInfo->cbSize == sizeof(DOCHOSTUIINFO), "pInfo->cbSize=%lu\n", pInfo->cbSize); - ok(!pInfo->dwFlags, "pInfo->dwFlags=%08lx, expected 0\n", pInfo->dwFlags); + ok(pInfo->cbSize == sizeof(DOCHOSTUIINFO), "pInfo->cbSize=%u\n", pInfo->cbSize); + ok(!pInfo->dwFlags, "pInfo->dwFlags=%08x, 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=%08lx, expected 0\n", pInfo->dwDoubleClick); + ok(!pInfo->dwDoubleClick, "pInfo->dwDoubleClick=%08x, 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); } @@ -1206,7 +1206,7 @@ static HRESULT WINAPI DocHostUIHandler_ShowUI(IDocHostUIHandler2 *iface, DWORD d { CHECK_EXPECT(ShowUI); - ok(dwID == DOCHOSTUITYPE_BROWSE, "dwID=%ld, expected DOCHOSTUITYPE_BROWSE\n", dwID); + ok(dwID == DOCHOSTUITYPE_BROWSE, "dwID=%d, 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); @@ -1266,7 +1266,7 @@ static HRESULT WINAPI DocHostUIHandler_GetOptionKeyPath(IDocHostUIHandler2 *ifac { CHECK_EXPECT(GetOptionKeyPath); ok(pchKey != NULL, "pchKey = NULL\n"); - ok(!dw, "dw=%ld, expected 0\n", dw); + ok(!dw, "dw=%d, expected 0\n", dw); if(pchKey) ok(!*pchKey, "*pchKey=%p, expected NULL\n", *pchKey); return S_OK; @@ -1307,7 +1307,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=%ld, xepected 0\n", dw); + ok(!dw, "dw=%d, xepected 0\n", dw); return S_OK; } @@ -1355,7 +1355,7 @@ static HRESULT WINAPI OleCommandTarget_QueryStatus(IOleCommandTarget *iface, con ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText) { ok(!pguidCmdGroup, "pguidCmdGroup != MULL\n"); - ok(cCmds == 1, "cCmds=%ld, expected 1\n", cCmds); + ok(cCmds == 1, "cCmds=%d, expected 1\n", cCmds); ok(!pCmdText, "pCmdText != NULL\n"); switch(prgCmds[0].cmdID) { @@ -1372,7 +1372,7 @@ static HRESULT WINAPI OleCommandTarget_QueryStatus(IOleCommandTarget *iface, con prgCmds[0].cmdf = 0; return S_OK; default: - ok(0, "unexpected command %ld\n", prgCmds[0].cmdID); + ok(0, "unexpected command %d\n", prgCmds[0].cmdID); }; return E_FAIL; @@ -1387,35 +1387,35 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID switch(nCmdID) { case OLECMDID_SETPROGRESSMAX: CHECK_EXPECT2(Exec_SETPROGRESSMAX); - ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08lx\n", nCmdexecopt); + ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08x\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)=%ld, expected 0\n", V_I4(pvaIn)); + ok(V_I4(pvaIn) == 0, "V_I4(pvaIn)=%d, 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=%08lx\n", nCmdexecopt); + ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08x\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)=%ld, expected 0\n", V_I4(pvaIn)); + ok(V_I4(pvaIn) == 0, "V_I4(pvaIn)=%d, 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=%08lx\n", nCmdexecopt); + ok(nCmdexecopt == 0, "nCmdexecopts=%08x\n", nCmdexecopt); ok(pvaOut == NULL, "pvaOut=%p\n", pvaOut); ok(pvaIn == NULL, "pvaIn=%p\n", pvaIn); load_state = LD_COMPLETE; return S_OK; case OLECMDID_SETDOWNLOADSTATE: - ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08lx\n", nCmdexecopt); + ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08x\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)); @@ -1429,19 +1429,19 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID CHECK_EXPECT(Exec_SETDOWNLOADSTATE_1); break; default: - ok(0, "unexpevted V_I4(pvaIn)=%ld\n", V_I4(pvaIn)); + ok(0, "unexpevted V_I4(pvaIn)=%d\n", V_I4(pvaIn)); } return S_OK; case OLECMDID_UPDATECOMMANDS: CHECK_EXPECT(Exec_UPDATECOMMANDS); - ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08lx\n", nCmdexecopt); + ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08x\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=%08lx\n", nCmdexecopt); + ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08x\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)); @@ -1449,17 +1449,17 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID return S_OK; case OLECMDID_HTTPEQUIV: CHECK_EXPECT2(Exec_HTTPEQUIV); - ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08lx\n", nCmdexecopt); + ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08x\n", nCmdexecopt); /* TODO */ return S_OK; default: - ok(0, "unexpected command %ld\n", nCmdID); + ok(0, "unexpected command %d\n", nCmdID); return E_FAIL; }; } if(IsEqualGUID(&CGID_ShellDocView, pguidCmdGroup)) { - ok(nCmdexecopt == 0, "nCmdexecopts=%08lx\n", nCmdexecopt); + ok(nCmdexecopt == 0, "nCmdexecopts=%08x\n", nCmdexecopt); switch(nCmdID) { case 37: @@ -1468,17 +1468,17 @@ 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)=%ld, expected 0\n", V_I4(pvaIn)); + ok(V_I4(pvaIn) == 0, "V_I4(pvaIn)=%d, expected 0\n", V_I4(pvaIn)); } return S_OK; default: - ok(0, "unexpected command %ld\n", nCmdID); + ok(0, "unexpected command %d\n", nCmdID); return E_FAIL; }; } if(IsEqualGUID(&CGID_MSHTML, pguidCmdGroup)) { - ok(nCmdexecopt == 0, "nCmdexecopts=%08lx\n", nCmdexecopt); + ok(nCmdexecopt == 0, "nCmdexecopts=%08x\n", nCmdexecopt); switch(nCmdID) { case IDM_PARSECOMPLETE: @@ -1487,7 +1487,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID ok(pvaOut == NULL, "pvaOut != NULL\n"); return S_OK; default: - ok(0, "unexpected command %ld\n", nCmdID); + ok(0, "unexpected command %d\n", nCmdID); }; } @@ -1580,7 +1580,7 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID dispIdMember, REF return E_FAIL; }; - ok(0, "unexpected dispid %ld\n", dispIdMember); + ok(0, "unexpected dispid %d\n", dispIdMember); return E_FAIL; } @@ -1723,15 +1723,15 @@ static void test_readyState(IUnknown *unk) else _unk = unk; hres = IUnknown_QueryInterface(unk, &IID_IHTMLDocument2, (void**)&htmldoc); - ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument2) failed: %08lx\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IHTMLDocument2) failed: %08x\n", hres); if(FAILED(hres)) return; hres = IHTMLDocument2_get_readyState(htmldoc, NULL); - ok(hres == E_POINTER, "get_readyState failed: %08lx, expected\n", hres); + ok(hres == E_POINTER, "get_readyState failed: %08x, expected\n", hres); hres = IHTMLDocument2_get_readyState(htmldoc, &state); - ok(hres == S_OK, "get_ReadyState failed: %08lx\n", hres); + ok(hres == S_OK, "get_ReadyState failed: %08x\n", hres); ok(!lstrcmpW(state, expected_state[load_state]), "unexpected state, expected %d\n", load_state); IHTMLDocument_Release(htmldoc); @@ -1745,31 +1745,31 @@ static void test_ConnectionPoint(IConnectionPointContainer *container, REFIID ri HRESULT hres; hres = IConnectionPointContainer_FindConnectionPoint(container, riid, &cp); - ok(hres == S_OK, "FindConnectionPoint failed: %08lx\n", hres); + ok(hres == S_OK, "FindConnectionPoint failed: %08x\n", hres); if(FAILED(hres)) return; hres = IConnectionPoint_GetConnectionInterface(cp, &iid); - ok(hres == S_OK, "GetConnectionInterface failed: %08lx\n", hres); + ok(hres == S_OK, "GetConnectionInterface failed: %08x\n", hres); ok(IsEqualGUID(riid, &iid), "wrong iid\n"); hres = IConnectionPoint_GetConnectionInterface(cp, NULL); - ok(hres == E_POINTER, "GetConnectionInterface failed: %08lx, expected E_POINTER\n", hres); + ok(hres == E_POINTER, "GetConnectionInterface failed: %08x, expected E_POINTER\n", hres); hres = IConnectionPoint_GetConnectionPointContainer(cp, &tmp_container); - ok(hres == S_OK, "GetConnectionPointContainer failed: %08lx\n", hres); + ok(hres == S_OK, "GetConnectionPointContainer failed: %08x\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: %08lx, expected E_POINTER\n", hres); + ok(hres == E_POINTER, "GetConnectionPointContainer failed: %08x, expected E_POINTER\n", hres); if(IsEqualGUID(&IID_IPropertyNotifySink, riid)) { DWORD cookie; hres = IConnectionPoint_Advise(cp, (IUnknown*)&PropertyNotifySink, &cookie); - ok(hres == S_OK, "Advise failed: %08lx\n", hres); + ok(hres == S_OK, "Advise failed: %08x\n", hres); } IConnectionPoint_Release(cp); @@ -1781,7 +1781,7 @@ static void test_ConnectionPointContainer(IUnknown *unk) HRESULT hres; hres = IUnknown_QueryInterface(unk, &IID_IConnectionPointContainer, (void**)&container); - ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08lx\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IConnectionPointContainer) failed: %08x\n", hres); if(FAILED(hres)) return; @@ -1826,7 +1826,7 @@ static void test_Load(IPersistMoniker *persist) readystate_set_loading = TRUE; hres = IPersistMoniker_Load(persist, FALSE, &Moniker, bind, 0x12); - ok(hres == S_OK, "Load failed: %08lx\n", hres); + ok(hres == S_OK, "Load failed: %08x\n", hres); CHECK_CALLED(GetDisplayName); CHECK_CALLED(GetHostInfo); @@ -1906,26 +1906,26 @@ static void test_Persist(IUnknown *unk) HRESULT hres; hres = IUnknown_QueryInterface(unk, &IID_IPersistFile, (void**)&persist_file); - ok(hres == S_OK, "QueryInterface(IID_IPersist) failed: %08lx\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IPersist) failed: %08x\n", hres); if(SUCCEEDED(hres)) { hres = IPersist_GetClassID(persist_file, NULL); - ok(hres == E_INVALIDARG, "GetClassID returned: %08lx, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "GetClassID returned: %08x, expected E_INVALIDARG\n", hres); hres = IPersist_GetClassID(persist_file, &guid); - ok(hres == S_OK, "GetClassID failed: %08lx\n", hres); + ok(hres == S_OK, "GetClassID failed: %08x\n", hres); ok(IsEqualGUID(&CLSID_HTMLDocument, &guid), "guid != CLSID_HTMLDocument\n"); IPersist_Release(persist_file); } hres = IUnknown_QueryInterface(unk, &IID_IPersistMoniker, (void**)&persist_mon); - ok(hres == S_OK, "QueryInterface(IID_IPersistMoniker) failed: %08lx\n", hres); + ok(hres == S_OK, "QueryInterface(IID_IPersistMoniker) failed: %08x\n", hres); if(SUCCEEDED(hres)) { hres = IPersistMoniker_GetClassID(persist_mon, NULL); - ok(hres == E_INVALIDARG, "GetClassID returned: %08lx, expected E_INVALIDARG\n", hres); + ok(hres == E_INVALIDARG, "GetClassID returned: %08x, expected E_INVALIDARG\n", hres); hres = IPersistMoniker_GetClassID(persist_mon, &guid); - ok(hres == S_OK, "GetClassID failed: %08lx\n", hres); + ok(hres == S_OK, "GetClassID failed: %08x\n", hres); ok(IsEqualGUID(&CLSID_HTMLDocument, &guid), "guid != CLSID_HTMLDocument\n"); if(load_state == LD_DOLOAD) @@ -1987,7 +1987,7 @@ static void test_OleCommandTarget(IUnknown *unk) HRESULT hres; hres = IUnknown_QueryInterface(unk, &IID_IOleCommandTarget, (void**)&cmdtrg); - ok(hres == S_OK, "QueryInterface(IIDIOleM=CommandTarget failed: %08lx\n", hres); + ok(hres == S_OK, "QueryInterface(IIDIOleM=CommandTarget failed: %08x\n", hres); if(FAILED(hres)) return; @@ -1999,13 +1999,13 @@ static void test_OleCommandTarget(IUnknown *unk) SET_EXPECT(QueryStatus_OPEN); SET_EXPECT(QueryStatus_NEW); hres = IOleCommandTarget_QueryStatus(cmdtrg, NULL, sizeof(cmds)/sizeof(cmds[0]), cmds, NULL); - ok(hres == S_OK, "QueryStatus failed: %08lx\n", hres); + ok(hres == S_OK, "QueryStatus failed: %08x\n", hres); CHECK_CALLED(QueryStatus_OPEN); CHECK_CALLED(QueryStatus_NEW); for(i=0; icbSize == sizeof(BINDINFO), "wrong size of pbindinfo: %ld\n", pbindinfo->cbSize); + ok(pbindinfo->cbSize == sizeof(BINDINFO), "wrong size of pbindinfo: %d\n", pbindinfo->cbSize); return S_OK; } @@ -211,9 +211,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 %08lx got: %08lx\n", expected_hres, hres); + "expected win32 err or %08x got: %08x\n", expected_hres, hres); else - ok(hres == expected_hres, "expected: %08lx got: %08lx\n", expected_hres, hres); + ok(hres == expected_hres, "expected: %08x got: %08x\n", expected_hres, hres); CHECK_CALLED(GetBindInfo); CHECK_CALLED(ReportResult); @@ -231,7 +231,7 @@ static void protocol_start(IInternetProtocol *protocol, LPCWSTR url) expect_hr_win32err = FALSE; hres = IInternetProtocol_Start(protocol, url, &protocol_sink, &bind_info, 0, 0); - ok(hres == S_OK, "Start failed: %08lx\n", hres); + ok(hres == S_OK, "Start failed: %08x\n", hres); CHECK_CALLED(GetBindInfo); CHECK_CALLED(ReportProgress); @@ -260,12 +260,12 @@ static void test_res_protocol(void) hres = CoGetClassObject(&CLSID_ResProtocol, CLSCTX_INPROC_SERVER, NULL, &IID_IUnknown, (void**)&unk); - ok(hres == S_OK, "CoGetClassObject failed: %08lx\n", hres); + ok(hres == S_OK, "CoGetClassObject failed: %08x\n", hres); if(!SUCCEEDED(hres)) return; hres = IUnknown_QueryInterface(unk, &IID_IInternetProtocolInfo, (void**)&protocol_info); - ok(hres == S_OK, "Could not get IInternetProtocolInfo interface: %08lx\n", hres); + ok(hres == S_OK, "Could not get IInternetProtocolInfo interface: %08x\n", hres); if(SUCCEEDED(hres)) { WCHAR buf[128]; DWORD size; @@ -276,36 +276,36 @@ static void test_res_protocol(void) hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, i, 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); ok(hres == INET_E_DEFAULT_ACTION, - "[%d] failed: %08lx, expected INET_E_DEFAULT_ACTION\n", i, hres); + "[%d] failed: %08x, expected INET_E_DEFAULT_ACTION\n", i, hres); } } hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_SECURITY_URL, 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); - ok(hres == S_OK, "ParseUrl failed: %08lx\n", hres); + ok(hres == S_OK, "ParseUrl failed: %08x\n", hres); hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_SECURITY_URL, 0, buf, 3, &size, 0); - ok(hres == S_FALSE, "ParseUrl failed: %08lx, expected S_FALSE\n", hres); + ok(hres == S_FALSE, "ParseUrl failed: %08x, expected S_FALSE\n", hres); hres = IInternetProtocolInfo_ParseUrl(protocol_info, wrong_url1, PARSE_SECURITY_URL, 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); - ok(hres == MK_E_SYNTAX, "ParseUrl failed: %08lx, expected MK_E_SYNTAX\n", hres); + ok(hres == MK_E_SYNTAX, "ParseUrl failed: %08x, expected MK_E_SYNTAX\n", hres); size = 0xdeadbeef; buf[0] = '?'; hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_DOMAIN, 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); - ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08lx\n", hres); + ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08x\n", hres); ok(buf[0] == '?', "buf changed\n"); - ok(size == sizeof(blank_url)/sizeof(WCHAR), "size=%ld\n", size); + ok(size == sizeof(blank_url)/sizeof(WCHAR), "size=%d\n", size); size = 0xdeadbeef; hres = IInternetProtocolInfo_ParseUrl(protocol_info, wrong_url1, PARSE_DOMAIN, 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); - ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08lx\n", hres); + ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08x\n", hres); ok(buf[0] == '?', "buf changed\n"); - ok(size == sizeof(wrong_url1)/sizeof(WCHAR), "size=%ld\n", size); + ok(size == sizeof(wrong_url1)/sizeof(WCHAR), "size=%d\n", size); #if 0 /* Crashes on win9x */ size = 0xdeadbeef; @@ -333,26 +333,26 @@ static void test_res_protocol(void) hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_UNESCAPE+1, 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); ok(hres == INET_E_DEFAULT_ACTION, - "ParseUrl failed: %08lx, expected INET_E_DEFAULT_ACTION\n", hres); + "ParseUrl failed: %08x, 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, sizeof(buf)/sizeof(buf[0]), &size, 0); - ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08lx\n", hres); - ok(size == 0xdeadbeef, "size=%ld\n", size); + ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres); + ok(size == 0xdeadbeef, "size=%d\n", size); size = 0xdeadbeef; hres = IInternetProtocolInfo_CombineUrl(protocol_info, blank_url, test_part_url, URL_FILE_USE_PATHURL, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); - ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08lx\n", hres); - ok(size == 0xdeadbeef, "size=%ld\n", size); + ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres); + ok(size == 0xdeadbeef, "size=%d\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: %08lx\n", hres); - ok(size == 0xdeadbeef, "size=%ld\n", size); + ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres); + ok(size == 0xdeadbeef, "size=%d\n", size); IInternetProtocolInfo_Release(protocol_info); } @@ -364,7 +364,7 @@ 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: %08lx\n", hres); + ok(hres == S_OK, "Could not get IInternetProtocol: %08x\n", hres); if(SUCCEEDED(hres)) { test_protocol_fail(protocol, wrong_url1, MK_E_SYNTAX, FALSE); @@ -374,58 +374,58 @@ static void test_res_protocol(void) cb = 0xdeadbeef; hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == E_FAIL, "Read returned %08lx expected E_FAIL\n", hres); - ok(cb == 0xdeadbeef, "cb=%lu expected 0xdeadbeef\n", cb); + ok(hres == E_FAIL, "Read returned %08x expected E_FAIL\n", hres); + ok(cb == 0xdeadbeef, "cb=%u expected 0xdeadbeef\n", cb); protocol_start(protocol, blank_url); hres = IInternetProtocol_Read(protocol, buf, 2, &cb); - ok(hres == S_OK, "Read failed: %08lx\n", hres); - ok(cb == 2, "cb=%lu expected 2\n", cb); + ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(cb == 2, "cb=%u expected 2\n", cb); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08lx\n", hres); + ok(hres == S_OK, "Read failed: %08x\n", hres); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_FALSE, "Read failed: %08lx expected S_FALSE\n", hres); - ok(cb == 0, "cb=%lu expected 0\n", cb); + ok(hres == S_FALSE, "Read failed: %08x expected S_FALSE\n", hres); + ok(cb == 0, "cb=%u expected 0\n", cb); hres = IInternetProtocol_UnlockRequest(protocol); - ok(hres == S_OK, "UnlockRequest failed: %08lx\n", hres); + ok(hres == S_OK, "UnlockRequest failed: %08x\n", hres); protocol_start(protocol, blank_url); hres = IInternetProtocol_Read(protocol, buf, 2, &cb); - ok(hres == S_OK, "Read failed: %08lx\n", hres); + ok(hres == S_OK, "Read failed: %08x\n", hres); hres = IInternetProtocol_LockRequest(protocol, 0); - ok(hres == S_OK, "LockRequest failed: %08lx\n", hres); + ok(hres == S_OK, "LockRequest failed: %08x\n", hres); hres = IInternetProtocol_UnlockRequest(protocol); - ok(hres == S_OK, "UnlockRequest failed: %08lx\n", hres); + ok(hres == S_OK, "UnlockRequest failed: %08x\n", hres); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08lx\n", hres); + ok(hres == S_OK, "Read failed: %08x\n", hres); protocol_start(protocol, blank_url); hres = IInternetProtocol_LockRequest(protocol, 0); - ok(hres == S_OK, "LockRequest failed: %08lx\n", hres); + ok(hres == S_OK, "LockRequest failed: %08x\n", hres); hres = IInternetProtocol_Terminate(protocol, 0); - ok(hres == S_OK, "Terminate failed: %08lx\n", hres); + ok(hres == S_OK, "Terminate failed: %08x\n", hres); hres = IInternetProtocol_Read(protocol, buf, 2, &cb); - ok(hres == S_OK, "Read failed: %08lx\n\n", hres); + ok(hres == S_OK, "Read failed: %08x\n\n", hres); hres = IInternetProtocol_UnlockRequest(protocol); - ok(hres == S_OK, "UnlockRequest failed: %08lx\n", hres); + ok(hres == S_OK, "UnlockRequest failed: %08x\n", hres); hres = IInternetProtocol_Read(protocol, buf, 2, &cb); - ok(hres == S_OK, "Read failed: %08lx\n", hres); + ok(hres == S_OK, "Read failed: %08x\n", hres); hres = IInternetProtocol_Terminate(protocol, 0); - ok(hres == S_OK, "Terminate failed: %08lx\n", hres); + ok(hres == S_OK, "Terminate failed: %08x\n", hres); hres = IInternetProtocol_Read(protocol, buf, 2, &cb); - ok(hres == S_OK, "Read failed: %08lx\n", hres); - ok(cb == 2, "cb=%lu expected 2\n", cb); + ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(cb == 2, "cb=%u expected 2\n", cb); protocol_start(protocol, blank_url); hres = IInternetProtocol_LockRequest(protocol, 0); - ok(hres == S_OK, "LockRequest failed: %08lx\n", hres); + ok(hres == S_OK, "LockRequest failed: %08x\n", hres); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08lx\n", hres); + ok(hres == S_OK, "Read failed: %08x\n", hres); protocol_start(protocol, blank_url); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08lx\n", hres); + ok(hres == S_OK, "Read failed: %08x\n", hres); hres = IInternetProtocol_Terminate(protocol, 0); - ok(hres == S_OK, "Terminate failed: %08lx\n", hres); + ok(hres == S_OK, "Terminate failed: %08x\n", hres); IInternetProtocol_Release(protocol); } @@ -451,12 +451,12 @@ static void test_about_protocol(void) {0xfeff,'<','H','T','M','L','>','t','e','s','t','<','/','H','T','M','L','>',0}; hres = CoGetClassObject(&CLSID_AboutProtocol, CLSCTX_INPROC_SERVER, NULL, &IID_IUnknown, (void**)&unk); - ok(hres == S_OK, "CoGetClassObject failed: %08lx\n", hres); + ok(hres == S_OK, "CoGetClassObject failed: %08x\n", hres); if(!SUCCEEDED(hres)) return; hres = IUnknown_QueryInterface(unk, &IID_IInternetProtocolInfo, (void**)&protocol_info); - ok(hres == S_OK, "Could not get IInternetProtocolInfo interface: %08lx\n", hres); + ok(hres == S_OK, "Could not get IInternetProtocolInfo interface: %08x\n", hres); if(SUCCEEDED(hres)) { WCHAR buf[128]; DWORD size; @@ -467,31 +467,31 @@ static void test_about_protocol(void) hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, i, 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); ok(hres == INET_E_DEFAULT_ACTION, - "[%d] failed: %08lx, expected INET_E_DEFAULT_ACTION\n", i, hres); + "[%d] failed: %08x, expected INET_E_DEFAULT_ACTION\n", i, hres); } } hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_SECURITY_URL, 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); - ok(hres == S_OK, "ParseUrl failed: %08lx\n", hres); + ok(hres == S_OK, "ParseUrl failed: %08x\n", hres); ok(!lstrcmpW(blank_url, buf), "buf != blank_url\n"); hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_SECURITY_URL, 0, buf, 3, &size, 0); - ok(hres == S_FALSE, "ParseUrl failed: %08lx, expected S_FALSE\n", hres); + ok(hres == S_FALSE, "ParseUrl failed: %08x, expected S_FALSE\n", hres); hres = IInternetProtocolInfo_ParseUrl(protocol_info, test_url, PARSE_SECURITY_URL, 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); - ok(hres == S_OK, "ParseUrl failed: %08lx\n", hres); + ok(hres == S_OK, "ParseUrl failed: %08x\n", hres); ok(!lstrcmpW(test_url, buf), "buf != test_url\n"); size = 0xdeadbeef; buf[0] = '?'; hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_DOMAIN, 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); - ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08lx\n", hres); + ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08x\n", hres); ok(buf[0] == '?', "buf changed\n"); - ok(size == sizeof(blank_url)/sizeof(WCHAR), "size=%ld\n", size); + ok(size == sizeof(blank_url)/sizeof(WCHAR), "size=%d\n", size); #if 0 /* Crashes on win9x */ size = 0xdeadbeef; @@ -518,25 +518,25 @@ static void test_about_protocol(void) hres = IInternetProtocolInfo_ParseUrl(protocol_info, blank_url, PARSE_UNESCAPE+1, 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); ok(hres == INET_E_DEFAULT_ACTION, - "ParseUrl failed: %08lx, expected INET_E_DEFAULT_ACTION\n", hres); + "ParseUrl failed: %08x, expected INET_E_DEFAULT_ACTION\n", hres); size = 0xdeadbeef; hres = IInternetProtocolInfo_CombineUrl(protocol_info, blank_url, test_url, 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); - ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08lx\n", hres); - ok(size == 0xdeadbeef, "size=%ld\n", size); + ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres); + ok(size == 0xdeadbeef, "size=%d\n", size); size = 0xdeadbeef; hres = IInternetProtocolInfo_CombineUrl(protocol_info, blank_url, test_url, URL_FILE_USE_PATHURL, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); - ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08lx\n", hres); - ok(size == 0xdeadbeef, "size=%ld\n", size); + ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres); + ok(size == 0xdeadbeef, "size=%d\n", size); size = 0xdeadbeef; hres = IInternetProtocolInfo_CombineUrl(protocol_info, NULL, NULL, URL_FILE_USE_PATHURL, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); - ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08lx\n", hres); - ok(size == 0xdeadbeef, "size=%ld\n", size); + ok(hres == INET_E_USE_DEFAULT_PROTOCOLHANDLER, "CombineUrl failed: %08x\n", hres); + ok(size == 0xdeadbeef, "size=%d\n", size); IInternetProtocolInfo_Release(protocol_info); } @@ -548,38 +548,38 @@ static void test_about_protocol(void) BYTE buf[512]; ULONG cb; hres = IClassFactory_CreateInstance(factory, NULL, &IID_IInternetProtocol, (void**)&protocol); - ok(hres == S_OK, "Could not get IInternetProtocol: %08lx\n", hres); + ok(hres == S_OK, "Could not get IInternetProtocol: %08x\n", hres); if(SUCCEEDED(hres)) { protocol_start(protocol, blank_url); hres = IInternetProtocol_LockRequest(protocol, 0); - ok(hres == S_OK, "LockRequest failed: %08lx\n", hres); + ok(hres == S_OK, "LockRequest failed: %08x\n", hres); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08lx\n", hres); - ok(cb == sizeof(blank_html), "cb=%ld\n", cb); + ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(cb == sizeof(blank_html), "cb=%d\n", cb); ok(!memcmp(buf, blank_html, cb), "Readed wrong data\n"); hres = IInternetProtocol_UnlockRequest(protocol); - ok(hres == S_OK, "UnlockRequest failed: %08lx\n", hres); + ok(hres == S_OK, "UnlockRequest failed: %08x\n", hres); protocol_start(protocol, test_url); hres = IInternetProtocol_LockRequest(protocol, 0); - ok(hres == S_OK, "LockRequest failed: %08lx\n", hres); + ok(hres == S_OK, "LockRequest failed: %08x\n", hres); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08lx\n", hres); - ok(cb == sizeof(test_html), "cb=%ld\n", cb); + ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(cb == sizeof(test_html), "cb=%d\n", cb); ok(!memcmp(buf, test_html, cb), "Readed wrong data\n"); hres = IInternetProtocol_UnlockRequest(protocol); - ok(hres == S_OK, "UnlockRequest failed: %08lx\n", hres); + ok(hres == S_OK, "UnlockRequest failed: %08x\n", hres); protocol_start(protocol, res_url); hres = IInternetProtocol_LockRequest(protocol, 0); - ok(hres == S_OK, "LockRequest failed: %08lx\n", hres); + ok(hres == S_OK, "LockRequest failed: %08x\n", hres); hres = IInternetProtocol_Read(protocol, buf, sizeof(buf), &cb); - ok(hres == S_OK, "Read failed: %08lx\n", hres); - ok(cb == sizeof(blank_html), "cb=%ld\n", cb); + ok(hres == S_OK, "Read failed: %08x\n", hres); + ok(cb == sizeof(blank_html), "cb=%d\n", cb); ok(!memcmp(buf, blank_html, cb), "Readed wrong data\n"); hres = IInternetProtocol_UnlockRequest(protocol); - ok(hres == S_OK, "UnlockRequest failed: %08lx\n", hres); + ok(hres == S_OK, "UnlockRequest failed: %08x\n", hres); IInternetProtocol_Release(protocol); }