From: Tim Clem tclem@codeweavers.com
And test for its existence. --- dlls/wbemprox/builtin.c | 2 +- dlls/wbemprox/tests/query.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c index 1291bd8b617..f3461cb4b2c 100644 --- a/dlls/wbemprox/builtin.c +++ b/dlls/wbemprox/builtin.c @@ -3263,7 +3263,7 @@ static enum fill_status fill_physicalmemory( struct table *table, const struct e rec->devicelocator = L"DIMM 0"; rec->formfactor = 8; /* DIMM */ rec->memorytype = 9; /* RAM */ - rec->partnumber = L""; + rec->partnumber = L"WINE1234-ABCD"; rec->serial = L""; if (!match_row( table, row, cond, &status )) free_row_values( table, row ); else row++; diff --git a/dlls/wbemprox/tests/query.c b/dlls/wbemprox/tests/query.c index bff9b0f4ee1..a1f3e6a7cb8 100644 --- a/dlls/wbemprox/tests/query.c +++ b/dlls/wbemprox/tests/query.c @@ -1689,6 +1689,7 @@ static void test_Win32_PhysicalMemory( IWbemServices *services ) check_property( obj, L"DeviceLocator", VT_BSTR, CIM_STRING ); check_property( obj, L"FormFactor", VT_I4, CIM_UINT16 ); check_property( obj, L"MemoryType", VT_I4, CIM_UINT16 ); + check_property( obj, L"PartNumber", VT_BSTR, CIM_STRING );
type = 0xdeadbeef; VariantInit( &val );