mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
mshtml/tests: Use common wine_dbgstr_guid implementation from test.h.
This commit is contained in:
parent
b553f54323
commit
672e2811ff
@ -165,18 +165,6 @@ static REFIID pluginhost_iids[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static const char *debugstr_guid(REFIID riid)
|
||||
{
|
||||
static char buf[50];
|
||||
|
||||
sprintf(buf, "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
|
||||
riid->Data1, riid->Data2, riid->Data3, riid->Data4[0],
|
||||
riid->Data4[1], riid->Data4[2], riid->Data4[3], riid->Data4[4],
|
||||
riid->Data4[5], riid->Data4[6], riid->Data4[7]);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
static BOOL iface_cmp(IUnknown *iface1, IUnknown *iface2)
|
||||
{
|
||||
IUnknown *unk1, *unk2;
|
||||
@ -201,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", debugstr_guid(*piid), hres);
|
||||
ok_(__FILE__,line) (hres == S_OK, "Could not get %s interface: %08x\n", wine_dbgstr_guid(*piid), hres);
|
||||
if(SUCCEEDED(hres))
|
||||
IUnknown_Release(unk);
|
||||
}
|
||||
@ -308,7 +296,7 @@ static void create_plugin_window(HWND parent, const RECT *rect)
|
||||
|
||||
static HRESULT WINAPI ConnectionPoint_QueryInterface(IConnectionPoint *iface, REFIID riid, void **ppv)
|
||||
{
|
||||
ok(0, "unexpected QI call %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected QI call %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -717,7 +705,7 @@ static HRESULT WINAPI Dispatch_GetTypeInfo(IDispatch *iface, UINT iTInfo, LCID l
|
||||
static HRESULT WINAPI Dispatch_GetIDsOfNames(IDispatch *iface, REFIID riid, LPOLESTR *rgszNames,
|
||||
UINT cNames, LCID lcid, DISPID *rgDispId)
|
||||
{
|
||||
ok(IsEqualGUID(riid, &IID_NULL), "riid = %s\n", debugstr_guid(riid));
|
||||
ok(IsEqualGUID(riid, &IID_NULL), "riid = %s\n", wine_dbgstr_guid(riid));
|
||||
ok(cNames == 1, "cNames = %d\n", cNames);
|
||||
ok(rgszNames != NULL, "rgszNames == NULL\n");
|
||||
ok(rgDispId != NULL, "rgDispId == NULL\n");
|
||||
@ -738,7 +726,7 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID dispIdMember, REF
|
||||
LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult,
|
||||
EXCEPINFO *pExcepInfo, UINT *puArgErr)
|
||||
{
|
||||
ok(IsEqualGUID(riid, &IID_NULL), "riid = %s\n", debugstr_guid(riid));
|
||||
ok(IsEqualGUID(riid, &IID_NULL), "riid = %s\n", wine_dbgstr_guid(riid));
|
||||
ok(pDispParams != NULL, "pDispParams == NULL\n");
|
||||
ok(!pDispParams->cNamedArgs, "pDispParams->cNamedArgs = %d\n", pDispParams->cNamedArgs);
|
||||
ok(!pDispParams->rgdispidNamedArgs, "pDispParams->rgdispidNamedArgs != NULL\n");
|
||||
@ -891,7 +879,7 @@ static HRESULT WINAPI ConnectionPointContainer_FindConnectionPoint(IConnectionPo
|
||||
}
|
||||
|
||||
CHECK_EXPECT(FindConnectionPoint);
|
||||
ok(IsEqualGUID(riid, &DIID_DispActiveXTest), "riid = %s\n", debugstr_guid(riid));
|
||||
ok(IsEqualGUID(riid, &DIID_DispActiveXTest), "riid = %s\n", wine_dbgstr_guid(riid));
|
||||
|
||||
IConnectionPoint_AddRef(&ConnectionPoint);
|
||||
*ppCP = &ConnectionPoint;
|
||||
@ -1463,7 +1451,7 @@ static HRESULT ax_qi(REFIID riid, void **ppv)
|
||||
|| IsEqualGUID(&IID_IOleInPlaceObjectWindowless, riid)) {
|
||||
*ppv = plugin_behavior == TEST_DISPONLY ? NULL : &OleInPlaceObjectWindowless;
|
||||
}else {
|
||||
trace("QI %s\n", debugstr_guid(riid));
|
||||
trace("QI %s\n", wine_dbgstr_guid(riid));
|
||||
*ppv = NULL;
|
||||
}
|
||||
|
||||
@ -1490,7 +1478,7 @@ static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID r
|
||||
if(IsEqualGUID(&IID_IClassFactoryEx, riid))
|
||||
return E_NOINTERFACE; /* TODO */
|
||||
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
@ -1509,7 +1497,7 @@ static HRESULT WINAPI ClassFactory_CreateInstance(IClassFactory *iface, IUnknown
|
||||
CHECK_EXPECT(CreateInstance);
|
||||
|
||||
ok(!outer, "outer = %p\n", outer);
|
||||
ok(IsEqualGUID(riid, &IID_IUnknown), "riid = %s\n", debugstr_guid(riid));
|
||||
ok(IsEqualGUID(riid, &IID_IUnknown), "riid = %s\n", wine_dbgstr_guid(riid));
|
||||
|
||||
activex_refcnt++;
|
||||
*ppv = &OleControl;
|
||||
@ -1779,7 +1767,7 @@ static HRESULT WINAPI InPlaceFrame_QueryInterface(IOleInPlaceFrame *iface, REFII
|
||||
static const GUID undocumented_frame_iid = {0xfbece6c9,0x48d7,0x4a37,{0x8f,0xe3,0x6a,0xd4,0x27,0x2f,0xdd,0xac}};
|
||||
|
||||
if(!IsEqualGUID(&undocumented_frame_iid, riid))
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
|
||||
*ppv = NULL;
|
||||
return E_NOINTERFACE;
|
||||
@ -2152,7 +2140,7 @@ static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, REFG
|
||||
{
|
||||
if(IsEqualGUID(&CLSID_TestActiveX, guidService)) {
|
||||
CHECK_EXPECT(QueryService_TestActiveX);
|
||||
ok(IsEqualGUID(&IID_IUnknown, riid), "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(IsEqualGUID(&IID_IUnknown, riid), "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
*ppv = &OleObject;
|
||||
return S_OK;
|
||||
}
|
||||
|
@ -470,18 +470,6 @@ static const elem_type_info_t elem_type_infos[] = {
|
||||
{"BUTTON", button_iids, &DIID_DispHTMLButtonElement}
|
||||
};
|
||||
|
||||
static const char *dbgstr_guid(REFIID riid)
|
||||
{
|
||||
static char buf[50];
|
||||
|
||||
sprintf(buf, "{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}",
|
||||
riid->Data1, riid->Data2, riid->Data3, riid->Data4[0],
|
||||
riid->Data4[1], riid->Data4[2], riid->Data4[3], riid->Data4[4],
|
||||
riid->Data4[5], riid->Data4[6], riid->Data4[7]);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
static int strcmp_wa(LPCWSTR strw, const char *stra)
|
||||
{
|
||||
CHAR buf[512];
|
||||
@ -562,7 +550,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", dbgstr_guid(*piid), hres);
|
||||
ok_(__FILE__,line) (hres == S_OK, "Could not get %s interface: %08x\n", wine_dbgstr_guid(*piid), hres);
|
||||
if(SUCCEEDED(hres))
|
||||
IUnknown_Release(unk);
|
||||
}
|
||||
@ -639,7 +627,7 @@ static void _test_disp(unsigned line, IUnknown *unk, const IID *diid, const char
|
||||
IID iid;
|
||||
|
||||
if(_test_get_dispid(line, unk, &iid))
|
||||
ok_(__FILE__,line) (IsEqualGUID(&iid, diid), "unexpected guid %s\n", dbgstr_guid(&iid));
|
||||
ok_(__FILE__,line) (IsEqualGUID(&iid, diid), "unexpected guid %s\n", wine_dbgstr_guid(&iid));
|
||||
|
||||
if(val)
|
||||
_test_disp_value(line, unk, val);
|
||||
@ -652,7 +640,7 @@ static void _test_disp2(unsigned line, IUnknown *unk, const IID *diid, const IID
|
||||
|
||||
if(_test_get_dispid(line, unk, &iid))
|
||||
ok_(__FILE__,line) (IsEqualGUID(&iid, diid) || broken(IsEqualGUID(&iid, diid2)),
|
||||
"unexpected guid %s\n", dbgstr_guid(&iid));
|
||||
"unexpected guid %s\n", wine_dbgstr_guid(&iid));
|
||||
|
||||
if(val)
|
||||
_test_disp_value(line, unk, val);
|
||||
@ -684,7 +672,7 @@ static void _test_class_info(unsigned line, IUnknown *unk)
|
||||
if(SUCCEEDED(hres))
|
||||
{
|
||||
ok_(__FILE__,line)(IsEqualGUID(&type_attr->guid, &CLSID_HTMLDocument),
|
||||
"unexpected guid %s\n", dbgstr_guid(&type_attr->guid));
|
||||
"unexpected guid %s\n", wine_dbgstr_guid(&type_attr->guid));
|
||||
ok_(__FILE__,line)(type_attr->typekind == TKIND_COCLASS,
|
||||
"unexpected typekind %d\n", type_attr->typekind);
|
||||
ITypeInfo_ReleaseTypeAttr(typeinfo, type_attr);
|
||||
@ -7236,7 +7224,7 @@ static void test_cond_comment(IHTMLDocument2 *doc)
|
||||
|
||||
static HRESULT WINAPI Unknown_QueryInterface(IUnknown *iface, REFIID riid, void **ppv)
|
||||
{
|
||||
ok(IsEqualGUID(riid, &IID_IServiceProvider), "riid = %s\n", dbgstr_guid(riid));
|
||||
ok(IsEqualGUID(riid, &IID_IServiceProvider), "riid = %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -125,18 +125,6 @@ static const char form_doc_str[] =
|
||||
"<input type=\"submit\" id=\"submitid\" />"
|
||||
"</form></body></html>";
|
||||
|
||||
static const char *debugstr_guid(REFIID riid)
|
||||
{
|
||||
static char buf[50];
|
||||
|
||||
sprintf(buf, "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
|
||||
riid->Data1, riid->Data2, riid->Data3, riid->Data4[0],
|
||||
riid->Data4[1], riid->Data4[2], riid->Data4[3], riid->Data4[4],
|
||||
riid->Data4[5], riid->Data4[6], riid->Data4[7]);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
static int strcmp_wa(LPCWSTR strw, const char *stra)
|
||||
{
|
||||
CHAR buf[512];
|
||||
@ -198,7 +186,7 @@ static void _test_disp(unsigned line, IUnknown *unk, const IID *diid)
|
||||
hres = ITypeInfo_GetTypeAttr(typeinfo, &type_attr);
|
||||
ok_(__FILE__,line) (hres == S_OK, "GetTypeAttr failed: %08x\n", hres);
|
||||
ok_(__FILE__,line) (IsEqualGUID(&type_attr->guid, diid), "unexpected guid %s\n",
|
||||
debugstr_guid(&type_attr->guid));
|
||||
wine_dbgstr_guid(&type_attr->guid));
|
||||
|
||||
ITypeInfo_ReleaseTypeAttr(typeinfo, type_attr);
|
||||
ITypeInfo_Release(typeinfo);
|
||||
@ -729,7 +717,7 @@ static HRESULT WINAPI DispatchEx_QueryInterface(IDispatchEx *iface, REFIID riid,
|
||||
|| IsEqualGUID(riid, &IID_IDispatchEx))
|
||||
*ppv = iface;
|
||||
else {
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -746,7 +734,7 @@ static HRESULT WINAPI Dispatch_QueryInterface(IDispatchEx *iface, REFIID riid, v
|
||||
}else if(IsEqualGUID(riid, &IID_IDispatchEx)) {
|
||||
return E_NOINTERFACE;
|
||||
}else {
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -1200,7 +1188,7 @@ EVENT_HANDLER_FUNC_OBJ(nocall);
|
||||
|| IsEqualGUID(riid, &diid)) \
|
||||
*ppv = iface; \
|
||||
else { \
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid)); \
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid)); \
|
||||
return E_NOINTERFACE; \
|
||||
} \
|
||||
return S_OK; \
|
||||
@ -1227,7 +1215,7 @@ EVENT_HANDLER_FUNC_OBJ(nocall);
|
||||
#define test_cp_args(a,b,c,d,e,f) _test_cp_args(__LINE__,a,b,c,d,e,f)
|
||||
static void _test_cp_args(unsigned line, REFIID riid, WORD flags, DISPPARAMS *dp, VARIANT *vres, EXCEPINFO *ei, UINT *argerr)
|
||||
{
|
||||
ok_(__FILE__,line)(IsEqualGUID(&IID_NULL, riid), "riid = %s\n", debugstr_guid(riid));
|
||||
ok_(__FILE__,line)(IsEqualGUID(&IID_NULL, riid), "riid = %s\n", wine_dbgstr_guid(riid));
|
||||
ok_(__FILE__,line)(flags == DISPATCH_METHOD, "flags = %x\n", flags);
|
||||
ok_(__FILE__,line)(dp != NULL, "dp == NULL\n");
|
||||
ok_(__FILE__,line)(!dp->cArgs, "dp->cArgs = %d\n", dp->cArgs);
|
||||
@ -1245,7 +1233,7 @@ static void _test_cp_eventarg(unsigned line, REFIID riid, WORD flags, DISPPARAMS
|
||||
{
|
||||
IHTMLEventObj *event;
|
||||
|
||||
ok_(__FILE__,line)(IsEqualGUID(&IID_NULL, riid), "riid = %s\n", debugstr_guid(riid));
|
||||
ok_(__FILE__,line)(IsEqualGUID(&IID_NULL, riid), "riid = %s\n", wine_dbgstr_guid(riid));
|
||||
ok_(__FILE__,line)(flags == DISPATCH_METHOD, "flags = %x\n", flags);
|
||||
ok_(__FILE__,line)(dp != NULL, "dp == NULL\n");
|
||||
ok_(__FILE__,line)(dp->cArgs == 1, "dp->cArgs = %d\n", dp->cArgs);
|
||||
@ -1329,7 +1317,7 @@ static HRESULT WINAPI timeoutFunc_Invoke(IDispatchEx *iface, DISPID dispIdMember
|
||||
CHECK_EXPECT(timeout);
|
||||
|
||||
ok(dispIdMember == DISPID_VALUE, "dispIdMember = %d\n", dispIdMember);
|
||||
ok(IsEqualGUID(&IID_NULL, riid), "riid = %s\n", debugstr_guid(riid));
|
||||
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(pDispParams != NULL, "pDispParams == NULL\n");
|
||||
@ -1373,7 +1361,7 @@ static HRESULT WINAPI div_onclick_disp_Invoke(IDispatchEx *iface, DISPID id,
|
||||
|
||||
test_attached_event_args(id, wFlags, pdp, pvarRes, pei);
|
||||
|
||||
ok(IsEqualGUID(&IID_NULL, riid), "riid = %s\n", debugstr_guid(riid));
|
||||
ok(IsEqualGUID(&IID_NULL, riid), "riid = %s\n", wine_dbgstr_guid(riid));
|
||||
ok(!puArgErr, "puArgErr = %p\n", puArgErr);
|
||||
|
||||
return S_OK;
|
||||
@ -1493,7 +1481,7 @@ static HRESULT WINAPI EventDispatch_Invoke(IDispatch *iface, DISPID dispIdMember
|
||||
LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult,
|
||||
EXCEPINFO *pExcepInfo, UINT *puArgErr)
|
||||
{
|
||||
ok(IsEqualGUID(&IID_NULL, riid), "riid = %s\n", debugstr_guid(riid));
|
||||
ok(IsEqualGUID(&IID_NULL, riid), "riid = %s\n", wine_dbgstr_guid(riid));
|
||||
ok(pDispParams != NULL, "pDispParams == NULL\n");
|
||||
ok(pExcepInfo != NULL, "pExcepInfo == NULL\n");
|
||||
ok(puArgErr != NULL, "puArgErr == NULL\n");
|
||||
|
@ -261,21 +261,6 @@ static const WCHAR wszTimesNewRoman[] =
|
||||
static const WCHAR wszArial[] =
|
||||
{'A','r','i','a','l',0};
|
||||
|
||||
static const char *debugstr_guid(REFIID riid)
|
||||
{
|
||||
static char buf[50];
|
||||
|
||||
if(!riid)
|
||||
return "(null)";
|
||||
|
||||
sprintf(buf, "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
|
||||
riid->Data1, riid->Data2, riid->Data3, riid->Data4[0],
|
||||
riid->Data4[1], riid->Data4[2], riid->Data4[3], riid->Data4[4],
|
||||
riid->Data4[5], riid->Data4[6], riid->Data4[7]);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
static int strcmp_wa(LPCWSTR strw, const char *stra)
|
||||
{
|
||||
CHAR buf[512];
|
||||
@ -499,7 +484,7 @@ static HRESULT WINAPI External_QueryInterface(IDispatch *iface, REFIID riid, voi
|
||||
return E_NOINTERFACE; /* TODO */
|
||||
|
||||
if(!ignore_external_qi)
|
||||
ok(0, "unexpected riid: %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid: %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -1023,7 +1008,7 @@ static HRESULT WINAPI Stream_QueryInterface(IStream *iface, REFIID riid, void **
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
ok(0, "unexpected call %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected call %s\n", wine_dbgstr_guid(riid));
|
||||
*ppv = NULL;
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
@ -1150,7 +1135,7 @@ static HRESULT WINAPI WinInetHttpInfo_QueryInterface(
|
||||
if(IsEqualGUID(&IID_IGetBindHandle, riid))
|
||||
return E_NOINTERFACE;
|
||||
|
||||
ok(0, "unexpected call %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected call %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -1225,7 +1210,7 @@ static HRESULT WINAPI Binding_QueryInterface(IBinding *iface, REFIID riid, void
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
ok(0, "unexpected call %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected call %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -1304,7 +1289,7 @@ static HRESULT WINAPI Moniker_QueryInterface(IMoniker *iface, REFIID riid, void
|
||||
if(IsEqualGUID(&IID_IMoniker_unk2, riid))
|
||||
return E_NOINTERFACE; /* TODO */
|
||||
|
||||
ok(0, "unexpected riid: %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid: %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -1321,7 +1306,7 @@ static ULONG WINAPI Moniker_Release(IMoniker *iface)
|
||||
static HRESULT WINAPI Moniker_GetClassID(IMoniker *iface, CLSID *pClassID)
|
||||
{
|
||||
CHECK_EXPECT(GetClassID);
|
||||
ok(IsEqualGUID(pClassID, &IID_NULL), "pClassID = %s\n", debugstr_guid(pClassID));
|
||||
ok(IsEqualGUID(pClassID, &IID_NULL), "pClassID = %s\n", wine_dbgstr_guid(pClassID));
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@ -1741,7 +1726,7 @@ static HRESULT WINAPI InPlaceFrame_QueryInterface(IOleInPlaceFrame *iface, REFII
|
||||
static const GUID undocumented_frame_iid = {0xfbece6c9,0x48d7,0x4a37,{0x8f,0xe3,0x6a,0xd4,0x27,0x2f,0xdd,0xac}};
|
||||
|
||||
if(!IsEqualGUID(&undocumented_frame_iid, riid))
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
|
||||
*ppv = NULL;
|
||||
return E_NOINTERFACE;
|
||||
@ -2686,7 +2671,7 @@ static HRESULT WINAPI CustomDocHostUIHandler_QueryInterface(IDocHostUIHandler2 *
|
||||
else if(IsEqualGUID(&IID_IDocHostShowUI, riid))
|
||||
return E_NOINTERFACE; /* TODO */
|
||||
|
||||
ok(0, "unexpected call %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected call %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -3137,7 +3122,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
|
||||
}
|
||||
}
|
||||
|
||||
ok(0, "unexpected pguidCmdGroup: %s\n", debugstr_guid(pguidCmdGroup));
|
||||
ok(0, "unexpected pguidCmdGroup: %s\n", wine_dbgstr_guid(pguidCmdGroup));
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
@ -3234,7 +3219,7 @@ static HRESULT WINAPI EventDispatch_Invoke(IDispatch *iface, DISPID dispIdMember
|
||||
if(resetting_document)
|
||||
return E_FAIL;
|
||||
|
||||
ok(IsEqualGUID(&IID_NULL, riid), "riid = %s\n", debugstr_guid(riid));
|
||||
ok(IsEqualGUID(&IID_NULL, riid), "riid = %s\n", wine_dbgstr_guid(riid));
|
||||
ok(pDispParams != NULL, "pDispParams == NULL\n");
|
||||
ok(pExcepInfo != NULL, "pExcepInfo == NULL\n");
|
||||
ok(puArgErr != NULL, "puArgErr == NULL\n");
|
||||
@ -3304,7 +3289,7 @@ static HRESULT WINAPI TravelLog_QueryInterface(ITravelLog *iface, REFIID riid, v
|
||||
}
|
||||
|
||||
if(!IsEqualGUID(&IID_IIETravelLog2, riid) && !IsEqualGUID(&IID_unk_travellog, riid))
|
||||
ok(0, "unexpected call %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected call %s\n", wine_dbgstr_guid(riid));
|
||||
|
||||
*ppv = NULL;
|
||||
return E_NOINTERFACE;
|
||||
@ -4044,7 +4029,7 @@ static HRESULT WINAPI WBE2Sink_QueryInterface(IDispatch *iface, REFIID riid, voi
|
||||
}
|
||||
|
||||
*ppv = NULL;
|
||||
ok(0, "unexpected riid: %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid: %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -4260,7 +4245,7 @@ static HRESULT WINAPI ConnectionPointContainer_FindConnectionPoint(IConnectionPo
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
@ -4980,7 +4965,7 @@ static HRESULT wb_qi(REFIID riid, void **ppv)
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
ok(0, "unexpected call %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected call %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -5050,7 +5035,7 @@ static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, REFG
|
||||
*ppv = &WebBrowser2;
|
||||
return S_OK;
|
||||
}
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
}
|
||||
|
||||
return E_NOINTERFACE;
|
||||
@ -5140,7 +5125,7 @@ static HRESULT WINAPI ViewAdviseSink_QueryInterface(IAdviseSinkEx *iface,
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
*ppv = NULL;
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
@ -5218,7 +5203,7 @@ static HRESULT QueryInterface(REFIID riid, void **ppv)
|
||||
else if(IsEqualGUID(&IID_IDocHostUIHandlerPriv, riid))
|
||||
return E_NOINTERFACE; /* ? */
|
||||
else
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
|
||||
if(*ppv)
|
||||
return S_OK;
|
||||
|
@ -77,18 +77,6 @@ static const WCHAR javascript_test_url[] = {'j','a','v','a','s','c','r','i','p',
|
||||
static WCHAR res_url_base[INTERNET_MAX_URL_LENGTH] = {'r','e','s',':','/','/'};
|
||||
static unsigned res_url_base_len;
|
||||
|
||||
static const char *debugstr_guid(REFIID riid)
|
||||
{
|
||||
static char buf[50];
|
||||
|
||||
sprintf(buf, "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
|
||||
riid->Data1, riid->Data2, riid->Data3, riid->Data4[0],
|
||||
riid->Data4[1], riid->Data4[2], riid->Data4[3], riid->Data4[4],
|
||||
riid->Data4[5], riid->Data4[6], riid->Data4[7]);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI ProtocolSink_QueryInterface(IInternetProtocolSink *iface, REFIID riid, void **ppv)
|
||||
{
|
||||
if(IsEqualGUID(&IID_IUnknown, riid) || IsEqualGUID(&IID_IInternetProtocolSink, riid)) {
|
||||
@ -97,7 +85,7 @@ static HRESULT WINAPI ProtocolSink_QueryInterface(IInternetProtocolSink *iface,
|
||||
}
|
||||
|
||||
*ppv = NULL;
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -184,7 +172,7 @@ static HRESULT WINAPI BindInfo_QueryInterface(IInternetBindInfo *iface, REFIID r
|
||||
}
|
||||
|
||||
*ppv = NULL;
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -161,18 +161,6 @@ static HRESULT ax_getopt_hres = S_OK, ax_setopt_dispex_hres = S_OK;
|
||||
static HRESULT ax_setopt_disp_caller_hres = S_OK, ax_setopt_disp_data_hres = S_OK;
|
||||
static BOOL skip_loadobject_tests;
|
||||
|
||||
static const char *debugstr_guid(REFIID riid)
|
||||
{
|
||||
static char buf[50];
|
||||
|
||||
sprintf(buf, "{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}",
|
||||
riid->Data1, riid->Data2, riid->Data3, riid->Data4[0],
|
||||
riid->Data4[1], riid->Data4[2], riid->Data4[3], riid->Data4[4],
|
||||
riid->Data4[5], riid->Data4[6], riid->Data4[7]);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
static int strcmp_wa(LPCWSTR strw, const char *stra)
|
||||
{
|
||||
CHAR buf[512];
|
||||
@ -276,7 +264,7 @@ static IPropertyNotifySink PropertyNotifySink = { &PropertyNotifySinkVtbl };
|
||||
|
||||
static HRESULT WINAPI VariantChangeType_QueryInterface(IVariantChangeType *iface, REFIID riid, void **ppv)
|
||||
{
|
||||
ok(0, "unexpected call %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected call %s\n", wine_dbgstr_guid(riid));
|
||||
*ppv = NULL;
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
@ -338,12 +326,12 @@ static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, REFG
|
||||
{
|
||||
if(IsEqualGUID(guidService, &SID_VariantConversion)) {
|
||||
CHECK_EXPECT(QS_VariantConversion);
|
||||
ok(IsEqualGUID(riid, &IID_IVariantChangeType), "uenxpected riid %s\n", debugstr_guid(riid));
|
||||
ok(IsEqualGUID(riid, &IID_IVariantChangeType), "uenxpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
*ppv = &VChangeType;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
ok(0, "unexpected service %s\n", debugstr_guid(guidService));
|
||||
ok(0, "unexpected service %s\n", wine_dbgstr_guid(guidService));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -1308,7 +1296,7 @@ static SCRIPTSTATE state;
|
||||
static HRESULT WINAPI ObjectSafety_QueryInterface(IObjectSafety *iface, REFIID riid, void **ppv)
|
||||
{
|
||||
*ppv = NULL;
|
||||
ok(0, "unexpected call %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected call %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -1327,7 +1315,7 @@ static HRESULT WINAPI ObjectSafety_GetInterfaceSafetyOptions(IObjectSafety *ifac
|
||||
{
|
||||
CHECK_EXPECT(GetInterfaceSafetyOptions);
|
||||
|
||||
ok(IsEqualGUID(&IID_IActiveScriptParse, riid), "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(IsEqualGUID(&IID_IActiveScriptParse, riid), "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
ok(pdwSupportedOptions != NULL, "pdwSupportedOptions == NULL\n");
|
||||
ok(pdwEnabledOptions != NULL, "pdwEnabledOptions == NULL\n");
|
||||
|
||||
@ -1342,7 +1330,7 @@ static HRESULT WINAPI ObjectSafety_SetInterfaceSafetyOptions(IObjectSafety *ifac
|
||||
{
|
||||
CHECK_EXPECT(SetInterfaceSafetyOptions);
|
||||
|
||||
ok(IsEqualGUID(&IID_IActiveScriptParse, riid), "unexpected riid %s\n", debugstr_guid(riid));
|
||||
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);
|
||||
@ -1379,7 +1367,7 @@ static HRESULT WINAPI AXObjectSafety_QueryInterface(IObjectSafety *iface, REFIID
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
ok(0, "unexpected call %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected call %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -1388,7 +1376,7 @@ static HRESULT WINAPI AXObjectSafety_GetInterfaceSafetyOptions(IObjectSafety *if
|
||||
{
|
||||
CHECK_EXPECT(AXGetInterfaceSafetyOptions);
|
||||
|
||||
ok(IsEqualGUID(&IID_IDispatchEx, riid), "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(IsEqualGUID(&IID_IDispatchEx, riid), "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
ok(pdwSupportedOptions != NULL, "pdwSupportedOptions == NULL\n");
|
||||
ok(pdwEnabledOptions != NULL, "pdwEnabledOptions == NULL\n");
|
||||
|
||||
@ -1439,7 +1427,7 @@ static HRESULT WINAPI AXObjectSafety_SetInterfaceSafetyOptions(IObjectSafety *if
|
||||
return hres;
|
||||
}
|
||||
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -2424,7 +2412,7 @@ static HRESULT WINAPI ActiveScript_QueryInterface(IActiveScript *iface, REFIID r
|
||||
if(IsEqualGUID(&IID_IActiveScriptDebug, riid))
|
||||
return E_NOINTERFACE;
|
||||
|
||||
trace("QI(%s)\n", debugstr_guid(riid));
|
||||
trace("QI(%s)\n", wine_dbgstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
@ -2653,7 +2641,7 @@ static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID r
|
||||
if(IsEqualGUID(&CLSID_IdentityUnmarshal, riid))
|
||||
return E_NOINTERFACE;
|
||||
|
||||
ok(0, "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(0, "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
@ -2672,7 +2660,7 @@ static HRESULT WINAPI ClassFactory_CreateInstance(IClassFactory *iface, IUnknown
|
||||
CHECK_EXPECT(CreateInstance);
|
||||
|
||||
ok(!outer, "outer = %p\n", outer);
|
||||
ok(IsEqualGUID(&IID_IActiveScript, riid), "unexpected riid %s\n", debugstr_guid(riid));
|
||||
ok(IsEqualGUID(&IID_IActiveScript, riid), "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||
*ppv = &ActiveScript;
|
||||
return S_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user