Hans Leidekker : wbemprox: Add support for CIM_REAL32 values.
Alexandre Julliard
julliard at winehq.org
Tue Sep 17 16:22:49 CDT 2019
Module: wine
Branch: master
Commit: 4e133e7aaf3edc9ce3c6d096e683c309993d60f3
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4e133e7aaf3edc9ce3c6d096e683c309993d60f3
Author: Hans Leidekker <hans at codeweavers.com>
Date: Tue Sep 17 13:41:41 2019 +0200
wbemprox: Add support for CIM_REAL32 values.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wbemprox/table.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/wbemprox/table.c b/dlls/wbemprox/table.c
index 79c7eb13a4..7d531f5ec5 100644
--- a/dlls/wbemprox/table.c
+++ b/dlls/wbemprox/table.c
@@ -67,6 +67,8 @@ UINT get_type_size( CIMTYPE type )
case CIM_REFERENCE:
case CIM_STRING:
return sizeof(WCHAR *);
+ case CIM_REAL32:
+ return sizeof(FLOAT);
default:
ERR("unhandled type %u\n", type);
break;
@@ -139,6 +141,9 @@ HRESULT get_value( const struct table *table, UINT row, UINT column, LONGLONG *v
case CIM_UINT64:
*val = *(const UINT64 *)ptr;
break;
+ case CIM_REAL32:
+ memcpy( val, ptr, sizeof(FLOAT) );
+ break;
default:
ERR("invalid column type %u\n", table->columns[column].type & COL_TYPE_MASK);
*val = 0;
More information about the wine-cvs
mailing list