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
d3597931
Commit
d3597931
authored
Sep 30, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Add Minute function implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cb16190e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
global.c
dlls/vbscript/global.c
+7
-2
api.vbs
dlls/vbscript/tests/api.vbs
+3
-0
No files found.
dlls/vbscript/global.c
View file @
d3597931
...
...
@@ -1659,8 +1659,13 @@ static HRESULT Global_Hour(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARI
static
HRESULT
Global_Minute
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
SYSTEMTIME
st
;
HRESULT
hres
;
TRACE
(
"(%s)
\n
"
,
debugstr_variant
(
arg
));
hres
=
to_system_time
(
arg
,
&
st
);
return
FAILED
(
hres
)
?
hres
:
return_short
(
res
,
st
.
wMinute
);
}
static
HRESULT
Global_Second
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
...
...
dlls/vbscript/tests/api.vbs
View file @
d3597931
...
...
@@ -1451,6 +1451,9 @@ Call ok(Year(2) = 1900, "Year(2) = " & Year(2))
Call
ok
(
getVT
(
Hour
(
now
))
=
"VT_I2"
,
"getVT(Hour(now)) = "
&
getVT
(
Hour
(
now
)))
Call
ok
(
Hour
(
2
)
=
0
,
"Hour(2) = "
&
Hour
(
2
))
Call
ok
(
Hour
(
2.75
)
=
18
,
"Hour(2) = "
&
Hour
(
2.75
))
Call
ok
(
getVT
(
Minute
(
now
))
=
"VT_I2"
,
"getVT(Minute(now)) = "
&
getVT
(
Minute
(
now
)))
Call
ok
(
Minute
(
2
)
=
0
,
"Minute(2) = "
&
Minute
(
2
))
Call
ok
(
Minute
(
2.02083
)
=
30
,
"Minute(2.02083) = "
&
Minute
(
2.02083
))
Sub
testRGBError
(
arg1
,
arg2
,
arg3
,
error_num
)
on
error
resume
next
...
...
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