Commit 9677454f authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

oleaut32: Use debugstr_variant in variant.c where appropriate.

parent fec1ed45
...@@ -94,6 +94,8 @@ const char *debugstr_variant(const VARIANT *v) ...@@ -94,6 +94,8 @@ const char *debugstr_variant(const VARIANT *v)
return wine_dbg_sprintf("%p {VT_I2: %d}", v, V_I2(v)); return wine_dbg_sprintf("%p {VT_I2: %d}", v, V_I2(v));
case VT_I4: case VT_I4:
return wine_dbg_sprintf("%p {VT_I4: %d}", v, V_I4(v)); return wine_dbg_sprintf("%p {VT_I4: %d}", v, V_I4(v));
case VT_R4:
return wine_dbg_sprintf("%p {VT_R4: %f}", v, V_R4(v));
case VT_R8: case VT_R8:
return wine_dbg_sprintf("%p {VT_R8: %lf}", v, V_R8(v)); return wine_dbg_sprintf("%p {VT_R8: %lf}", v, V_R8(v));
case VT_BSTR: case VT_BSTR:
...@@ -119,9 +121,8 @@ static inline HRESULT VARIANT_Coerce(VARIANTARG* pd, LCID lcid, USHORT wFlags, ...@@ -119,9 +121,8 @@ static inline HRESULT VARIANT_Coerce(VARIANTARG* pd, LCID lcid, USHORT wFlags,
VARTYPE vtFrom = V_TYPE(ps); VARTYPE vtFrom = V_TYPE(ps);
DWORD dwFlags = 0; DWORD dwFlags = 0;
TRACE("(%p->(%s%s),0x%08x,0x%04x,%p->(%s%s),%s%s)\n", pd, debugstr_VT(pd), TRACE("(%s,0x%08x,0x%04x,%s,%s%s)\n", debugstr_variant(pd), lcid, wFlags,
debugstr_VF(pd), lcid, wFlags, ps, debugstr_VT(ps), debugstr_VF(ps), debugstr_variant(ps), debugstr_vt(vt), debugstr_vf(vt));
debugstr_vt(vt), debugstr_vf(vt));
if (vt == VT_BSTR || vtFrom == VT_BSTR) if (vt == VT_BSTR || vtFrom == VT_BSTR)
{ {
...@@ -616,7 +617,7 @@ HRESULT VARIANT_ClearInd(VARIANTARG *pVarg) ...@@ -616,7 +617,7 @@ HRESULT VARIANT_ClearInd(VARIANTARG *pVarg)
{ {
HRESULT hres; HRESULT hres;
TRACE("(%p->(%s%s))\n", pVarg, debugstr_VT(pVarg), debugstr_VF(pVarg)); TRACE("(%s)\n", debugstr_variant(pVarg));
hres = VARIANT_ValidateType(V_VT(pVarg)); hres = VARIANT_ValidateType(V_VT(pVarg));
if (FAILED(hres)) if (FAILED(hres))
...@@ -688,7 +689,7 @@ HRESULT WINAPI VariantClear(VARIANTARG* pVarg) ...@@ -688,7 +689,7 @@ HRESULT WINAPI VariantClear(VARIANTARG* pVarg)
{ {
HRESULT hres; HRESULT hres;
TRACE("(%p->(%s%s))\n", pVarg, debugstr_VT(pVarg), debugstr_VF(pVarg)); TRACE("(%s)\n", debugstr_variant(pVarg));
hres = VARIANT_ValidateType(V_VT(pVarg)); hres = VARIANT_ValidateType(V_VT(pVarg));
...@@ -788,9 +789,7 @@ HRESULT WINAPI VariantCopy(VARIANTARG* pvargDest, VARIANTARG* pvargSrc) ...@@ -788,9 +789,7 @@ HRESULT WINAPI VariantCopy(VARIANTARG* pvargDest, VARIANTARG* pvargSrc)
{ {
HRESULT hres = S_OK; HRESULT hres = S_OK;
TRACE("(%p->(%s%s),%p->(%s%s))\n", pvargDest, debugstr_VT(pvargDest), TRACE("(%s,%s)\n", debugstr_variant(pvargDest), debugstr_variant(pvargSrc));
debugstr_VF(pvargDest), pvargSrc, debugstr_VT(pvargSrc),
debugstr_VF(pvargSrc));
if (V_TYPE(pvargSrc) == VT_CLSID || /* VT_CLSID is a special case */ if (V_TYPE(pvargSrc) == VT_CLSID || /* VT_CLSID is a special case */
FAILED(VARIANT_ValidateType(V_VT(pvargSrc)))) FAILED(VARIANT_ValidateType(V_VT(pvargSrc))))
...@@ -853,7 +852,7 @@ static inline size_t VARIANT_DataSize(const VARIANT* pv) ...@@ -853,7 +852,7 @@ static inline size_t VARIANT_DataSize(const VARIANT* pv)
case VT_CY: return sizeof(CY); case VT_CY: return sizeof(CY);
case VT_ERROR: return sizeof(SCODE); case VT_ERROR: return sizeof(SCODE);
} }
TRACE("Shouldn't be called for vt %s%s!\n", debugstr_VT(pv), debugstr_VF(pv)); TRACE("Shouldn't be called for variant %s!\n", debugstr_variant(pv));
return 0; return 0;
} }
...@@ -891,9 +890,7 @@ HRESULT WINAPI VariantCopyInd(VARIANT* pvargDest, VARIANTARG* pvargSrc) ...@@ -891,9 +890,7 @@ HRESULT WINAPI VariantCopyInd(VARIANT* pvargDest, VARIANTARG* pvargSrc)
VARTYPE vt; VARTYPE vt;
HRESULT hres = S_OK; HRESULT hres = S_OK;
TRACE("(%p->(%s%s),%p->(%s%s))\n", pvargDest, debugstr_VT(pvargDest), TRACE("(%s,%s)\n", debugstr_variant(pvargDest), debugstr_variant(pvargSrc));
debugstr_VF(pvargDest), pvargSrc, debugstr_VT(pvargSrc),
debugstr_VF(pvargSrc));
if (!V_ISBYREF(pvargSrc)) if (!V_ISBYREF(pvargSrc))
return VariantCopy(pvargDest, pvargSrc); return VariantCopy(pvargDest, pvargSrc);
...@@ -979,8 +976,7 @@ VariantCopyInd_Return: ...@@ -979,8 +976,7 @@ VariantCopyInd_Return:
if (pSrc != pvargSrc) if (pSrc != pvargSrc)
VariantClear(pSrc); VariantClear(pSrc);
TRACE("returning 0x%08x, %p->(%s%s)\n", hres, pvargDest, TRACE("returning 0x%08x, %s\n", hres, debugstr_variant(pvargDest));
debugstr_VT(pvargDest), debugstr_VF(pvargDest));
return hres; return hres;
} }
...@@ -1034,10 +1030,8 @@ HRESULT WINAPI VariantChangeTypeEx(VARIANTARG* pvargDest, VARIANTARG* pvargSrc, ...@@ -1034,10 +1030,8 @@ HRESULT WINAPI VariantChangeTypeEx(VARIANTARG* pvargDest, VARIANTARG* pvargSrc,
{ {
HRESULT res = S_OK; HRESULT res = S_OK;
TRACE("(%p->(%s%s),%p->(%s%s),0x%08x,0x%04x,%s%s)\n", pvargDest, TRACE("(%s,%s,0x%08x,0x%04x,%s%s)\n", debugstr_variant(pvargDest),
debugstr_VT(pvargDest), debugstr_VF(pvargDest), pvargSrc, debugstr_variant(pvargSrc), lcid, wFlags, debugstr_vt(vt), debugstr_vf(vt));
debugstr_VT(pvargSrc), debugstr_VF(pvargSrc), lcid, wFlags,
debugstr_vt(vt), debugstr_vf(vt));
if (vt == VT_CLSID) if (vt == VT_CLSID)
res = DISP_E_BADVARTYPE; res = DISP_E_BADVARTYPE;
...@@ -1085,8 +1079,7 @@ HRESULT WINAPI VariantChangeTypeEx(VARIANTARG* pvargDest, VARIANTARG* pvargSrc, ...@@ -1085,8 +1079,7 @@ HRESULT WINAPI VariantChangeTypeEx(VARIANTARG* pvargDest, VARIANTARG* pvargSrc,
} }
} }
TRACE("returning 0x%08x, %p->(%s%s)\n", res, pvargDest, TRACE("returning 0x%08x, %s\n", res, debugstr_variant(pvargDest));
debugstr_VT(pvargDest), debugstr_VF(pvargDest));
return res; return res;
} }
...@@ -2566,8 +2559,7 @@ HRESULT WINAPI VarCat(LPVARIANT left, LPVARIANT right, LPVARIANT out) ...@@ -2566,8 +2559,7 @@ HRESULT WINAPI VarCat(LPVARIANT left, LPVARIANT right, LPVARIANT out)
leftvt = V_VT(left); leftvt = V_VT(left);
rightvt = V_VT(right); rightvt = V_VT(right);
TRACE("(%p->(%s%s),%p->(%s%s),%p)\n", left, debugstr_VT(left), TRACE("%s,%s,%p)\n", debugstr_variant(left), debugstr_variant(right), out);
debugstr_VF(left), right, debugstr_VT(right), debugstr_VF(right), out);
if (!str_true[0]) { if (!str_true[0]) {
VARIANT_GetLocalisedText(LOCALE_USER_DEFAULT, IDS_FALSE, str_false); VARIANT_GetLocalisedText(LOCALE_USER_DEFAULT, IDS_FALSE, str_false);
...@@ -2810,8 +2802,7 @@ HRESULT WINAPI VarCmp(LPVARIANT left, LPVARIANT right, LCID lcid, DWORD flags) ...@@ -2810,8 +2802,7 @@ HRESULT WINAPI VarCmp(LPVARIANT left, LPVARIANT right, LCID lcid, DWORD flags)
DWORD xmask; DWORD xmask;
HRESULT rc; HRESULT rc;
TRACE("(%p->(%s%s),%p->(%s%s),0x%08x,0x%08x)\n", left, debugstr_VT(left), TRACE("(%s,%s,0x%08x,0x%08x)\n", debugstr_variant(left), debugstr_variant(right), lcid, flags);
debugstr_VF(left), right, debugstr_VT(right), debugstr_VF(right), lcid, flags);
lvt = V_VT(left) & VT_TYPEMASK; lvt = V_VT(left) & VT_TYPEMASK;
rvt = V_VT(right) & VT_TYPEMASK; rvt = V_VT(right) & VT_TYPEMASK;
...@@ -3015,8 +3006,7 @@ HRESULT WINAPI VarAnd(LPVARIANT left, LPVARIANT right, LPVARIANT result) ...@@ -3015,8 +3006,7 @@ HRESULT WINAPI VarAnd(LPVARIANT left, LPVARIANT right, LPVARIANT result)
VariantInit(&tempLeft); VariantInit(&tempLeft);
VariantInit(&tempRight); VariantInit(&tempRight);
TRACE("(%p->(%s%s),%p->(%s%s),%p)\n", left, debugstr_VT(left), TRACE("(%s,%s,%p)\n", debugstr_variant(left), debugstr_variant(right), result);
debugstr_VF(left), right, debugstr_VT(right), debugstr_VF(right), result);
/* Handle VT_DISPATCH by storing and taking address of returned value */ /* Handle VT_DISPATCH by storing and taking address of returned value */
if ((V_VT(left) & VT_TYPEMASK) == VT_DISPATCH) if ((V_VT(left) & VT_TYPEMASK) == VT_DISPATCH)
...@@ -3270,9 +3260,7 @@ HRESULT WINAPI VarAdd(LPVARIANT left, LPVARIANT right, LPVARIANT result) ...@@ -3270,9 +3260,7 @@ HRESULT WINAPI VarAdd(LPVARIANT left, LPVARIANT right, LPVARIANT result)
vt_ERROR, vt_ERROR, vt_UI1, vt_ERROR, vt_ERROR, vt_I8 vt_ERROR, vt_ERROR, vt_UI1, vt_ERROR, vt_ERROR, vt_I8
}; };
TRACE("(%p->(%s%s),%p->(%s%s),%p)\n", left, debugstr_VT(left), TRACE("(%s,%s,%p)\n", debugstr_variant(left), debugstr_variant(right), result);
debugstr_VF(left), right, debugstr_VT(right), debugstr_VF(right),
result);
VariantInit(&lv); VariantInit(&lv);
VariantInit(&rv); VariantInit(&rv);
...@@ -3426,7 +3414,7 @@ end: ...@@ -3426,7 +3414,7 @@ end:
VariantClear(&tv); VariantClear(&tv);
VariantClear(&tempLeft); VariantClear(&tempLeft);
VariantClear(&tempRight); VariantClear(&tempRight);
TRACE("returning 0x%8x (variant type %s)\n", hres, debugstr_VT(result)); TRACE("returning 0x%8x %s\n", hres, debugstr_variant(result));
return hres; return hres;
} }
...@@ -3483,9 +3471,7 @@ HRESULT WINAPI VarMul(LPVARIANT left, LPVARIANT right, LPVARIANT result) ...@@ -3483,9 +3471,7 @@ HRESULT WINAPI VarMul(LPVARIANT left, LPVARIANT right, LPVARIANT result)
vt_ERROR, vt_ERROR, vt_UI1, vt_ERROR, vt_ERROR, vt_I8 vt_ERROR, vt_ERROR, vt_UI1, vt_ERROR, vt_ERROR, vt_I8
}; };
TRACE("(%p->(%s%s),%p->(%s%s),%p)\n", left, debugstr_VT(left), TRACE("(%s,%s,%p)\n", debugstr_variant(left), debugstr_variant(right), result);
debugstr_VF(left), right, debugstr_VT(right), debugstr_VF(right),
result);
VariantInit(&lv); VariantInit(&lv);
VariantInit(&rv); VariantInit(&rv);
...@@ -3617,7 +3603,7 @@ end: ...@@ -3617,7 +3603,7 @@ end:
VariantClear(&tv); VariantClear(&tv);
VariantClear(&tempLeft); VariantClear(&tempLeft);
VariantClear(&tempRight); VariantClear(&tempRight);
TRACE("returning 0x%8x (variant type %s)\n", hres, debugstr_VT(result)); TRACE("returning 0x%8x %s\n", hres, debugstr_variant(result));
return hres; return hres;
} }
...@@ -3649,8 +3635,7 @@ HRESULT WINAPI VarDiv(LPVARIANT left, LPVARIANT right, LPVARIANT result) ...@@ -3649,8 +3635,7 @@ HRESULT WINAPI VarDiv(LPVARIANT left, LPVARIANT right, LPVARIANT result)
VariantInit(&lv); VariantInit(&lv);
VariantInit(&rv); VariantInit(&rv);
TRACE("(%p->(%s%s),%p->(%s%s),%p)\n", left, debugstr_VT(left), TRACE("(%s,%s,%p)\n", debugstr_variant(left), debugstr_variant(right), result);
debugstr_VF(left), right, debugstr_VT(right), debugstr_VF(right), result);
/* Handle VT_DISPATCH by storing and taking address of returned value */ /* Handle VT_DISPATCH by storing and taking address of returned value */
if ((V_VT(left) & VT_TYPEMASK) == VT_DISPATCH) if ((V_VT(left) & VT_TYPEMASK) == VT_DISPATCH)
...@@ -3780,7 +3765,7 @@ end: ...@@ -3780,7 +3765,7 @@ end:
VariantClear(&rv); VariantClear(&rv);
VariantClear(&tempLeft); VariantClear(&tempLeft);
VariantClear(&tempRight); VariantClear(&tempRight);
TRACE("returning 0x%8x (variant type %s)\n", hres, debugstr_VT(result)); TRACE("returning 0x%8x %s\n", hres, debugstr_variant(result));
return hres; return hres;
} }
...@@ -3812,8 +3797,7 @@ HRESULT WINAPI VarSub(LPVARIANT left, LPVARIANT right, LPVARIANT result) ...@@ -3812,8 +3797,7 @@ HRESULT WINAPI VarSub(LPVARIANT left, LPVARIANT right, LPVARIANT result)
VariantInit(&tempLeft); VariantInit(&tempLeft);
VariantInit(&tempRight); VariantInit(&tempRight);
TRACE("(%p->(%s%s),%p->(%s%s),%p)\n", left, debugstr_VT(left), TRACE("(%s,%s,%p)\n", debugstr_variant(left), debugstr_variant(right), result);
debugstr_VF(left), right, debugstr_VT(right), debugstr_VF(right), result);
if ((V_VT(left) & VT_TYPEMASK) == VT_DISPATCH && if ((V_VT(left) & VT_TYPEMASK) == VT_DISPATCH &&
(V_VT(left)&(~VT_TYPEMASK)) == 0 && (V_VT(left)&(~VT_TYPEMASK)) == 0 &&
...@@ -4047,7 +4031,7 @@ end: ...@@ -4047,7 +4031,7 @@ end:
VariantClear(&rv); VariantClear(&rv);
VariantClear(&tempLeft); VariantClear(&tempLeft);
VariantClear(&tempRight); VariantClear(&tempRight);
TRACE("returning 0x%8x (variant type %s)\n", hres, debugstr_VT(result)); TRACE("returning 0x%8x %s\n", hres, debugstr_variant(result));
return hres; return hres;
} }
...@@ -4083,9 +4067,7 @@ HRESULT WINAPI VarOr(LPVARIANT pVarLeft, LPVARIANT pVarRight, LPVARIANT pVarOut) ...@@ -4083,9 +4067,7 @@ HRESULT WINAPI VarOr(LPVARIANT pVarLeft, LPVARIANT pVarRight, LPVARIANT pVarOut)
VariantInit(&varRight); VariantInit(&varRight);
VariantInit(&varStr); VariantInit(&varStr);
TRACE("(%p->(%s%s),%p->(%s%s),%p)\n", pVarLeft, debugstr_VT(pVarLeft), TRACE("(%s,%s,%p)\n", debugstr_variant(pVarLeft), debugstr_variant(pVarRight), pVarOut);
debugstr_VF(pVarLeft), pVarRight, debugstr_VT(pVarRight),
debugstr_VF(pVarRight), pVarOut);
/* Handle VT_DISPATCH by storing and taking address of returned value */ /* Handle VT_DISPATCH by storing and taking address of returned value */
if ((V_VT(pVarLeft) & VT_TYPEMASK) == VT_DISPATCH) if ((V_VT(pVarLeft) & VT_TYPEMASK) == VT_DISPATCH)
...@@ -4392,8 +4374,7 @@ HRESULT WINAPI VarAbs(LPVARIANT pVarIn, LPVARIANT pVarOut) ...@@ -4392,8 +4374,7 @@ HRESULT WINAPI VarAbs(LPVARIANT pVarIn, LPVARIANT pVarOut)
VariantInit(&temp); VariantInit(&temp);
TRACE("(%p->(%s%s),%p)\n", pVarIn, debugstr_VT(pVarIn), TRACE("(%s,%p)\n", debugstr_variant(pVarIn), pVarOut);
debugstr_VF(pVarIn), pVarOut);
/* Handle VT_DISPATCH by storing and taking address of returned value */ /* Handle VT_DISPATCH by storing and taking address of returned value */
if ((V_VT(pVarIn) & VT_TYPEMASK) == VT_DISPATCH && ((V_VT(pVarIn) & ~VT_TYPEMASK) == 0)) if ((V_VT(pVarIn) & VT_TYPEMASK) == VT_DISPATCH && ((V_VT(pVarIn) & ~VT_TYPEMASK) == 0))
...@@ -4496,8 +4477,7 @@ HRESULT WINAPI VarFix(LPVARIANT pVarIn, LPVARIANT pVarOut) ...@@ -4496,8 +4477,7 @@ HRESULT WINAPI VarFix(LPVARIANT pVarIn, LPVARIANT pVarOut)
VariantInit(&temp); VariantInit(&temp);
TRACE("(%p->(%s%s),%p)\n", pVarIn, debugstr_VT(pVarIn), TRACE("(%s,%p)\n", debugstr_variant(pVarIn), pVarOut);
debugstr_VF(pVarIn), pVarOut);
/* Handle VT_DISPATCH by storing and taking address of returned value */ /* Handle VT_DISPATCH by storing and taking address of returned value */
if ((V_VT(pVarIn) & VT_TYPEMASK) == VT_DISPATCH && ((V_VT(pVarIn) & ~VT_TYPEMASK) == 0)) if ((V_VT(pVarIn) & VT_TYPEMASK) == VT_DISPATCH && ((V_VT(pVarIn) & ~VT_TYPEMASK) == 0))
...@@ -4603,8 +4583,7 @@ HRESULT WINAPI VarInt(LPVARIANT pVarIn, LPVARIANT pVarOut) ...@@ -4603,8 +4583,7 @@ HRESULT WINAPI VarInt(LPVARIANT pVarIn, LPVARIANT pVarOut)
VariantInit(&temp); VariantInit(&temp);
TRACE("(%p->(%s%s),%p)\n", pVarIn, debugstr_VT(pVarIn), TRACE("(%s,%p)\n", debugstr_variant(pVarIn), pVarOut);
debugstr_VF(pVarIn), pVarOut);
/* Handle VT_DISPATCH by storing and taking address of returned value */ /* Handle VT_DISPATCH by storing and taking address of returned value */
if ((V_VT(pVarIn) & VT_TYPEMASK) == VT_DISPATCH && ((V_VT(pVarIn) & ~VT_TYPEMASK) == 0)) if ((V_VT(pVarIn) & VT_TYPEMASK) == VT_DISPATCH && ((V_VT(pVarIn) & ~VT_TYPEMASK) == 0))
...@@ -4678,9 +4657,7 @@ HRESULT WINAPI VarXor(LPVARIANT pVarLeft, LPVARIANT pVarRight, LPVARIANT pVarOut ...@@ -4678,9 +4657,7 @@ HRESULT WINAPI VarXor(LPVARIANT pVarLeft, LPVARIANT pVarRight, LPVARIANT pVarOut
double d; double d;
HRESULT hRet; HRESULT hRet;
TRACE("(%p->(%s%s),%p->(%s%s),%p)\n", pVarLeft, debugstr_VT(pVarLeft), TRACE("(%s,%s,%p)\n", debugstr_variant(pVarLeft), debugstr_variant(pVarRight), pVarOut);
debugstr_VF(pVarLeft), pVarRight, debugstr_VT(pVarRight),
debugstr_VF(pVarRight), pVarOut);
if (V_EXTRA_TYPE(pVarLeft) || V_EXTRA_TYPE(pVarRight) || if (V_EXTRA_TYPE(pVarLeft) || V_EXTRA_TYPE(pVarRight) ||
V_VT(pVarLeft) > VT_UINT || V_VT(pVarRight) > VT_UINT || V_VT(pVarLeft) > VT_UINT || V_VT(pVarRight) > VT_UINT ||
...@@ -4857,9 +4834,7 @@ HRESULT WINAPI VarEqv(LPVARIANT pVarLeft, LPVARIANT pVarRight, LPVARIANT pVarOut ...@@ -4857,9 +4834,7 @@ HRESULT WINAPI VarEqv(LPVARIANT pVarLeft, LPVARIANT pVarRight, LPVARIANT pVarOut
{ {
HRESULT hRet; HRESULT hRet;
TRACE("(%p->(%s%s),%p->(%s%s),%p)\n", pVarLeft, debugstr_VT(pVarLeft), TRACE("(%s,%s,%p)\n", debugstr_variant(pVarLeft), debugstr_variant(pVarRight), pVarOut);
debugstr_VF(pVarLeft), pVarRight, debugstr_VT(pVarRight),
debugstr_VF(pVarRight), pVarOut);
hRet = VarXor(pVarLeft, pVarRight, pVarOut); hRet = VarXor(pVarLeft, pVarRight, pVarOut);
if (SUCCEEDED(hRet)) if (SUCCEEDED(hRet))
...@@ -4916,8 +4891,7 @@ HRESULT WINAPI VarNeg(LPVARIANT pVarIn, LPVARIANT pVarOut) ...@@ -4916,8 +4891,7 @@ HRESULT WINAPI VarNeg(LPVARIANT pVarIn, LPVARIANT pVarOut)
VariantInit(&temp); VariantInit(&temp);
TRACE("(%p->(%s%s),%p)\n", pVarIn, debugstr_VT(pVarIn), TRACE("(%s,%p)\n", debugstr_variant(pVarIn), pVarOut);
debugstr_VF(pVarIn), pVarOut);
/* Handle VT_DISPATCH by storing and taking address of returned value */ /* Handle VT_DISPATCH by storing and taking address of returned value */
if ((V_VT(pVarIn) & VT_TYPEMASK) == VT_DISPATCH && ((V_VT(pVarIn) & ~VT_TYPEMASK) == 0)) if ((V_VT(pVarIn) & VT_TYPEMASK) == VT_DISPATCH && ((V_VT(pVarIn) & ~VT_TYPEMASK) == 0))
...@@ -5046,8 +5020,7 @@ HRESULT WINAPI VarNot(LPVARIANT pVarIn, LPVARIANT pVarOut) ...@@ -5046,8 +5020,7 @@ HRESULT WINAPI VarNot(LPVARIANT pVarIn, LPVARIANT pVarOut)
VariantInit(&temp); VariantInit(&temp);
TRACE("(%p->(%s%s),%p)\n", pVarIn, debugstr_VT(pVarIn), TRACE("(%s,%p)\n", debugstr_variant(pVarIn), pVarOut);
debugstr_VF(pVarIn), pVarOut);
/* Handle VT_DISPATCH by storing and taking address of returned value */ /* Handle VT_DISPATCH by storing and taking address of returned value */
if ((V_VT(pVarIn) & VT_TYPEMASK) == VT_DISPATCH && ((V_VT(pVarIn) & ~VT_TYPEMASK) == 0)) if ((V_VT(pVarIn) & VT_TYPEMASK) == VT_DISPATCH && ((V_VT(pVarIn) & ~VT_TYPEMASK) == 0))
...@@ -5171,7 +5144,7 @@ HRESULT WINAPI VarRound(LPVARIANT pVarIn, int deci, LPVARIANT pVarOut) ...@@ -5171,7 +5144,7 @@ HRESULT WINAPI VarRound(LPVARIANT pVarIn, int deci, LPVARIANT pVarOut)
VariantInit(&temp); VariantInit(&temp);
TRACE("(%p->(%s%s),%d)\n", pVarIn, debugstr_VT(pVarIn), debugstr_VF(pVarIn), deci); TRACE("(%s,%d)\n", debugstr_variant(pVarIn), deci);
/* Handle VT_DISPATCH by storing and taking address of returned value */ /* Handle VT_DISPATCH by storing and taking address of returned value */
if ((V_VT(pVarIn) & VT_TYPEMASK) == VT_DISPATCH && ((V_VT(pVarIn) & ~VT_TYPEMASK) == 0)) if ((V_VT(pVarIn) & VT_TYPEMASK) == VT_DISPATCH && ((V_VT(pVarIn) & ~VT_TYPEMASK) == 0))
...@@ -5276,10 +5249,7 @@ VarRound_Exit: ...@@ -5276,10 +5249,7 @@ VarRound_Exit:
V_VT(pVarOut) = VT_EMPTY; V_VT(pVarOut) = VT_EMPTY;
VariantClear(&temp); VariantClear(&temp);
TRACE("returning 0x%08x (%s%s),%f\n", hRet, debugstr_VT(pVarOut), TRACE("returning 0x%08x %s\n", hRet, debugstr_variant(pVarOut));
debugstr_VF(pVarOut), (V_VT(pVarOut) == VT_R4) ? V_R4(pVarOut) :
(V_VT(pVarOut) == VT_R8) ? V_R8(pVarOut) : 0);
return hRet; return hRet;
} }
...@@ -5309,8 +5279,7 @@ HRESULT WINAPI VarIdiv(LPVARIANT left, LPVARIANT right, LPVARIANT result) ...@@ -5309,8 +5279,7 @@ HRESULT WINAPI VarIdiv(LPVARIANT left, LPVARIANT right, LPVARIANT result)
VARIANT lv,rv; VARIANT lv,rv;
VARIANT tempLeft, tempRight; VARIANT tempLeft, tempRight;
TRACE("(%p->(%s%s),%p->(%s%s),%p)\n", left, debugstr_VT(left), TRACE("(%s,%s,%p)\n", debugstr_variant(left), debugstr_variant(right), result);
debugstr_VF(left), right, debugstr_VT(right), debugstr_VF(right), result);
VariantInit(&lv); VariantInit(&lv);
VariantInit(&rv); VariantInit(&rv);
...@@ -5468,8 +5437,7 @@ HRESULT WINAPI VarMod(LPVARIANT left, LPVARIANT right, LPVARIANT result) ...@@ -5468,8 +5437,7 @@ HRESULT WINAPI VarMod(LPVARIANT left, LPVARIANT right, LPVARIANT result)
VariantInit(&lv); VariantInit(&lv);
VariantInit(&rv); VariantInit(&rv);
TRACE("(%p->(%s%s),%p->(%s%s),%p)\n", left, debugstr_VT(left), TRACE("(%s,%s,%p)\n", debugstr_variant(left), debugstr_variant(right), result);
debugstr_VF(left), right, debugstr_VT(right), debugstr_VF(right), result);
/* Handle VT_DISPATCH by storing and taking address of returned value */ /* Handle VT_DISPATCH by storing and taking address of returned value */
if ((V_VT(left) & VT_TYPEMASK) == VT_DISPATCH) if ((V_VT(left) & VT_TYPEMASK) == VT_DISPATCH)
...@@ -5707,8 +5675,7 @@ HRESULT WINAPI VarPow(LPVARIANT left, LPVARIANT right, LPVARIANT result) ...@@ -5707,8 +5675,7 @@ HRESULT WINAPI VarPow(LPVARIANT left, LPVARIANT right, LPVARIANT result)
VARTYPE rightExtraFlags,leftExtraFlags,ExtraFlags; VARTYPE rightExtraFlags,leftExtraFlags,ExtraFlags;
VARIANT tempLeft, tempRight; VARIANT tempLeft, tempRight;
TRACE("(%p->(%s%s),%p->(%s%s),%p)\n", left, debugstr_VT(left), debugstr_VF(left), TRACE("(%s,%s,%p)\n", debugstr_variant(left), debugstr_variant(right), result);
right, debugstr_VT(right), debugstr_VF(right), result);
VariantInit(&dl); VariantInit(&dl);
VariantInit(&dr); VariantInit(&dr);
...@@ -5828,8 +5795,7 @@ HRESULT WINAPI VarImp(LPVARIANT left, LPVARIANT right, LPVARIANT result) ...@@ -5828,8 +5795,7 @@ HRESULT WINAPI VarImp(LPVARIANT left, LPVARIANT right, LPVARIANT result)
VariantInit(&tempLeft); VariantInit(&tempLeft);
VariantInit(&tempRight); VariantInit(&tempRight);
TRACE("(%p->(%s%s),%p->(%s%s),%p)\n", left, debugstr_VT(left), TRACE("(%s,%s,%p)\n", debugstr_variant(left), debugstr_variant(right), result);
debugstr_VF(left), right, debugstr_VT(right), debugstr_VF(right), result);
/* Handle VT_DISPATCH by storing and taking address of returned value */ /* Handle VT_DISPATCH by storing and taking address of returned value */
if ((V_VT(left) & VT_TYPEMASK) == VT_DISPATCH) if ((V_VT(left) & VT_TYPEMASK) == VT_DISPATCH)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment