Commit 8ecefe9e authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

Handle VT_DECIMAL in VarCmp().

parent cbe3fb69
...@@ -2537,6 +2537,13 @@ HRESULT WINAPI VarCmp(LPVARIANT left, LPVARIANT right, LCID lcid, DWORD flags) ...@@ -2537,6 +2537,13 @@ HRESULT WINAPI VarCmp(LPVARIANT left, LPVARIANT right, LCID lcid, DWORD flags)
} }
xmask = (1<<(V_VT(left)&VT_TYPEMASK))|(1<<(V_VT(right)&VT_TYPEMASK)); xmask = (1<<(V_VT(left)&VT_TYPEMASK))|(1<<(V_VT(right)&VT_TYPEMASK));
if (xmask & VTBIT_DECIMAL) {
rc = VariantChangeType(&lv,left,0,VT_DECIMAL);
if (FAILED(rc)) return rc;
rc = VariantChangeType(&rv,right,0,VT_DECIMAL);
if (FAILED(rc)) return rc;
return VarDecCmp(&V_DECIMAL(&lv), &V_DECIMAL(&rv));
}
if (xmask & VTBIT_R8) { if (xmask & VTBIT_R8) {
rc = VariantChangeType(&lv,left,0,VT_R8); rc = VariantChangeType(&lv,left,0,VT_R8);
if (FAILED(rc)) return rc; if (FAILED(rc)) return rc;
......
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