Rémi Bernon : wbemprox: Use empty strings instead of NULL.

Alexandre Julliard julliard at winehq.org
Thu Aug 13 15:11:51 CDT 2020


Module: wine
Branch: master
Commit: 75fb68e42423362ae945c0c0554f0dcd4d2e169b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=75fb68e42423362ae945c0c0554f0dcd4d2e169b

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Wed Aug 12 15:35:16 2020 +0200

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 at codeweavers.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wbemprox/builtin.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 4edda854b5..4326822193 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -2920,8 +2920,8 @@ 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           = NULL;
-    rec->serial               = NULL;
+    rec->partnumber           = L"";
+    rec->serial               = L"";
     if (!match_row( table, row, cond, &status )) free_row_values( table, row );
     else row++;
 




More information about the wine-cvs mailing list