vbscript/tests: Use common wine_dbgstr_guid implementation from test.h.
This commit is contained in:
parent
408c351035
commit
e04c7359ed
|
@ -117,18 +117,6 @@ const GUID GUID_CUSTOM_CONFIRMOBJECTSAFETY =
|
||||||
|
|
||||||
#define VB_E_CANNOT_CREATE_OBJ 0x800a01ad
|
#define VB_E_CANNOT_CREATE_OBJ 0x800a01ad
|
||||||
|
|
||||||
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 BSTR a2bstr(const char *str)
|
static BSTR a2bstr(const char *str)
|
||||||
{
|
{
|
||||||
BSTR ret;
|
BSTR ret;
|
||||||
|
@ -436,7 +424,7 @@ static HRESULT WINAPI ClassFactory_CreateInstance(IClassFactory *iface, IUnknown
|
||||||
CHECK_EXPECT(CreateInstance);
|
CHECK_EXPECT(CreateInstance);
|
||||||
|
|
||||||
ok(!outer, "outer = %p\n", outer);
|
ok(!outer, "outer = %p\n", outer);
|
||||||
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));
|
||||||
|
|
||||||
if(SUCCEEDED(CreateInstance_hres))
|
if(SUCCEEDED(CreateInstance_hres))
|
||||||
*ppv = &testObj;
|
*ppv = &testObj;
|
||||||
|
@ -492,7 +480,7 @@ static HRESULT WINAPI InternetHostSecurityManager_ProcessUrlAction(IInternetHost
|
||||||
ok(cbPolicy == sizeof(DWORD), "cbPolicy = %d\n", cbPolicy);
|
ok(cbPolicy == sizeof(DWORD), "cbPolicy = %d\n", cbPolicy);
|
||||||
ok(pContext != NULL, "pContext == NULL\n");
|
ok(pContext != NULL, "pContext == NULL\n");
|
||||||
ok(cbContext == sizeof(GUID), "cbContext = %d\n", cbContext);
|
ok(cbContext == sizeof(GUID), "cbContext = %d\n", cbContext);
|
||||||
ok(IsEqualGUID(pContext, &CLSID_TestObj), "pContext = %s\n", debugstr_guid((const IID*)pContext));
|
ok(IsEqualGUID(pContext, &CLSID_TestObj), "pContext = %s\n", wine_dbgstr_guid((const IID*)pContext));
|
||||||
ok(!dwFlags, "dwFlags = %x\n", dwFlags);
|
ok(!dwFlags, "dwFlags = %x\n", dwFlags);
|
||||||
ok(!dwReserved, "dwReserved = %x\n", dwReserved);
|
ok(!dwReserved, "dwReserved = %x\n", dwReserved);
|
||||||
|
|
||||||
|
@ -509,7 +497,7 @@ static HRESULT WINAPI InternetHostSecurityManager_QueryCustomPolicy(IInternetHos
|
||||||
|
|
||||||
CHECK_EXPECT(QueryCustomPolicy);
|
CHECK_EXPECT(QueryCustomPolicy);
|
||||||
|
|
||||||
ok(IsEqualGUID(&GUID_CUSTOM_CONFIRMOBJECTSAFETY, guidKey), "guidKey = %s\n", debugstr_guid(guidKey));
|
ok(IsEqualGUID(&GUID_CUSTOM_CONFIRMOBJECTSAFETY, guidKey), "guidKey = %s\n", wine_dbgstr_guid(guidKey));
|
||||||
|
|
||||||
ok(ppPolicy != NULL, "ppPolicy == NULL\n");
|
ok(ppPolicy != NULL, "ppPolicy == NULL\n");
|
||||||
ok(pcbPolicy != NULL, "pcbPolicy == NULL\n");
|
ok(pcbPolicy != NULL, "pcbPolicy == NULL\n");
|
||||||
|
@ -574,13 +562,13 @@ static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface,
|
||||||
CHECK_EXPECT(Host_QS_SecMgr);
|
CHECK_EXPECT(Host_QS_SecMgr);
|
||||||
else
|
else
|
||||||
CHECK_EXPECT(Caller_QS_SecMgr);
|
CHECK_EXPECT(Caller_QS_SecMgr);
|
||||||
ok(IsEqualGUID(&IID_IInternetHostSecurityManager, riid), "unexpected riid %s\n", debugstr_guid(riid));
|
ok(IsEqualGUID(&IID_IInternetHostSecurityManager, riid), "unexpected riid %s\n", wine_dbgstr_guid(riid));
|
||||||
if(SUCCEEDED(QS_SecMgr_hres))
|
if(SUCCEEDED(QS_SecMgr_hres))
|
||||||
*ppv = &InternetHostSecurityManager;
|
*ppv = &InternetHostSecurityManager;
|
||||||
return QS_SecMgr_hres;
|
return QS_SecMgr_hres;
|
||||||
}
|
}
|
||||||
|
|
||||||
ok(0, "unexpected service %s\n", debugstr_guid(guidService));
|
ok(0, "unexpected service %s\n", wine_dbgstr_guid(guidService));
|
||||||
return E_NOINTERFACE;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -146,18 +146,6 @@ static int strcmp_wa(LPCWSTR strw, const char *stra)
|
||||||
return lstrcmpA(buf, stra);
|
return lstrcmpA(buf, stra);
|
||||||
}
|
}
|
||||||
|
|
||||||
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 const char *vt2a(VARIANT *v)
|
static const char *vt2a(VARIANT *v)
|
||||||
{
|
{
|
||||||
if(V_VT(v) == (VT_BYREF|VT_VARIANT)) {
|
if(V_VT(v) == (VT_BYREF|VT_VARIANT)) {
|
||||||
|
@ -237,7 +225,7 @@ static ULONG WINAPI ServiceProvider_Release(IServiceProvider *iface)
|
||||||
static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, REFGUID guidService,
|
static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, REFGUID guidService,
|
||||||
REFIID riid, void **ppv)
|
REFIID riid, void **ppv)
|
||||||
{
|
{
|
||||||
ok(0, "unexpected service %s\n", debugstr_guid(guidService));
|
ok(0, "unexpected service %s\n", wine_dbgstr_guid(guidService));
|
||||||
return E_NOINTERFACE;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -482,7 +470,7 @@ static HRESULT WINAPI EnumVARIANT_QueryInterface(IEnumVARIANT *iface, REFIID rii
|
||||||
return S_OK;
|
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;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -555,7 +543,7 @@ static HRESULT WINAPI DispatchEx_QueryInterface(IDispatchEx *iface, REFIID riid,
|
||||||
|| IsEqualGUID(riid, &IID_IDispatchEx))
|
|| IsEqualGUID(riid, &IID_IDispatchEx))
|
||||||
*ppv = iface;
|
*ppv = iface;
|
||||||
else {
|
else {
|
||||||
trace("QI %s\n", debugstr_guid(riid));
|
trace("QI %s\n", wine_dbgstr_guid(riid));
|
||||||
return E_NOINTERFACE;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue