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
020245bb
Commit
020245bb
authored
Jan 27, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed some clang warnings.
parent
c0ab3694
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
3 deletions
+7
-3
array.c
dlls/jscript/array.c
+3
-0
engine.c
dlls/jscript/engine.c
+1
-1
function.c
dlls/jscript/function.c
+1
-0
jscript.c
dlls/jscript/jscript.c
+1
-0
lex.c
dlls/jscript/lex.c
+0
-1
number.c
dlls/jscript/number.c
+1
-1
No files found.
dlls/jscript/array.c
View file @
020245bb
...
...
@@ -133,6 +133,9 @@ static HRESULT Array_length(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISP
HRESULT
hres
;
hres
=
to_number
(
ctx
,
get_arg
(
dp
,
0
),
ei
,
&
num
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
V_VT
(
&
num
)
==
VT_I4
)
len
=
V_I4
(
&
num
);
else
...
...
dlls/jscript/engine.c
View file @
020245bb
...
...
@@ -2415,7 +2415,7 @@ static HRESULT typeof_exprval(script_ctx_t *ctx, exprval_t *exprval, jsexcept_t
}
VariantClear
(
&
val
);
return
S_OK
;
return
hres
;
}
HRESULT
typeof_expression_eval
(
script_ctx_t
*
ctx
,
expression_t
*
_expr
,
DWORD
flags
,
jsexcept_t
*
ei
,
exprval_t
*
ret
)
...
...
dlls/jscript/function.c
View file @
020245bb
...
...
@@ -441,6 +441,7 @@ static HRESULT Function_apply(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DI
}
}
if
(
SUCCEEDED
(
hres
))
hres
=
call_function
(
ctx
,
function
,
this_obj
,
&
args
,
retv
,
ei
,
caller
);
if
(
this_obj
)
...
...
dlls/jscript/jscript.c
View file @
020245bb
...
...
@@ -522,6 +522,7 @@ static HRESULT WINAPI JScript_AddNamedItem(IActiveScript *iface,
item
->
flags
=
dwFlags
;
item
->
name
=
heap_strdupW
(
pstrName
);
if
(
!
item
->
name
)
{
if
(
disp
)
IDispatch_Release
(
disp
);
heap_free
(
item
);
return
E_OUTOFMEMORY
;
...
...
dlls/jscript/lex.c
View file @
020245bb
...
...
@@ -249,7 +249,6 @@ static BOOL unescape(WCHAR *str)
}
p
++
;
c
=
0
;
switch
(
*
p
)
{
case
'\''
:
...
...
dlls/jscript/number.c
View file @
020245bb
...
...
@@ -150,7 +150,7 @@ static HRESULT Number_toString(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, D
if
(
exp
)
{
if
(
log_radix
==
0
)
buf
[
idx
++
]
=
'\0'
;
buf
[
idx
]
=
0
;
else
{
static
const
WCHAR
formatW
[]
=
{
'('
,
'e'
,
'%'
,
'c'
,
'%'
,
'd'
,
')'
,
0
};
WCHAR
ch
;
...
...
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