msi: Improve traces in db_get_raw_stream.
This commit is contained in:
parent
fba248642b
commit
d10208e863
|
@ -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))
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue