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
863f432a
Commit
863f432a
authored
Jun 29, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jun 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Distinguish interface and implementation pointer for IcnsEncoder.
parent
d37f4076
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
icnsformat.c
dlls/windowscodecs/icnsformat.c
+5
-5
No files found.
dlls/windowscodecs/icnsformat.c
View file @
863f432a
...
...
@@ -179,7 +179,7 @@ static ULONG WINAPI IcnsFrameEncode_Release(IWICBitmapFrameEncode *iface)
if
(
This
->
icns_image
!=
NULL
)
HeapFree
(
GetProcessHeap
(),
0
,
This
->
icns_image
);
I
Unknown_Release
((
IUnknown
*
)
This
->
encoder
);
I
WICBitmapFrameEncode_Release
(
&
This
->
encoder
->
IWICBitmapFrameEncode_iface
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -489,7 +489,7 @@ static HRESULT WINAPI IcnsEncoder_QueryInterface(IWICBitmapEncoder *iface, REFII
if
(
IsEqualIID
(
&
IID_IUnknown
,
iid
)
||
IsEqualIID
(
&
IID_IWICBitmapEncoder
,
iid
))
{
*
ppv
=
This
;
*
ppv
=
&
This
->
IWICBitmapEncoder_iface
;
}
else
{
...
...
@@ -639,7 +639,7 @@ static HRESULT WINAPI IcnsEncoder_CreateNewFrame(IWICBitmapEncoder *iface,
frameEncode
->
committed
=
FALSE
;
*
ppIFrameEncode
=
&
frameEncode
->
IWICBitmapFrameEncode_iface
;
This
->
outstanding_commits
++
;
I
Unknown_AddRef
((
IUnknown
*
)
This
);
I
WICBitmapEncoder_AddRef
(
&
This
->
IWICBitmapEncoder_iface
);
end:
LeaveCriticalSection
(
&
This
->
lock
);
...
...
@@ -725,8 +725,8 @@ HRESULT IcnsEncoder_CreateInstance(REFIID iid, void** ppv)
InitializeCriticalSection
(
&
This
->
lock
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": IcnsEncoder.lock"
);
ret
=
I
Unknown_QueryInterface
((
IUnknown
*
)
This
,
iid
,
ppv
);
I
Unknown_Release
((
IUnknown
*
)
This
);
ret
=
I
WICBitmapEncoder_QueryInterface
(
&
This
->
IWICBitmapEncoder_iface
,
iid
,
ppv
);
I
WICBitmapEncoder_Release
(
&
This
->
IWICBitmapEncoder_iface
);
return
ret
;
}
...
...
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