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
7a486010
Commit
7a486010
authored
Oct 13, 2014
by
Shuai Meng
Committed by
Alexandre Julliard
Oct 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Implemented Timer.
parent
a1ff4f90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
global.c
dlls/vbscript/global.c
+17
-2
api.vbs
dlls/vbscript/tests/api.vbs
+2
-0
No files found.
dlls/vbscript/global.c
View file @
7a486010
...
...
@@ -130,6 +130,16 @@ static inline HRESULT return_double(VARIANT *res, double val)
return
S_OK
;
}
static
inline
HRESULT
return_float
(
VARIANT
*
res
,
float
val
)
{
if
(
res
)
{
V_VT
(
res
)
=
VT_R4
;
V_R4
(
res
)
=
val
;
}
return
S_OK
;
}
static
inline
HRESULT
return_null
(
VARIANT
*
res
)
{
if
(
res
)
...
...
@@ -760,8 +770,13 @@ static HRESULT Global_Rnd(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIA
static
HRESULT
Global_Timer
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
SYSTEMTIME
lt
;
double
sec
;
GetLocalTime
(
&
lt
);
sec
=
lt
.
wHour
*
3600
+
lt
.
wMinute
*
60
+
lt
.
wSecond
+
lt
.
wMilliseconds
/
1000
.
0
;
return
return_float
(
res
,
sec
);
}
static
HRESULT
Global_LBound
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
...
...
dlls/vbscript/tests/api.vbs
View file @
7a486010
...
...
@@ -1264,4 +1264,6 @@ Call ok(getVT(RGB(&h1&, &h100&, &h111&)) = "VT_I4", "getVT(RGB(&h1&, &h100&, &h1
Call
testRGBError
(
-
1
,
&
h1e&
,
&
h3b&
,
5
)
Call
testRGBError
(
&
h4d&
,
-
2
,
&
h2f&
,
5
)
Call
ok
(
getVT
(
Timer
)
=
"VT_R4"
,
"getVT(Timer) = "
&
getVT
(
Timer
))
Call
reportSuccess
()
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