Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8d39c809
Commit
8d39c809
authored
May 03, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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.
parent
168e2fb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
stg_stream.c
dlls/ole32/stg_stream.c
+9
-0
No files found.
dlls/ole32/stg_stream.c
View file @
8d39c809
...
...
@@ -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_Write(
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_Write(
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_Write(
if
(
cb
==
0
)
{
TRACE
(
"<-- S_OK, written 0
\n
"
);
return
S_OK
;
}
else
...
...
@@ -441,6 +449,7 @@ static HRESULT WINAPI StgStreamImpl_Write(
*/
This
->
currentPosition
.
u
.
LowPart
+=
*
pcbWritten
;
TRACE
(
"<-- S_OK, written %lu
\n
"
,
*
pcbWritten
);
return
S_OK
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment