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
960d7f9f
Commit
960d7f9f
authored
Oct 02, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added FIXME about IClassFactoryEx.
parent
d0e96819
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
activex.c
dlls/jscript/activex.c
+13
-2
jscript_main.c
dlls/jscript/jscript_main.c
+1
-0
No files found.
dlls/jscript/activex.c
View file @
960d7f9f
...
...
@@ -21,6 +21,7 @@
#include "jscript.h"
#include "objsafe.h"
#include "mshtmhst.h"
#include "wine/debug.h"
...
...
@@ -59,6 +60,8 @@ static IUnknown *create_activex_object(script_ctx_t *ctx, const WCHAR *progid)
{
IInternetHostSecurityManager
*
secmgr
;
struct
CONFIRMSAFETY
cs
;
IClassFactoryEx
*
cfex
;
IClassFactory
*
cf
;
DWORD
policy_size
;
BYTE
*
bpolicy
;
IUnknown
*
obj
;
...
...
@@ -82,9 +85,17 @@ static IUnknown *create_activex_object(script_ctx_t *ctx, const WCHAR *progid)
if
(
FAILED
(
hres
)
||
policy
!=
URLPOLICY_ALLOW
)
return
NULL
;
/* FIXME: Use IClassFactoryEx */
hres
=
CoGetClassObject
(
&
guid
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
NULL
,
&
IID_IClassFactory
,
(
void
**
)
&
cf
);
if
(
FAILED
(
hres
))
return
NULL
;
hres
=
IClassFactory_QueryInterface
(
cf
,
&
IID_IClassFactoryEx
,
(
void
**
)
&
cfex
);
if
(
SUCCEEDED
(
hres
))
{
FIXME
(
"Use IClassFactoryEx
\n
"
);
IClassFactoryEx_Release
(
cfex
);
}
hres
=
CoCreateInstance
(
&
guid
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IUnknown
,
(
void
**
)
&
obj
);
hres
=
IClassFactory_CreateInstance
(
cf
,
NULL
,
&
IID_IUnknown
,
(
void
**
)
&
obj
);
if
(
FAILED
(
hres
))
return
NULL
;
...
...
dlls/jscript/jscript_main.c
View file @
960d7f9f
...
...
@@ -24,6 +24,7 @@
#include "advpub.h"
#include "activaut.h"
#include "objsafe.h"
#include "mshtmhst.h"
#include "wine/debug.h"
...
...
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