Dmitry Timoshkov : propsys: Add support for VT_I1 and VT_UI1 to PropVariantChangeType.
Alexandre Julliard
julliard at winehq.org
Tue Jun 20 15:34:55 CDT 2017
Module: wine
Branch: master
Commit: 09a2547f2d68c7892c148f0c4116268a98a49ccc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=09a2547f2d68c7892c148f0c4116268a98a49ccc
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Tue Jun 20 12:36:35 2017 +0800
propsys: Add support for VT_I1 and VT_UI1 to PropVariantChangeType.
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/propsys/propvar.c | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/dlls/propsys/propvar.c b/dlls/propsys/propvar.c
index 3fee67a..007fd94 100644
--- a/dlls/propsys/propvar.c
+++ b/dlls/propsys/propvar.c
@@ -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;
More information about the wine-cvs
mailing list