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
3c1e67d0
Commit
3c1e67d0
authored
Apr 30, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
May 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Return STG_E_REVERTED when a stream's parent storage has been closed.
parent
faabaae5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
stg_stream.c
dlls/ole32/stg_stream.c
+16
-17
No files found.
dlls/ole32/stg_stream.c
View file @
3c1e67d0
...
...
@@ -267,6 +267,9 @@ static HRESULT WINAPI StgStreamImpl_Read(
TRACE
(
"(%p, %p, %ld, %p)
\n
"
,
iface
,
pv
,
cb
,
pcbRead
);
if
(
!
This
->
parentStorage
)
return
STG_E_REVERTED
;
/*
* If the caller is not interested in the number of bytes read,
* we use another buffer to avoid "if" statements in the code.
...
...
@@ -375,6 +378,9 @@ static HRESULT WINAPI StgStreamImpl_Write(
if
(
!
pv
)
return
STG_E_INVALIDPOINTER
;
if
(
!
This
->
parentStorage
)
return
STG_E_REVERTED
;
/*
* If the caller is not interested in the number of bytes written,
* we use another buffer to avoid "if" statements in the code.
...
...
@@ -463,9 +469,8 @@ static HRESULT WINAPI StgStreamImpl_Seek(
* fail if the stream has no parent (as does windows)
*/
if
(
!
(
This
->
parentStorage
))
{
if
(
!
This
->
parentStorage
)
return
STG_E_REVERTED
;
}
/*
* The caller is allowed to pass in NULL as the new position return value.
...
...
@@ -527,9 +532,8 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
TRACE
(
"(%p, %ld)
\n
"
,
iface
,
libNewSize
.
u
.
LowPart
);
if
(
!
This
->
parentStorage
)
{
if
(
!
This
->
parentStorage
)
return
STG_E_REVERTED
;
}
/*
* As documented.
...
...
@@ -648,9 +652,8 @@ static HRESULT WINAPI StgStreamImpl_CopyTo(
* Sanity check
*/
if
(
!
This
->
parentStorage
)
{
if
(
!
This
->
parentStorage
)
return
STG_E_REVERTED
;
}
if
(
pstm
==
0
)
return
STG_E_INVALIDPOINTER
;
...
...
@@ -724,9 +727,9 @@ static HRESULT WINAPI StgStreamImpl_Commit(
{
StgStreamImpl
*
const
This
=
(
StgStreamImpl
*
)
iface
;
if
(
!
This
->
parentStorage
)
{
if
(
!
This
->
parentStorage
)
return
STG_E_REVERTED
;
}
return
S_OK
;
}
...
...
@@ -752,9 +755,8 @@ static HRESULT WINAPI StgStreamImpl_LockRegion(
{
StgStreamImpl
*
const
This
=
(
StgStreamImpl
*
)
iface
;
if
(
!
This
->
parentStorage
)
{
if
(
!
This
->
parentStorage
)
return
STG_E_REVERTED
;
}
FIXME
(
"not implemented!
\n
"
);
return
E_NOTIMPL
;
...
...
@@ -768,9 +770,8 @@ static HRESULT WINAPI StgStreamImpl_UnlockRegion(
{
StgStreamImpl
*
const
This
=
(
StgStreamImpl
*
)
iface
;
if
(
!
This
->
parentStorage
)
{
if
(
!
This
->
parentStorage
)
return
STG_E_REVERTED
;
}
FIXME
(
"not implemented!
\n
"
);
return
E_NOTIMPL
;
...
...
@@ -798,9 +799,8 @@ static HRESULT WINAPI StgStreamImpl_Stat(
* if stream has no parent, return STG_E_REVERTED
*/
if
(
!
This
->
parentStorage
)
{
return
STG_E_REVERTED
;
}
if
(
!
This
->
parentStorage
)
return
STG_E_REVERTED
;
/*
* Read the information from the property.
...
...
@@ -848,9 +848,8 @@ static HRESULT WINAPI StgStreamImpl_Clone(
* Sanity check
*/
if
(
!
This
->
parentStorage
)
{
if
(
!
This
->
parentStorage
)
return
STG_E_REVERTED
;
}
if
(
ppstm
==
0
)
return
STG_E_INVALIDPOINTER
;
...
...
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