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
f8a18f9c
Commit
f8a18f9c
authored
Dec 30, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmiutils: Remove unused IUnknown *outer parameter from object constructors.
parent
182ff187
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
14 deletions
+11
-14
main.c
dlls/wmiutils/main.c
+2
-5
path.c
dlls/wmiutils/path.c
+5
-5
statuscode.c
dlls/wmiutils/statuscode.c
+2
-2
wmiutils_private.h
dlls/wmiutils/wmiutils_private.h
+2
-2
No files found.
dlls/wmiutils/main.c
View file @
f8a18f9c
...
...
@@ -37,7 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(wmiutils);
static
HINSTANCE
instance
;
typedef
HRESULT
(
*
fnCreateInstance
)(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
);
typedef
HRESULT
(
*
fnCreateInstance
)(
LPVOID
*
ppObj
);
typedef
struct
{
...
...
@@ -87,14 +87,11 @@ static HRESULT WINAPI wmiutils_cf_CreateInstance( IClassFactory *iface, LPUNKNOW
if
(
pOuter
)
return
CLASS_E_NOAGGREGATION
;
r
=
This
->
pfnCreateInstance
(
pOuter
,
(
LPVOID
*
)
&
punk
);
r
=
This
->
pfnCreateInstance
(
(
LPVOID
*
)
&
punk
);
if
(
FAILED
(
r
))
return
r
;
r
=
IUnknown_QueryInterface
(
punk
,
riid
,
ppobj
);
if
(
FAILED
(
r
))
return
r
;
IUnknown_Release
(
punk
);
return
r
;
}
...
...
dlls/wmiutils/path.c
View file @
f8a18f9c
...
...
@@ -276,11 +276,11 @@ static const struct IWbemPathKeyListVtbl keylist_vtbl =
keylist_GetText
};
static
HRESULT
WbemPathKeyList_create
(
I
Unknown
*
pUnkOuter
,
I
WbemPath
*
parent
,
LPVOID
*
ppObj
)
static
HRESULT
WbemPathKeyList_create
(
IWbemPath
*
parent
,
LPVOID
*
ppObj
)
{
struct
keylist
*
keylist
;
TRACE
(
"%p
, %p
\n
"
,
pUnkOuter
,
ppObj
);
TRACE
(
"%p
\n
"
,
ppObj
);
if
(
!
(
keylist
=
heap_alloc
(
sizeof
(
*
keylist
)
)))
return
E_OUTOFMEMORY
;
...
...
@@ -1178,7 +1178,7 @@ static HRESULT WINAPI path_GetKeyList(
LeaveCriticalSection
(
&
path
->
cs
);
return
WBEM_E_INVALID_PARAMETER
;
}
hr
=
WbemPathKeyList_create
(
NULL
,
iface
,
(
void
**
)
pOut
);
hr
=
WbemPathKeyList_create
(
iface
,
(
void
**
)
pOut
);
LeaveCriticalSection
(
&
path
->
cs
);
return
hr
;
...
...
@@ -1269,11 +1269,11 @@ static const struct IWbemPathVtbl path_vtbl =
path_IsSameClassName
};
HRESULT
WbemPath_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
HRESULT
WbemPath_create
(
LPVOID
*
ppObj
)
{
struct
path
*
path
;
TRACE
(
"%p
, %p
\n
"
,
pUnkOuter
,
ppObj
);
TRACE
(
"%p
\n
"
,
ppObj
);
if
(
!
(
path
=
heap_alloc
(
sizeof
(
*
path
)
)))
return
E_OUTOFMEMORY
;
...
...
dlls/wmiutils/statuscode.c
View file @
f8a18f9c
...
...
@@ -132,11 +132,11 @@ static const struct IWbemStatusCodeTextVtbl status_code_vtbl =
status_code_GetFacilityCodeText
};
HRESULT
WbemStatusCodeText_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
HRESULT
WbemStatusCodeText_create
(
LPVOID
*
ppObj
)
{
status_code
*
sc
;
TRACE
(
"(%p
,%p)
\n
"
,
pUnkOuter
,
ppObj
);
TRACE
(
"(%p
)
\n
"
,
ppObj
);
if
(
!
(
sc
=
heap_alloc
(
sizeof
(
*
sc
)
)))
return
E_OUTOFMEMORY
;
...
...
dlls/wmiutils/wmiutils_private.h
View file @
f8a18f9c
...
...
@@ -18,8 +18,8 @@
#include "wine/unicode.h"
HRESULT
WbemPath_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
WbemStatusCodeText_create
(
IUnknown
*
,
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
WbemPath_create
(
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
WbemStatusCodeText_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