msi: All stream names starting with 0x0005 are unencoded.
authorHans Leidekker <hans@codeweavers.com>
Mon, 22 Feb 2010 11:25:21 +0000 (12:25 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 22 Feb 2010 12:15:09 +0000 (13:15 +0100)
Fixes a regression caused by 1ff992314887d03abeb4098789701ff3bfd5d2d8.

dlls/msi/streams.c

index 8ec2ad9accb36489237ecfa87bbf2fbe2786127c..66bda767a00deec10668f1c3ce4825c747a398e3 100644 (file)
@@ -527,9 +527,9 @@ static INT add_streams_to_table(MSISTREAMSVIEW *sv)
             break;
         }
 
-        if (!strcmpW(stat.pwcsName, szSumInfo))
+        /* these streams appear to be unencoded */
+        if (*stat.pwcsName == 0x0005)
         {
-            /* summary information stream is not encoded */
             r = db_get_raw_stream(sv->db, stat.pwcsName, &stream->stream);
         }
         else