msi: WriteRegistryData advoid NULL data

Aric Stewart aric at codeweavers.com
Mon Mar 21 09:24:06 CST 2005


Win9x RegSetValueExW does not deal with NULL data. so make the data an 
empty string instead of null
-------------- next part --------------
Index: dlls/msi/action.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/action.c,v
retrieving revision 1.102
diff -u -u -r1.102 action.c
--- dlls/msi/action.c	16 Mar 2005 11:31:35 -0000	1.102
+++ dlls/msi/action.c	21 Mar 2005 15:24:49 -0000
@@ -3523,7 +3523,8 @@
             value_data = parse_value(package, value, &type, &size); 
         else
         {
-            value_data = NULL;
+            static const WCHAR szEmpty[] = {0};
+            value_data = szEmpty;
             size = 0;
             type = REG_SZ;
         }


More information about the wine-patches mailing list