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
5ce2d25b
Commit
5ce2d25b
authored
Oct 19, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Oct 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Reset the parent storage on overwritten streams so that operations on them now fail.
parent
842d1b69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
storage32.c
dlls/ole32/storage32.c
+11
-0
storage32.c
dlls/ole32/tests/storage32.c
+0
-1
No files found.
dlls/ole32/storage32.c
View file @
5ce2d25b
...
...
@@ -1015,6 +1015,17 @@ static HRESULT WINAPI StorageBaseImpl_CreateStream(
*/
if
(
STGM_CREATE_MODE
(
grfMode
)
==
STGM_CREATE
)
{
StgStreamImpl
*
strm
;
LIST_FOR_EACH_ENTRY
(
strm
,
&
This
->
strmHead
,
StgStreamImpl
,
StrmListEntry
)
{
if
(
strm
->
ownerProperty
==
foundPropertyIndex
)
{
TRACE
(
"Stream deleted %p
\n
"
,
strm
);
strm
->
parentStorage
=
NULL
;
list_remove
(
&
strm
->
StrmListEntry
);
}
}
IStorage_DestroyElement
(
iface
,
pwcsName
);
}
else
...
...
dlls/ole32/tests/storage32.c
View file @
5ce2d25b
...
...
@@ -335,7 +335,6 @@ static void test_storage_stream(void)
ok
(
r
==
S_OK
,
"IStorage->CreateStream failed
\n
"
);
r
=
IStream_Seek
(
stm
,
pos
,
STREAM_SEEK_SET
,
&
p
);
todo_wine
ok
(
r
==
STG_E_REVERTED
,
"overwritten stream should return STG_E_REVERTED instead of 0x%08x
\n
"
,
r
);
r
=
IStream_Release
(
stm2
);
...
...
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