MSI: dump database table names on startup

Mike McCormack mike at codeweavers.com
Mon Jun 28 18:56:28 CDT 2004


ChangeLog:
* dump database table names on startup
-------------- next part --------------
diff -ur dlls/msi.old/msi.c dlls/msi/msi.c
--- dlls/msi.old/msi.c	2004-06-28 18:49:21.000000000 -0500
+++ dlls/msi/msi.c	2004-06-28 18:50:51.000000000 -0500
@@ -240,6 +240,9 @@
         goto end;
     }
 
+    if( TRACE_ON( msi ) )
+        enum_stream_names( stg );
+
     db->storage = stg;
     db->mode = szMode;
     /* db->strings = NULL;
diff -ur dlls/msi.old/msipriv.h dlls/msi/msipriv.h
--- dlls/msi.old/msipriv.h	2004-06-28 18:49:21.000000000 -0500
+++ dlls/msi/msipriv.h	2004-06-28 18:50:51.000000000 -0500
@@ -212,6 +212,7 @@
               unsigned int iField, IStream *stm );
 extern UINT get_raw_stream( MSIHANDLE hdb, LPCWSTR stname, IStream **stm );
 extern UINT db_get_raw_stream( MSIDATABASE *db, LPCWSTR stname, IStream **stm );
+extern void enum_stream_names( IStorage *stg );
 
 
 #endif /* __WINE_MSI_PRIVATE__ */
diff -ur dlls/msi.old/table.c dlls/msi/table.c
--- dlls/msi.old/table.c	2004-06-28 18:49:21.000000000 -0500
+++ dlls/msi/table.c	2004-06-28 18:50:51.000000000 -0500
@@ -126,7 +126,6 @@
     return FALSE;
 }
 
-#if 0
 static int mime2utf(int x)
 {
     if( x<10 )
@@ -194,8 +193,6 @@
     IEnumSTATSTG_Release( stgenum );
 }
 
-#endif
-
 static UINT read_stream_data( IStorage *stg, LPCWSTR stname,
                               USHORT **pdata, UINT *psz )
 {


More information about the wine-patches mailing list