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:
Rémi Bernon 2020-08-12 15:35:16 +02:00 committed by Alexandre Julliard
parent c76dc32fef
commit 75fb68e424
1 changed files with 2 additions and 2 deletions

View File

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