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
4b341bfd
Commit
4b341bfd
authored
Jul 06, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added Boolean constructor implementation.
parent
9a30d39b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
bool.c
dlls/jscript/bool.c
+35
-2
No files found.
dlls/jscript/bool.c
View file @
4b341bfd
...
...
@@ -106,8 +106,41 @@ static const builtin_info_t Bool_info = {
static
HRESULT
BoolConstr_value
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
HRESULT
hres
;
VARIANT_BOOL
value
=
VARIANT_FALSE
;
if
(
arg_cnt
(
dp
))
{
hres
=
to_boolean
(
get_arg
(
dp
,
0
),
&
value
);
if
(
FAILED
(
hres
))
return
hres
;
}
switch
(
flags
)
{
case
DISPATCH_CONSTRUCT
:
{
DispatchEx
*
bool
;
hres
=
create_bool
(
dispex
->
ctx
,
value
,
&
bool
);
if
(
FAILED
(
hres
))
return
hres
;
V_VT
(
retv
)
=
VT_DISPATCH
;
V_DISPATCH
(
retv
)
=
(
IDispatch
*
)
_IDispatchEx_
(
bool
);
return
S_OK
;
}
case
INVOKE_FUNC
:
if
(
retv
)
{
V_VT
(
retv
)
=
VT_BOOL
;
V_BOOL
(
retv
)
=
value
;
}
return
S_OK
;
default:
FIXME
(
"unimplemented flags %x
\n
"
,
flags
);
return
E_NOTIMPL
;
}
return
S_OK
;
}
static
HRESULT
alloc_bool
(
script_ctx_t
*
ctx
,
BOOL
use_constr
,
BoolInstance
**
ret
)
...
...
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