wbemprox: Add support for CIM_REAL32 values.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2019-09-17 13:41:41 +02:00 committed by Alexandre Julliard
parent ccbfad5ea7
commit 4e133e7aaf
1 changed files with 5 additions and 0 deletions

View File

@ -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;