wbemprox: Use empty strings instead of NULL.
For Win32_PhysicalMemory PartNumber and Serial properties. Injustice 2 calls SysStringLen directly on the value without checking its type. Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c76dc32fef
commit
75fb68e424
|
@ -2920,8 +2920,8 @@ static enum fill_status fill_physicalmemory( struct table *table, const struct e
|
||||||
rec->devicelocator = L"DIMM 0";
|
rec->devicelocator = L"DIMM 0";
|
||||||
rec->formfactor = 8; /* DIMM */
|
rec->formfactor = 8; /* DIMM */
|
||||||
rec->memorytype = 9; /* RAM */
|
rec->memorytype = 9; /* RAM */
|
||||||
rec->partnumber = NULL;
|
rec->partnumber = L"";
|
||||||
rec->serial = NULL;
|
rec->serial = L"";
|
||||||
if (!match_row( table, row, cond, &status )) free_row_values( table, row );
|
if (!match_row( table, row, cond, &status )) free_row_values( table, row );
|
||||||
else row++;
|
else row++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue