From 9daabbc8d1cda7904718f1b31f00b48f47596338 Mon Sep 17 00:00:00 2001 From: Stefan Leichter Date: Thu, 15 May 2003 22:58:48 +0000 Subject: [PATCH] Added stub for VarBstrFromDec. --- dlls/oleaut32/oleaut32.spec | 2 +- dlls/oleaut32/variant.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/dlls/oleaut32/oleaut32.spec b/dlls/oleaut32/oleaut32.spec index 3ff1c477dfc..cdb33a1fd78 100644 --- a/dlls/oleaut32/oleaut32.spec +++ b/dlls/oleaut32/oleaut32.spec @@ -227,7 +227,7 @@ 229 stdcall VarBstrFromI1(long long long ptr) 230 stdcall VarBstrFromUI2(long long long ptr) 231 stdcall VarBstrFromUI4(long long long ptr) -232 stub VarBstrFromDec +232 stdcall VarBstrFromDec(ptr long long ptr) 233 stdcall VarBoolFromI1(long ptr) 234 stdcall VarBoolFromUI2(long ptr) 235 stdcall VarBoolFromUI4(long ptr) diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c index d99fde488d1..096b1f08515 100644 --- a/dlls/oleaut32/variant.c +++ b/dlls/oleaut32/variant.c @@ -3633,6 +3633,18 @@ HRESULT WINAPI VarBstrFromUI4(ULONG ulIn, LCID lcid, ULONG dwFlags, BSTR* pbstrO return S_OK; } +/****************************************************************************** + * VarBstrFromDec [OLEAUT32.@] + */ +HRESULT WINAPI VarBstrFromDec(DECIMAL* pDecIn, LCID lcid, ULONG dwFlags, BSTR* pbstrOut) +{ FIXME("%c%08lx%08lx%08lx E%02x stub\n", + (pDecIn->u.s.sign == DECIMAL_NEG) ? '-' : + (pDecIn->u.s.sign == 0) ? '+' : '?', + pDecIn->Hi32, pDecIn->u1.s1.Mid32, pDecIn->u1.s1.Lo32, + pDecIn->u.s.scale); + return E_INVALIDARG; +} + /****************************************************************************** * VarBoolFromUI1 [OLEAUT32.118] */