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
5b16e6e0
Commit
5b16e6e0
authored
Jul 18, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Properly handle aggregation attempt.
parent
cf30b6ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
jscript.c
dlls/jscript/jscript.c
+5
-0
jscript.c
dlls/jscript/tests/jscript.c
+13
-0
No files found.
dlls/jscript/jscript.c
View file @
5b16e6e0
...
...
@@ -963,6 +963,11 @@ HRESULT WINAPI JScriptFactory_CreateInstance(IClassFactory *iface, IUnknown *pUn
TRACE
(
"(%p %s %p)
\n
"
,
pUnkOuter
,
debugstr_guid
(
riid
),
ppv
);
if
(
pUnkOuter
)
{
*
ppv
=
NULL
;
return
CLASS_E_NOAGGREGATION
;
}
lock_module
();
ret
=
heap_alloc_zero
(
sizeof
(
*
ret
));
...
...
dlls/jscript/tests/jscript.c
View file @
5b16e6e0
...
...
@@ -605,6 +605,18 @@ static void test_jscript_uninitializing(void)
ok
(
!
ref
,
"ref = %d
\n
"
,
ref
);
}
static
void
test_aggregation
(
void
)
{
IUnknown
*
unk
=
(
IUnknown
*
)
0xdeadbeef
;
HRESULT
hres
;
hres
=
CoCreateInstance
(
&
CLSID_JScript
,
(
IUnknown
*
)
0xdeadbeef
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
ok
(
hres
==
CLASS_E_NOAGGREGATION
||
broken
(
E_INVALIDARG
)
/* win2k */
,
"CoCreateInstance failed: %08x, expected CLASS_E_NOAGGREGATION
\n
"
,
hres
);
ok
(
!
unk
,
"unk = %p
\n
"
,
unk
);
}
static
BOOL
check_jscript
(
void
)
{
IActiveScriptProperty
*
script_prop
;
...
...
@@ -626,6 +638,7 @@ START_TEST(jscript)
test_jscript
();
test_jscript2
();
test_jscript_uninitializing
();
test_aggregation
();
}
else
{
win_skip
(
"Broken engine, probably too old
\n
"
);
}
...
...
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