[msi] Fix missing case in MsiSourceListAddSourceEx?

Dan Kegel dank at kegel.com
Sat Apr 22 13:31:12 CDT 2006


This happy snappy cargo-cult patch gets rid of
err:msi:MsiSourceListAddSourceExW unknown media type: 00000004
when installing art2kmin.exe.  No idea whether it's right, but
it seems plausible.   (The install of art2kmin.exe still fails because of
http://bugs.winehq.org/show_bug.cgi?id=4251.)

Index: dlls/msi/source.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/source.c,v
retrieving revision 1.8
diff -d -u -r1.8 source.c
--- dlls/msi/source.c	22 Feb 2006 21:31:47 -0000	1.8
+++ dlls/msi/source.c	22 Apr 2006 18:21:23 -0000
@@ -499,6 +499,8 @@
         rc = OpenNetworkSubkey(sourcekey, &typekey, TRUE);
     else if (dwOptions & MSISOURCETYPE_URL)
         rc = OpenURLSubkey(sourcekey, &typekey, TRUE);
+    else if (dwOptions & MSISOURCETYPE_MEDIA)
+        rc = OpenMediaSubkey(sourcekey, &typekey, TRUE);
     else
     {
         ERR("unknown media type: %08lx\n", dwOptions);


--
Wine for Windows ISVs: http://kegel.com/wine/isv



More information about the wine-patches mailing list