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
5cf3c1f4
Commit
5cf3c1f4
authored
Dec 30, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wuapi: Remove unused IUnknown *outer parameter from object constructors.
parent
ab8237c8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
16 deletions
+13
-16
main.c
dlls/wuapi/main.c
+2
-5
session.c
dlls/wuapi/session.c
+5
-5
wuapi_private.h
dlls/wuapi/wuapi_private.h
+6
-6
No files found.
dlls/wuapi/main.c
View file @
5cf3c1f4
...
...
@@ -35,7 +35,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
wuapi
);
typedef
HRESULT
(
*
fnCreateInstance
)(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
);
typedef
HRESULT
(
*
fnCreateInstance
)(
LPVOID
*
ppObj
);
typedef
struct
_wucf
{
...
...
@@ -85,14 +85,11 @@ static HRESULT WINAPI wucf_CreateInstance( IClassFactory *iface, LPUNKNOWN pOute
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/wuapi/session.c
View file @
5cf3c1f4
...
...
@@ -179,7 +179,7 @@ static HRESULT WINAPI update_session_CreateUpdateSearcher(
IUpdateSearcher
**
retval
)
{
TRACE
(
"%p
\n
"
,
This
);
return
UpdateSearcher_create
(
NULL
,
(
LPVOID
*
)
retval
);
return
UpdateSearcher_create
(
(
LPVOID
*
)
retval
);
}
static
HRESULT
WINAPI
update_session_CreateUpdateDownloader
(
...
...
@@ -187,7 +187,7 @@ static HRESULT WINAPI update_session_CreateUpdateDownloader(
IUpdateDownloader
**
retval
)
{
TRACE
(
"%p
\n
"
,
This
);
return
UpdateDownloader_create
(
NULL
,
(
LPVOID
*
)
retval
);
return
UpdateDownloader_create
(
(
LPVOID
*
)
retval
);
}
static
HRESULT
WINAPI
update_session_CreateUpdateInstaller
(
...
...
@@ -195,7 +195,7 @@ static HRESULT WINAPI update_session_CreateUpdateInstaller(
IUpdateInstaller
**
retval
)
{
TRACE
(
"%p
\n
"
,
This
);
return
UpdateInstaller_create
(
NULL
,
(
LPVOID
*
)
retval
);
return
UpdateInstaller_create
(
(
LPVOID
*
)
retval
);
}
static
const
struct
IUpdateSessionVtbl
update_session_vtbl
=
...
...
@@ -217,11 +217,11 @@ static const struct IUpdateSessionVtbl update_session_vtbl =
update_session_CreateUpdateInstaller
};
HRESULT
UpdateSession_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
HRESULT
UpdateSession_create
(
LPVOID
*
ppObj
)
{
update_session
*
session
;
TRACE
(
"(%p
,%p)
\n
"
,
pUnkOuter
,
ppObj
);
TRACE
(
"(%p
)
\n
"
,
ppObj
);
session
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
session
)
);
if
(
!
session
)
return
E_OUTOFMEMORY
;
...
...
dlls/wuapi/wuapi_private.h
View file @
5cf3c1f4
...
...
@@ -16,9 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
extern
HRESULT
AutomaticUpdates_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
UpdateSession_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
UpdateSearcher_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
UpdateDownloader_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
UpdateInstaller_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
SystemInformation_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
AutomaticUpdates_create
(
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
UpdateSession_create
(
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
UpdateSearcher_create
(
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
UpdateDownloader_create
(
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
UpdateInstaller_create
(
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
SystemInformation_create
(
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
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