msi: appsearch garbage strings

Aric Stewart aric at codeweavers.com
Fri Jul 22 10:57:36 CDT 2005


Bail out if the reg key is empty. This prevents us from writing garbage 
to the property table.
-------------- next part --------------
Index: dlls/msi/appsearch.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/appsearch.c,v
retrieving revision 1.8
diff -u -r1.8 appsearch.c
--- dlls/msi/appsearch.c	10 May 2005 08:27:00 -0000	1.8
+++ dlls/msi/appsearch.c	22 Jul 2005 15:56:27 -0000
@@ -334,6 +334,13 @@
             goto end;
         }
 
+        /* bail out if the registry key is empty */
+        if (sz == 0)
+        {
+            rc = ERROR_SUCCESS;
+            goto end;
+        }
+        
         switch (regType)
         {
             case REG_SZ:


More information about the wine-patches mailing list