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
1fab6e35
Commit
1fab6e35
authored
Feb 13, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Feb 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add error checking to StorageBaseImpl_CreateStream.
parent
00dec58b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
storage32.c
dlls/ole32/storage32.c
+11
-2
No files found.
dlls/ole32/storage32.c
View file @
1fab6e35
...
...
@@ -834,6 +834,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStream(
StgStreamImpl
*
newStream
;
DirEntry
currentEntry
,
newStreamEntry
;
DirRef
currentEntryRef
,
newStreamEntryRef
;
HRESULT
hr
;
TRACE
(
"(%p, %s, %x, %d, %d, %p)
\n
"
,
iface
,
debugstr_w
(
pwcsName
),
grfMode
,
...
...
@@ -933,14 +934,22 @@ static HRESULT WINAPI StorageBaseImpl_CreateStream(
/*
* Create an entry with the new data
*/
StorageBaseImpl_CreateDirEntry
(
This
,
&
newStreamEntry
,
&
newStreamEntryRef
);
hr
=
StorageBaseImpl_CreateDirEntry
(
This
,
&
newStreamEntry
,
&
newStreamEntryRef
);
if
(
FAILED
(
hr
))
return
hr
;
/*
* Insert the new entry in the parent storage's tree.
*/
insertIntoTree
(
hr
=
insertIntoTree
(
This
,
This
->
storageDirEntry
,
newStreamEntryRef
);
if
(
FAILED
(
hr
))
{
StorageBaseImpl_DestroyDirEntry
(
This
,
newStreamEntryRef
);
return
hr
;
}
/*
* Open the stream to return it.
...
...
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