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
74ed392f
Commit
74ed392f
authored
Feb 11, 2017
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage.dll16: Set OpenStorage/OpenStream output to NULL on failure.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3085e733
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
storage.c
dlls/storage.dll16/storage.c
+4
-0
No files found.
dlls/storage.dll16/storage.c
View file @
74ed392f
...
...
@@ -1859,11 +1859,13 @@ HRESULT CDECL IStorage16_fnOpenStorage(IStorage16 *iface, LPCOLESTR16 pwcsName,
newpps
=
STORAGE_look_for_named_pps
(
&
lpstg
->
str
,
This
->
stde
.
pps_dir
,
name
);
if
(
newpps
==-
1
)
{
IStorage16_fnRelease
(
&
lpstg
->
IStorage16_iface
);
*
ppstg
=
NULL
;
return
E_FAIL
;
}
if
(
1
!=
STORAGE_get_pps_entry
(
&
lpstg
->
str
,
newpps
,
&
(
lpstg
->
stde
)))
{
IStorage16_fnRelease
(
&
lpstg
->
IStorage16_iface
);
*
ppstg
=
NULL
;
return
E_FAIL
;
}
lpstg
->
ppsent
=
newpps
;
...
...
@@ -1899,11 +1901,13 @@ HRESULT CDECL IStorage16_fnOpenStream(IStorage16 *iface, LPCOLESTR16 pwcsName, v
newpps
=
STORAGE_look_for_named_pps
(
&
lpstr
->
str
,
This
->
stde
.
pps_dir
,
name
);
if
(
newpps
==-
1
)
{
IStream16_fnRelease
(
&
lpstr
->
IStream16_iface
);
*
ppstm
=
NULL
;
return
E_FAIL
;
}
if
(
1
!=
STORAGE_get_pps_entry
(
&
lpstr
->
str
,
newpps
,
&
(
lpstr
->
stde
)))
{
IStream16_fnRelease
(
&
lpstr
->
IStream16_iface
);
*
ppstm
=
NULL
;
return
E_FAIL
;
}
lpstr
->
offset
.
u
.
LowPart
=
0
;
...
...
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