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
81fe4bd8
Commit
81fe4bd8
authored
Mar 29, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Use to_int in InStr implementation.
parent
4b00511c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
global.c
dlls/vbscript/global.c
+4
-12
No files found.
dlls/vbscript/global.c
View file @
81fe4bd8
...
...
@@ -603,6 +603,7 @@ static HRESULT Global_InStr(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VA
VARIANT
*
startv
,
*
str1v
,
*
str2v
;
BSTR
str1
,
str2
;
int
start
,
ret
;
HRESULT
hres
;
TRACE
(
"
\n
"
);
...
...
@@ -625,18 +626,9 @@ static HRESULT Global_InStr(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VA
}
if
(
startv
)
{
/* FIXME: Move to helper */
switch
(
V_VT
(
startv
))
{
case
VT_I2
:
start
=
V_I2
(
startv
);
break
;
case
VT_I4
:
start
=
V_I4
(
startv
);
break
;
default:
FIXME
(
"unsupported start %s
\n
"
,
debugstr_variant
(
startv
));
return
E_NOTIMPL
;
}
hres
=
to_int
(
startv
,
&
start
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
--
start
<
0
)
{
FIXME
(
"start %d
\n
"
,
start
);
return
E_FAIL
;
...
...
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