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
05e99099
Commit
05e99099
authored
Mar 19, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Mar 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add warnings for failures in the structured storage stream functions.
parent
546de27f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
stg_stream.c
dlls/ole32/stg_stream.c
+30
-0
No files found.
dlls/ole32/stg_stream.c
View file @
05e99099
...
...
@@ -486,7 +486,10 @@ static HRESULT WINAPI StgStreamImpl_Seek(
*/
if
(
!
This
->
parentStorage
)
{
WARN
(
"storage reverted
\n
"
);
return
STG_E_REVERTED
;
}
/*
* The caller is allowed to pass in NULL as the new position return value.
...
...
@@ -515,6 +518,7 @@ static HRESULT WINAPI StgStreamImpl_Seek(
*
plibNewPosition
=
This
->
streamSize
;
break
;
default:
WARN
(
"invalid dwOrigin %d
\n
"
,
dwOrigin
);
return
STG_E_INVALIDFUNCTION
;
}
...
...
@@ -549,19 +553,28 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
TRACE
(
"(%p, %d)
\n
"
,
iface
,
libNewSize
.
u
.
LowPart
);
if
(
!
This
->
parentStorage
)
{
WARN
(
"storage reverted
\n
"
);
return
STG_E_REVERTED
;
}
/*
* As documented.
*/
if
(
libNewSize
.
u
.
HighPart
!=
0
)
{
WARN
(
"invalid value for libNewSize.u.HighPart %d
\n
"
,
libNewSize
.
u
.
HighPart
);
return
STG_E_INVALIDFUNCTION
;
}
/*
* Do we have permission?
*/
if
(
!
(
This
->
grfMode
&
(
STGM_WRITE
|
STGM_READWRITE
)))
{
WARN
(
"access denied
\n
"
);
return
STG_E_ACCESSDENIED
;
}
if
(
This
->
streamSize
.
u
.
LowPart
==
libNewSize
.
u
.
LowPart
)
return
S_OK
;
...
...
@@ -669,7 +682,10 @@ static HRESULT WINAPI StgStreamImpl_CopyTo(
*/
if
(
!
This
->
parentStorage
)
{
WARN
(
"storage reverted
\n
"
);
return
STG_E_REVERTED
;
}
if
(
pstm
==
0
)
return
STG_E_INVALIDPOINTER
;
...
...
@@ -703,6 +719,7 @@ static HRESULT WINAPI StgStreamImpl_CopyTo(
if
(
bytesRead
!=
bytesWritten
)
{
hr
=
STG_E_MEDIUMFULL
;
WARN
(
"medium full
\n
"
);
break
;
}
...
...
@@ -744,7 +761,10 @@ static HRESULT WINAPI StgStreamImpl_Commit(
StgStreamImpl
*
const
This
=
(
StgStreamImpl
*
)
iface
;
if
(
!
This
->
parentStorage
)
{
WARN
(
"storage reverted
\n
"
);
return
STG_E_REVERTED
;
}
return
S_OK
;
}
...
...
@@ -772,7 +792,10 @@ static HRESULT WINAPI StgStreamImpl_LockRegion(
StgStreamImpl
*
const
This
=
(
StgStreamImpl
*
)
iface
;
if
(
!
This
->
parentStorage
)
{
WARN
(
"storage reverted
\n
"
);
return
STG_E_REVERTED
;
}
FIXME
(
"not implemented!
\n
"
);
return
E_NOTIMPL
;
...
...
@@ -787,7 +810,10 @@ static HRESULT WINAPI StgStreamImpl_UnlockRegion(
StgStreamImpl
*
const
This
=
(
StgStreamImpl
*
)
iface
;
if
(
!
This
->
parentStorage
)
{
WARN
(
"storage reverted
\n
"
);
return
STG_E_REVERTED
;
}
FIXME
(
"not implemented!
\n
"
);
return
E_NOTIMPL
;
...
...
@@ -818,7 +844,10 @@ static HRESULT WINAPI StgStreamImpl_Stat(
*/
if
(
!
This
->
parentStorage
)
{
WARN
(
"storage reverted
\n
"
);
return
STG_E_REVERTED
;
}
/*
* Read the information from the property.
...
...
@@ -838,6 +867,7 @@ static HRESULT WINAPI StgStreamImpl_Stat(
return
S_OK
;
}
WARN
(
"failed to read properties
\n
"
);
return
E_FAIL
;
}
...
...
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