Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
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
...
@@ -603,6 +603,7 @@ static HRESULT Global_InStr(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VA
VARIANT
*
startv
,
*
str1v
,
*
str2v
;
VARIANT
*
startv
,
*
str1v
,
*
str2v
;
BSTR
str1
,
str2
;
BSTR
str1
,
str2
;
int
start
,
ret
;
int
start
,
ret
;
HRESULT
hres
;
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
...
@@ -625,18 +626,9 @@ static HRESULT Global_InStr(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VA
...
@@ -625,18 +626,9 @@ static HRESULT Global_InStr(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VA
}
}
if
(
startv
)
{
if
(
startv
)
{
/* FIXME: Move to helper */
hres
=
to_int
(
startv
,
&
start
);
switch
(
V_VT
(
startv
))
{
if
(
FAILED
(
hres
))
case
VT_I2
:
return
hres
;
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
;
}
if
(
--
start
<
0
)
{
if
(
--
start
<
0
)
{
FIXME
(
"start %d
\n
"
,
start
);
FIXME
(
"start %d
\n
"
,
start
);
return
E_FAIL
;
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