msi: do not add \\1 to typelibs index 1

Aric Stewart aric at codeweavers.com
Thu Jun 2 08:16:05 CDT 2005


For typelibs index 1 do not add \\1 to the path. This cleans up registry 
diffs with native MSI
-------------- next part --------------
Index: dlls//msi/action.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/action.c,v
retrieving revision 1.127
diff -u -r1.127 action.c
--- dlls//msi/action.c	2 Jun 2005 10:29:57 -0000	1.127
+++ dlls//msi/action.c	2 Jun 2005 12:57:10 -0000
@@ -4259,8 +4261,13 @@
     sz = strlenW(tl_struct->source)+4;
     sz *= sizeof(WCHAR);
 
-    tl_struct->path = HeapAlloc(GetProcessHeap(),0,sz);
-    sprintfW(tl_struct->path,fmt,tl_struct->source, lpszName);
+    if ((INT)lpszName == 1)
+        tl_struct->path = strdupW(tl_struct->source);
+    else
+    {
+        tl_struct->path = HeapAlloc(GetProcessHeap(),0,sz);
+        sprintfW(tl_struct->path,fmt,tl_struct->source, lpszName);
+    }
 
     TRACE("trying %s\n", debugstr_w(tl_struct->path));
     res = LoadTypeLib(tl_struct->path,&tl_struct->ptLib);


More information about the wine-patches mailing list