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
c1caf43d
Commit
c1caf43d
authored
Apr 11, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Apr 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Move the private class factory declaration into factory.c.
parent
ea343153
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
16 deletions
+21
-16
factory.c
dlls/shdocvw/factory.c
+17
-2
shdocvw.h
dlls/shdocvw/shdocvw.h
+1
-12
shdocvw_main.c
dlls/shdocvw/shdocvw_main.c
+3
-2
No files found.
dlls/shdocvw/factory.c
View file @
c1caf43d
...
...
@@ -30,6 +30,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
* (Based on implementation in ddraw/main.c)
*/
typedef
struct
{
/* IUnknown fields */
const
IClassFactoryVtbl
*
lpVtbl
;
HRESULT
(
*
cf
)(
LPUNKNOWN
,
REFIID
,
LPVOID
*
);
LONG
ref
;
}
IClassFactoryImpl
;
/**********************************************************************
* WBCF_QueryInterface (IUnknown)
*/
...
...
@@ -78,7 +87,8 @@ static ULONG WINAPI WBCF_Release(LPCLASSFACTORY iface)
static
HRESULT
WINAPI
WBCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
return
WebBrowser_Create
(
pOuter
,
riid
,
ppobj
);
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
This
->
cf
(
pOuter
,
riid
,
ppobj
);
}
/************************************************************************
...
...
@@ -105,4 +115,9 @@ static const IClassFactoryVtbl WBCF_Vtbl =
WBCF_LockServer
};
IClassFactoryImpl
SHDOCVW_ClassFactory
=
{
&
WBCF_Vtbl
};
static
IClassFactoryImpl
SHDOCVW_WBClassFactory
=
{
&
WBCF_Vtbl
,
WebBrowser_Create
};
IClassFactory
*
get_class_factory
(
void
)
{
return
(
IClassFactory
*
)
&
SHDOCVW_WBClassFactory
;
}
dlls/shdocvw/shdocvw.h
View file @
c1caf43d
...
...
@@ -40,18 +40,6 @@
#include "hlink.h"
/**********************************************************************
* IClassFactory declaration for SHDOCVW.DLL
*/
typedef
struct
{
/* IUnknown fields */
const
IClassFactoryVtbl
*
lpVtbl
;
LONG
ref
;
}
IClassFactoryImpl
;
extern
IClassFactoryImpl
SHDOCVW_ClassFactory
;
/**********************************************************************
* Shell Instance Objects
*/
extern
HRESULT
SHDOCVW_GetShellInstanceObjectClassObject
(
REFCLSID
rclsid
,
...
...
@@ -188,5 +176,6 @@ extern HINSTANCE shdocvw_hinstance;
extern
void
register_iewindow_class
(
void
);
extern
void
unregister_iewindow_class
(
void
);
extern
BOOL
create_ie_window
(
LPCWSTR
url
);
extern
IClassFactory
*
get_class_factory
(
void
);
#endif
/* __WINE_SHDOCVW_H */
dlls/shdocvw/shdocvw_main.c
View file @
c1caf43d
...
...
@@ -475,8 +475,9 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
IsEqualIID
(
&
IID_IClassFactory
,
riid
))
{
/* Pass back our shdocvw class factory */
*
ppv
=
(
LPVOID
)
&
SHDOCVW_ClassFactory
;
IClassFactory_AddRef
((
IClassFactory
*
)
&
SHDOCVW_ClassFactory
);
IClassFactory
*
cf
=
get_class_factory
();
IClassFactory_AddRef
(
cf
);
*
ppv
=
cf
;
return
S_OK
;
}
...
...
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