Commit 28faa92c authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

Fix VariantChangeType: calls to VarDecFromCy and VarDecFromDisp had

source and destination swapped.
parent 5eb46095
......@@ -493,8 +493,8 @@ static inline HRESULT VARIANT_Coerce(VARIANTARG* pd, LCID lcid, USHORT wFlags,
case VT_R4: return VarDecFromR4(V_R4(ps), &V_DECIMAL(pd));
case VT_R8: return VarDecFromR8(V_R8(ps), &V_DECIMAL(pd));
case VT_DATE: return VarDecFromDate(V_DATE(ps), &V_DECIMAL(pd));
case VT_CY: return VarDecFromCy(V_CY(pd), &V_DECIMAL(ps));
case VT_DISPATCH: return VarDecFromDisp(V_DISPATCH(ps), lcid, &V_DECIMAL(ps));
case VT_CY: return VarDecFromCy(V_CY(ps), &V_DECIMAL(pd));
case VT_DISPATCH: return VarDecFromDisp(V_DISPATCH(ps), lcid, &V_DECIMAL(pd));
case VT_BSTR: return VarDecFromStr(V_BSTR(ps), lcid, dwFlags, &V_DECIMAL(pd));
}
break;
......
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