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
65bf359d
Commit
65bf359d
authored
Apr 22, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdmo: Remove a helper only used once.
parent
e7548fc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
24 deletions
+9
-24
dmoreg.c
dlls/msdmo/dmoreg.c
+9
-24
No files found.
dlls/msdmo/dmoreg.c
View file @
65bf359d
...
...
@@ -19,6 +19,8 @@
#include <stdarg.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
...
...
@@ -359,23 +361,6 @@ HRESULT WINAPI DMOGetName(REFCLSID clsidDMO, WCHAR name[])
}
/**************************************************************************
* IEnumDMOImpl_Destructor
*/
static
BOOL
IEnumDMOImpl_Destructor
(
IEnumDMOImpl
*
This
)
{
TRACE
(
"%p
\n
"
,
This
);
if
(
This
->
hkey
)
RegCloseKey
(
This
->
hkey
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
pInTypes
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
pOutTypes
);
return
TRUE
;
}
/**************************************************************************
* IEnumDMO_Constructor
*/
static
HRESULT
IEnumDMO_Constructor
(
...
...
@@ -450,10 +435,7 @@ static HRESULT IEnumDMO_Constructor(
lerr:
if
(
FAILED
(
hr
))
{
IEnumDMOImpl_Destructor
(
lpedmo
);
HeapFree
(
GetProcessHeap
(),
0
,
lpedmo
);
}
IEnumDMO_Release
(
&
lpedmo
->
IEnumDMO_iface
);
else
{
TRACE
(
"returning %p
\n
"
,
lpedmo
);
...
...
@@ -489,7 +471,7 @@ static HRESULT WINAPI IEnumDMO_fnQueryInterface(IEnumDMO* iface, REFIID riid, vo
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
*
ppvObj
=
iface
;
IEnumDMO_
fn
AddRef
(
iface
);
IEnumDMO_AddRef
(
iface
);
}
return
*
ppvObj
?
S_OK
:
E_NOINTERFACE
;
...
...
@@ -507,8 +489,11 @@ static ULONG WINAPI IEnumDMO_fnRelease(IEnumDMO * iface)
if
(
!
refCount
)
{
IEnumDMOImpl_Destructor
(
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
if
(
This
->
hkey
)
RegCloseKey
(
This
->
hkey
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
pInTypes
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
pOutTypes
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
refCount
;
}
...
...
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