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
a5b34797
Commit
a5b34797
authored
Jul 12, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: This cannot be NULL, so don't check it.
parent
7f891787
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
stg_prop.c
dlls/ole32/stg_prop.c
+11
-18
No files found.
dlls/ole32/stg_prop.c
View file @
a5b34797
...
...
@@ -307,8 +307,7 @@ static HRESULT WINAPI IPropertyStorage_fnReadMultiple(
ULONG
i
;
TRACE
(
"(%p, %ld, %p, %p)
\n
"
,
iface
,
cpspec
,
rgpspec
,
rgpropvar
);
if
(
!
This
)
return
E_INVALIDARG
;
if
(
cpspec
&&
(
!
rgpspec
||
!
rgpropvar
))
return
E_INVALIDARG
;
EnterCriticalSection
(
&
This
->
cs
);
...
...
@@ -562,8 +561,7 @@ static HRESULT WINAPI IPropertyStorage_fnWriteMultiple(
ULONG
i
;
TRACE
(
"(%p, %ld, %p, %p)
\n
"
,
iface
,
cpspec
,
rgpspec
,
rgpropvar
);
if
(
!
This
)
return
E_INVALIDARG
;
if
(
cpspec
&&
(
!
rgpspec
||
!
rgpropvar
))
return
E_INVALIDARG
;
if
(
!
(
This
->
grfMode
&
STGM_READWRITE
))
...
...
@@ -662,8 +660,7 @@ static HRESULT WINAPI IPropertyStorage_fnDeleteMultiple(
HRESULT
hr
;
TRACE
(
"(%p, %ld, %p)
\n
"
,
iface
,
cpspec
,
rgpspec
);
if
(
!
This
)
return
E_INVALIDARG
;
if
(
cpspec
&&
!
rgpspec
)
return
E_INVALIDARG
;
if
(
!
(
This
->
grfMode
&
STGM_READWRITE
))
...
...
@@ -711,8 +708,7 @@ static HRESULT WINAPI IPropertyStorage_fnReadPropertyNames(
HRESULT
hr
=
S_FALSE
;
TRACE
(
"(%p, %ld, %p, %p)
\n
"
,
iface
,
cpropid
,
rgpropid
,
rglpwstrName
);
if
(
!
This
)
return
E_INVALIDARG
;
if
(
cpropid
&&
(
!
rgpropid
||
!
rglpwstrName
))
return
E_INVALIDARG
;
EnterCriticalSection
(
&
This
->
cs
);
...
...
@@ -752,8 +748,7 @@ static HRESULT WINAPI IPropertyStorage_fnWritePropertyNames(
HRESULT
hr
;
TRACE
(
"(%p, %ld, %p, %p)
\n
"
,
iface
,
cpropid
,
rgpropid
,
rglpwstrName
);
if
(
!
This
)
return
E_INVALIDARG
;
if
(
cpropid
&&
(
!
rgpropid
||
!
rglpwstrName
))
return
E_INVALIDARG
;
if
(
!
(
This
->
grfMode
&
STGM_READWRITE
))
...
...
@@ -786,8 +781,7 @@ static HRESULT WINAPI IPropertyStorage_fnDeletePropertyNames(
HRESULT
hr
;
TRACE
(
"(%p, %ld, %p)
\n
"
,
iface
,
cpropid
,
rgpropid
);
if
(
!
This
)
return
E_INVALIDARG
;
if
(
cpropid
&&
!
rgpropid
)
return
E_INVALIDARG
;
if
(
!
(
This
->
grfMode
&
STGM_READWRITE
))
...
...
@@ -823,8 +817,7 @@ static HRESULT WINAPI IPropertyStorage_fnCommit(
HRESULT
hr
;
TRACE
(
"(%p, 0x%08lx)
\n
"
,
iface
,
grfCommitFlags
);
if
(
!
This
)
return
E_INVALIDARG
;
if
(
!
(
This
->
grfMode
&
STGM_READWRITE
))
return
STG_E_ACCESSDENIED
;
EnterCriticalSection
(
&
This
->
cs
);
...
...
@@ -846,8 +839,6 @@ static HRESULT WINAPI IPropertyStorage_fnRevert(
PropertyStorage_impl
*
This
=
(
PropertyStorage_impl
*
)
iface
;
TRACE
(
"%p
\n
"
,
iface
);
if
(
!
This
)
return
E_INVALIDARG
;
EnterCriticalSection
(
&
This
->
cs
);
if
(
This
->
dirty
)
...
...
@@ -897,7 +888,8 @@ static HRESULT WINAPI IPropertyStorage_fnSetClass(
PropertyStorage_impl
*
This
=
(
PropertyStorage_impl
*
)
iface
;
TRACE
(
"%p, %s
\n
"
,
iface
,
debugstr_guid
(
clsid
));
if
(
!
This
||
!
clsid
)
if
(
!
clsid
)
return
E_INVALIDARG
;
if
(
!
(
This
->
grfMode
&
STGM_READWRITE
))
return
STG_E_ACCESSDENIED
;
...
...
@@ -920,7 +912,8 @@ static HRESULT WINAPI IPropertyStorage_fnStat(
HRESULT
hr
;
TRACE
(
"%p, %p
\n
"
,
iface
,
statpsstg
);
if
(
!
This
||
!
statpsstg
)
if
(
!
statpsstg
)
return
E_INVALIDARG
;
hr
=
IStream_Stat
(
This
->
stm
,
&
stat
,
STATFLAG_NONAME
);
...
...
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