propsys: Add support for VT_I1 and VT_UI1 to PropVariantChangeType.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0c3a2a67a2
commit
09a2547f2d
|
@ -264,6 +264,32 @@ HRESULT WINAPI PropVariantChangeType(PROPVARIANT *ppropvarDest, REFPROPVARIANT p
|
|||
|
||||
switch (vt)
|
||||
{
|
||||
case VT_I1:
|
||||
{
|
||||
LONGLONG res;
|
||||
|
||||
hr = PROPVAR_ConvertNumber(propvarSrc, 8, TRUE, &res);
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
ppropvarDest->vt = VT_I1;
|
||||
ppropvarDest->u.cVal = (char)res;
|
||||
}
|
||||
return hr;
|
||||
}
|
||||
|
||||
case VT_UI1:
|
||||
{
|
||||
LONGLONG res;
|
||||
|
||||
hr = PROPVAR_ConvertNumber(propvarSrc, 8, FALSE, &res);
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
ppropvarDest->vt = VT_UI1;
|
||||
ppropvarDest->u.bVal = (UCHAR)res;
|
||||
}
|
||||
return hr;
|
||||
}
|
||||
|
||||
case VT_I2:
|
||||
{
|
||||
SHORT res;
|
||||
|
|
Loading…
Reference in New Issue