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
0b6df193
Commit
0b6df193
authored
Aug 21, 2009
by
Tony Wasserka
Committed by
Alexandre Julliard
Aug 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Support writing to memory streams in IWICStream.
parent
bb83fb26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
stream.c
dlls/windowscodecs/stream.c
+13
-2
No files found.
dlls/windowscodecs/stream.c
View file @
0b6df193
...
@@ -107,8 +107,19 @@ static HRESULT WINAPI StreamOnMemory_Read(IStream *iface,
...
@@ -107,8 +107,19 @@ static HRESULT WINAPI StreamOnMemory_Read(IStream *iface,
static
HRESULT
WINAPI
StreamOnMemory_Write
(
IStream
*
iface
,
static
HRESULT
WINAPI
StreamOnMemory_Write
(
IStream
*
iface
,
void
const
*
pv
,
ULONG
cb
,
ULONG
*
pcbWritten
)
void
const
*
pv
,
ULONG
cb
,
ULONG
*
pcbWritten
)
{
{
FIXME
(
"(%p): stub
\n
"
,
iface
);
StreamOnMemory
*
This
=
(
StreamOnMemory
*
)
iface
;
return
E_NOTIMPL
;
TRACE
(
"(%p)
\n
"
,
This
);
if
(
!
pv
)
return
E_INVALIDARG
;
if
(
cb
>
This
->
dwMemsize
-
This
->
dwCurPos
)
return
STG_E_MEDIUMFULL
;
if
(
cb
)
{
memcpy
(
This
->
pbMemory
+
This
->
dwCurPos
,
pv
,
cb
);
This
->
dwCurPos
+=
cb
;
}
if
(
pcbWritten
)
*
pcbWritten
=
cb
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
StreamOnMemory_Seek
(
IStream
*
iface
,
static
HRESULT
WINAPI
StreamOnMemory_Seek
(
IStream
*
iface
,
...
...
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