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
fb9e8bc9
Commit
fb9e8bc9
authored
Dec 30, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemdisp: Remove unused IUnknown *outer parameter from object constructor.
parent
f8d79c83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
locator.c
dlls/wbemdisp/locator.c
+2
-2
main.c
dlls/wbemdisp/main.c
+3
-6
wbemdisp_private.h
dlls/wbemdisp/wbemdisp_private.h
+1
-1
No files found.
dlls/wbemdisp/locator.c
View file @
fb9e8bc9
...
...
@@ -250,11 +250,11 @@ static const ISWbemLocatorVtbl locator_vtbl =
locator_get_Security_
};
HRESULT
SWbemLocator_create
(
IUnknown
*
unk
,
void
**
obj
)
HRESULT
SWbemLocator_create
(
void
**
obj
)
{
struct
locator
*
locator
;
TRACE
(
"%p
, %p
\n
"
,
unk
,
obj
);
TRACE
(
"%p
\n
"
,
obj
);
if
(
!
(
locator
=
heap_alloc
(
sizeof
(
*
locator
)
)))
return
E_OUTOFMEMORY
;
locator
->
ISWbemLocator_iface
.
lpVtbl
=
&
locator_vtbl
;
...
...
dlls/wbemdisp/main.c
View file @
fb9e8bc9
...
...
@@ -80,7 +80,7 @@ static const IParseDisplayNameVtbl WinMGMTSVtbl = {
static
IParseDisplayName
winmgmts
=
{
&
WinMGMTSVtbl
};
static
HRESULT
WinMGMTS_create
(
IUnknown
*
outer
,
void
**
ppv
)
static
HRESULT
WinMGMTS_create
(
void
**
ppv
)
{
*
ppv
=
&
winmgmts
;
return
S_OK
;
...
...
@@ -89,7 +89,7 @@ static HRESULT WinMGMTS_create(IUnknown *outer, void **ppv)
struct
factory
{
IClassFactory
IClassFactory_iface
;
HRESULT
(
*
fnCreateInstance
)(
IUnknown
*
,
LPVOID
*
);
HRESULT
(
*
fnCreateInstance
)(
LPVOID
*
);
};
static
inline
struct
factory
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
...
...
@@ -131,14 +131,11 @@ static HRESULT WINAPI factory_CreateInstance( IClassFactory *iface, LPUNKNOWN ou
*
obj
=
NULL
;
if
(
outer
)
return
CLASS_E_NOAGGREGATION
;
hr
=
factory
->
fnCreateInstance
(
outer
,
(
LPVOID
*
)
&
unk
);
hr
=
factory
->
fnCreateInstance
(
(
LPVOID
*
)
&
unk
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
IUnknown_QueryInterface
(
unk
,
riid
,
obj
);
if
(
FAILED
(
hr
))
return
hr
;
IUnknown_Release
(
unk
);
return
hr
;
}
...
...
dlls/wbemdisp/wbemdisp_private.h
View file @
fb9e8bc9
...
...
@@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
HRESULT
SWbemLocator_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
SWbemLocator_create
(
LPVOID
*
)
DECLSPEC_HIDDEN
;
static
void
*
heap_alloc
(
size_t
len
)
__WINE_ALLOC_SIZE
(
1
);
static
inline
void
*
heap_alloc
(
size_t
len
)
...
...
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