Robert Shearman : ole32: Add more tracing for reading and writing storage streams.
Module: wine Branch: refs/heads/master Commit: 8d39c809501f61f011758e7f41f351d2259b7a49 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=8d39c809501f61f011758e7f... Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed May 3 14:48:15 2006 +0100 ole32: Add more tracing for reading and writing storage streams. Add more tracing for read and write operations and warn in the case of failure. --- dlls/ole32/stg_stream.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/dlls/ole32/stg_stream.c b/dlls/ole32/stg_stream.c index e208fb6..9bbb9a8 100644 --- a/dlls/ole32/stg_stream.c +++ b/dlls/ole32/stg_stream.c @@ -268,7 +268,10 @@ static HRESULT WINAPI StgStreamImpl_Read iface, pv, cb, pcbRead); if (!This->parentStorage) + { + WARN("storage reverted\n"); return STG_E_REVERTED; + } /* * If the caller is not interested in the number of bytes read, @@ -372,6 +375,7 @@ static HRESULT WINAPI StgStreamImpl_Writ case STGM_READWRITE: break; default: + WARN("access denied by flags: 0x%lx\n", STGM_ACCESS_MODE(This->grfMode)); return STG_E_ACCESSDENIED; } @@ -379,7 +383,10 @@ static HRESULT WINAPI StgStreamImpl_Writ return STG_E_INVALIDPOINTER; if (!This->parentStorage) + { + WARN("storage reverted\n"); return STG_E_REVERTED; + } /* * If the caller is not interested in the number of bytes written, @@ -395,6 +402,7 @@ static HRESULT WINAPI StgStreamImpl_Writ if (cb == 0) { + TRACE("<-- S_OK, written 0\n"); return S_OK; } else @@ -441,6 +449,7 @@ static HRESULT WINAPI StgStreamImpl_Writ */ This->currentPosition.u.LowPart += *pcbWritten; + TRACE("<-- S_OK, written %lu\n", *pcbWritten); return S_OK; }
participants (1)
-
Alexandre Julliard