Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5fd834fc
Commit
5fd834fc
authored
Jan 04, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Jan 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Store an impl pointer instead of an iface pointer.
parent
11c3150b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
bmpencode.c
dlls/windowscodecs/bmpencode.c
+4
-5
No files found.
dlls/windowscodecs/bmpencode.c
View file @
5fd834fc
...
...
@@ -410,7 +410,7 @@ typedef struct BmpEncoder {
const
IWICBitmapEncoderVtbl
*
lpVtbl
;
LONG
ref
;
IStream
*
stream
;
IWICBitma
pFrameEncode
*
frame
;
Bm
pFrameEncode
*
frame
;
}
BmpEncoder
;
static
HRESULT
WINAPI
BmpEncoder_QueryInterface
(
IWICBitmapEncoder
*
iface
,
REFIID
iid
,
...
...
@@ -456,7 +456,7 @@ static ULONG WINAPI BmpEncoder_Release(IWICBitmapEncoder *iface)
if
(
ref
==
0
)
{
if
(
This
->
stream
)
IStream_Release
(
This
->
stream
);
if
(
This
->
frame
)
IWICBitmapFrameEncode_Release
(
This
->
frame
);
if
(
This
->
frame
)
IWICBitmapFrameEncode_Release
(
(
IWICBitmapFrameEncode
*
)
This
->
frame
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -553,7 +553,7 @@ static HRESULT WINAPI BmpEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
encode
->
committed
=
FALSE
;
*
ppIFrameEncode
=
(
IWICBitmapFrameEncode
*
)
encode
;
This
->
frame
=
(
IWICBitmapFrameEncode
*
)
encode
;
This
->
frame
=
encode
;
return
S_OK
;
}
...
...
@@ -561,10 +561,9 @@ static HRESULT WINAPI BmpEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
static
HRESULT
WINAPI
BmpEncoder_Commit
(
IWICBitmapEncoder
*
iface
)
{
BmpEncoder
*
This
=
(
BmpEncoder
*
)
iface
;
BmpFrameEncode
*
frame
=
(
BmpFrameEncode
*
)
This
->
frame
;
TRACE
(
"(%p)
\n
"
,
iface
);
if
(
!
frame
||
!
frame
->
committed
)
return
WINCODEC_ERR_WRONGSTATE
;
if
(
!
This
->
frame
||
!
This
->
frame
->
committed
)
return
WINCODEC_ERR_WRONGSTATE
;
return
S_OK
;
}
...
...
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