Commit fd61c3f2 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

ole32: Add some missing traces.

parent d9bfbe91
...@@ -273,7 +273,7 @@ static HRESULT WINAPI StgStreamImpl_Read( ...@@ -273,7 +273,7 @@ static HRESULT WINAPI StgStreamImpl_Read(
WARN("storage reverted\n"); WARN("storage reverted\n");
return STG_E_REVERTED; return STG_E_REVERTED;
} }
/* /*
* If the caller is not interested in the number of bytes read, * If the caller is not interested in the number of bytes read,
* we use another buffer to avoid "if" statements in the code. * we use another buffer to avoid "if" statements in the code.
...@@ -805,6 +805,8 @@ static HRESULT WINAPI StgStreamImpl_Stat( ...@@ -805,6 +805,8 @@ static HRESULT WINAPI StgStreamImpl_Stat(
StgProperty curProperty; StgProperty curProperty;
BOOL readSucessful; BOOL readSucessful;
TRACE("%p %p %ld\n", This, pstatstg, grfStatFlag);
/* /*
* if stream has no parent, return STG_E_REVERTED * if stream has no parent, return STG_E_REVERTED
*/ */
...@@ -854,6 +856,8 @@ static HRESULT WINAPI StgStreamImpl_Clone( ...@@ -854,6 +856,8 @@ static HRESULT WINAPI StgStreamImpl_Clone(
StgStreamImpl* new_stream; StgStreamImpl* new_stream;
LARGE_INTEGER seek_pos; LARGE_INTEGER seek_pos;
TRACE("%p %p\n", This, ppstm);
/* /*
* Sanity check * Sanity check
*/ */
......
...@@ -1813,7 +1813,7 @@ static HRESULT WINAPI StorageImpl_Stat( IStorage* iface, ...@@ -1813,7 +1813,7 @@ static HRESULT WINAPI StorageImpl_Stat( IStorage* iface,
} }
/****************************************************************************** /******************************************************************************
* Internal stream list handlers * Internal stream list handlers
*/ */
void StorageBaseImpl_AddStream(StorageBaseImpl * stg, StgStreamImpl * strm) void StorageBaseImpl_AddStream(StorageBaseImpl * stg, StgStreamImpl * strm)
...@@ -1836,7 +1836,7 @@ void StorageBaseImpl_DeleteAll(StorageBaseImpl * stg) ...@@ -1836,7 +1836,7 @@ void StorageBaseImpl_DeleteAll(StorageBaseImpl * stg)
LIST_FOR_EACH_SAFE(cur, cur2, &stg->strmHead) { LIST_FOR_EACH_SAFE(cur, cur2, &stg->strmHead) {
strm = LIST_ENTRY(cur,StgStreamImpl,StrmListEntry); strm = LIST_ENTRY(cur,StgStreamImpl,StrmListEntry);
TRACE("Streams deleted (stg=%p strm=%p next=%p prev=%p)\n", stg,strm,cur->next,cur->prev); TRACE("Streams deleted (stg=%p strm=%p next=%p prev=%p)\n", stg,strm,cur->next,cur->prev);
strm->parentStorage = NULL; strm->parentStorage = NULL;
list_remove(cur); list_remove(cur);
} }
} }
...@@ -7620,6 +7620,8 @@ HRESULT WINAPI OleConvertOLESTREAMToIStorage ( ...@@ -7620,6 +7620,8 @@ HRESULT WINAPI OleConvertOLESTREAMToIStorage (
HRESULT hRes=S_OK; HRESULT hRes=S_OK;
OLECONVERT_OLESTREAM_DATA pOleStreamData[2]; OLECONVERT_OLESTREAM_DATA pOleStreamData[2];
TRACE("%p %p %p\n", pOleStream, pstg, ptd);
memset(pOleStreamData, 0, sizeof(pOleStreamData)); memset(pOleStreamData, 0, sizeof(pOleStreamData));
if(ptd != NULL) if(ptd != NULL)
...@@ -7710,6 +7712,7 @@ HRESULT WINAPI OleConvertIStorageToOLESTREAM ( ...@@ -7710,6 +7712,7 @@ HRESULT WINAPI OleConvertIStorageToOLESTREAM (
OLECONVERT_OLESTREAM_DATA pOleStreamData[2]; OLECONVERT_OLESTREAM_DATA pOleStreamData[2];
static const WCHAR wstrStreamName[] = {1, 'O', 'l', 'e', '1', '0', 'N', 'a', 't', 'i', 'v', 'e', 0}; static const WCHAR wstrStreamName[] = {1, 'O', 'l', 'e', '1', '0', 'N', 'a', 't', 'i', 'v', 'e', 0};
TRACE("%p %p\n", pstg, pOleStream);
memset(pOleStreamData, 0, sizeof(pOleStreamData)); memset(pOleStreamData, 0, sizeof(pOleStreamData));
...@@ -7783,7 +7786,7 @@ StgIsStorageFile(LPCOLESTR fn) ...@@ -7783,7 +7786,7 @@ StgIsStorageFile(LPCOLESTR fn)
BYTE magic[8]; BYTE magic[8];
DWORD bytes_read; DWORD bytes_read;
TRACE("(\'%s\')\n", debugstr_w(fn)); TRACE("%s\n", debugstr_w(fn));
hf = CreateFileW(fn, GENERIC_READ, hf = CreateFileW(fn, GENERIC_READ,
FILE_SHARE_DELETE | FILE_SHARE_READ | FILE_SHARE_WRITE, FILE_SHARE_DELETE | FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment