From 6fb0cee5d9e4b8ba51c67e9bd067d8a2c4e38555 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Tue, 29 Jun 2004 03:57:39 +0000 Subject: [PATCH] Dump database table names on startup. --- dlls/msi/msi.c | 3 +++ dlls/msi/msipriv.h | 1 + dlls/msi/table.c | 3 --- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index c1644765bda..746e155a7fe 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -240,6 +240,9 @@ UINT WINAPI MsiOpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIHANDLE *phD goto end; } + if( TRACE_ON( msi ) ) + enum_stream_names( stg ); + db->storage = stg; db->mode = szMode; /* db->strings = NULL; diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h index 11326bf4e18..330496c5ca5 100644 --- a/dlls/msi/msipriv.h +++ b/dlls/msi/msipriv.h @@ -212,6 +212,7 @@ extern UINT WINAPI MSI_RecordSetIStream( MSIHANDLE handle, 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 --git a/dlls/msi/table.c b/dlls/msi/table.c index 0bdb6c104ca..e4ad33ed7a3 100644 --- a/dlls/msi/table.c +++ b/dlls/msi/table.c @@ -126,7 +126,6 @@ static BOOL encode_streamname(BOOL bTable, LPCWSTR in, LPWSTR out) return FALSE; } -#if 0 static int mime2utf(int x) { if( x<10 ) @@ -194,8 +193,6 @@ void enum_stream_names( IStorage *stg ) IEnumSTATSTG_Release( stgenum ); } -#endif - static UINT read_stream_data( IStorage *stg, LPCWSTR stname, USHORT **pdata, UINT *psz ) {