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
f630fb4f
Commit
f630fb4f
authored
Mar 27, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Mar 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wiaservc: Return pointer to vtbl instead of implementation in wiadevmgr_Constructor.
parent
05757794
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
factory.c
dlls/wiaservc/factory.c
+4
-4
wiadevmgr.c
dlls/wiaservc/wiadevmgr.c
+2
-2
wiaservc_private.h
dlls/wiaservc/wiaservc_private.h
+1
-1
No files found.
dlls/wiaservc/factory.c
View file @
f630fb4f
...
...
@@ -70,19 +70,19 @@ WIASERVC_IClassFactory_CreateInstance(LPCLASSFACTORY iface, LPUNKNOWN pUnkOuter,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
HRESULT
res
;
I
Unknown
*
punk
=
NULL
;
I
WiaDevMgr
*
devmgr
=
NULL
;
TRACE
(
"IID: %s
\n
"
,
debugstr_guid
(
riid
));
if
(
pUnkOuter
)
return
CLASS_E_NOAGGREGATION
;
res
=
wiadevmgr_Constructor
(
(
LPVOID
*
)
&
punk
);
res
=
wiadevmgr_Constructor
(
&
devmgr
);
if
(
FAILED
(
res
))
return
res
;
res
=
I
Unknown_QueryInterface
(
punk
,
riid
,
ppvObj
);
I
Unknown_Release
(
punk
);
res
=
I
WiaDevMgr_QueryInterface
(
devmgr
,
riid
,
ppvObj
);
I
WiaDevMgr_Release
(
devmgr
);
return
res
;
}
...
...
dlls/wiaservc/wiadevmgr.c
View file @
f630fb4f
...
...
@@ -164,7 +164,7 @@ static const IWiaDevMgrVtbl WIASERVC_IWiaDevMgr_Vtbl =
wiadevmgr_AddDeviceDlg
};
HRESULT
wiadevmgr_Constructor
(
LPVOID
*
ppObj
)
HRESULT
wiadevmgr_Constructor
(
IWiaDevMgr
*
*
ppObj
)
{
wiadevmgr
*
This
;
TRACE
(
"(%p)
\n
"
,
ppObj
);
...
...
@@ -173,7 +173,7 @@ HRESULT wiadevmgr_Constructor(LPVOID *ppObj)
{
This
->
IWiaDevMgr_iface
.
lpVtbl
=
&
WIASERVC_IWiaDevMgr_Vtbl
;
This
->
ref
=
1
;
*
ppObj
=
This
;
*
ppObj
=
&
This
->
IWiaDevMgr_iface
;
return
S_OK
;
}
*
ppObj
=
NULL
;
...
...
dlls/wiaservc/wiaservc_private.h
View file @
f630fb4f
...
...
@@ -34,7 +34,7 @@ typedef struct
LONG
ref
;
}
wiadevmgr
;
HRESULT
wiadevmgr_Constructor
(
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
wiadevmgr_Constructor
(
IWiaDevMgr
*
*
ppObj
)
DECLSPEC_HIDDEN
;
/* Little helper functions */
static
inline
char
*
...
...
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