msi: Improve traces in db_get_raw_stream.

This commit is contained in:
Hans Leidekker 2010-07-21 09:47:39 +02:00 committed by Alexandre Julliard
parent fba248642b
commit d10208e863
3 changed files with 4 additions and 3 deletions

View File

@ -126,8 +126,10 @@ static UINT clone_open_stream( MSIDATABASE *db, LPCWSTR name, IStream **stm )
UINT db_get_raw_stream( MSIDATABASE *db, LPCWSTR stname, IStream **stm ) UINT db_get_raw_stream( MSIDATABASE *db, LPCWSTR stname, IStream **stm )
{ {
HRESULT r; HRESULT r;
WCHAR decoded[MAX_STREAM_NAME_LEN];
TRACE("%s\n", debugstr_w(stname)); decode_streamname( stname, decoded );
TRACE("%s -> %s\n", debugstr_w(stname), debugstr_w(decoded));
if (clone_open_stream( db, stname, stm ) == ERROR_SUCCESS) if (clone_open_stream( db, stname, stm ) == ERROR_SUCCESS)
return ERROR_SUCCESS; return ERROR_SUCCESS;
@ -140,7 +142,6 @@ UINT db_get_raw_stream( MSIDATABASE *db, LPCWSTR stname, IStream **stm )
LIST_FOR_EACH_ENTRY( transform, &db->transforms, MSITRANSFORM, entry ) LIST_FOR_EACH_ENTRY( transform, &db->transforms, MSITRANSFORM, entry )
{ {
TRACE("looking for %s in transform storage\n", debugstr_w(stname) );
r = IStorage_OpenStream( transform->stg, stname, NULL, r = IStorage_OpenStream( transform->stg, stname, NULL,
STGM_READ | STGM_SHARE_EXCLUSIVE, 0, stm ); STGM_READ | STGM_SHARE_EXCLUSIVE, 0, stm );
if (SUCCEEDED(r)) if (SUCCEEDED(r))

View File

@ -44,6 +44,7 @@
#define MSITYPE_KEY 0x2000 #define MSITYPE_KEY 0x2000
#define MSITYPE_TEMPORARY 0x4000 #define MSITYPE_TEMPORARY 0x4000
#define MAX_STREAM_NAME_LEN 62
/* Install UI level mask for AND operation to exclude flags */ /* Install UI level mask for AND operation to exclude flags */
#define INSTALLUILEVEL_MASK 0x0007 #define INSTALLUILEVEL_MASK 0x0007

View File

@ -37,7 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(msidb); WINE_DEFAULT_DEBUG_CHANNEL(msidb);
#define NUM_STREAMS_COLS 2 #define NUM_STREAMS_COLS 2
#define MAX_STREAM_NAME_LEN 62
typedef struct tabSTREAM typedef struct tabSTREAM
{ {