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
89c76714
Commit
89c76714
authored
Oct 21, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added vbSunday constant implementation.
parent
42f126e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
global.c
dlls/vbscript/global.c
+12
-2
api.vbs
dlls/vbscript/tests/api.vbs
+3
-0
No files found.
dlls/vbscript/global.c
View file @
89c76714
...
...
@@ -75,6 +75,16 @@ static HRESULT return_bstr(VARIANT *res, const WCHAR *str)
return
S_OK
;
}
static
HRESULT
return_short
(
VARIANT
*
res
,
short
val
)
{
if
(
res
)
{
V_VT
(
res
)
=
VT_I2
;
V_I2
(
res
)
=
val
;
}
return
S_OK
;
}
static
IUnknown
*
create_object
(
script_ctx_t
*
ctx
,
const
WCHAR
*
progid
)
{
IInternetHostSecurityManager
*
secmgr
=
NULL
;
...
...
@@ -897,8 +907,8 @@ static HRESULT Global_vbUseSystemDayOfWeek(vbdisp_t *This, VARIANT *arg, unsigne
static
HRESULT
Global_vbSunday
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXM
E
(
"
\n
"
);
return
E_NOTIMPL
;
TRAC
E
(
"
\n
"
);
return
return_short
(
res
,
1
)
;
}
static
HRESULT
Global_vbMonday
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
...
...
dlls/vbscript/tests/api.vbs
View file @
89c76714
...
...
@@ -23,6 +23,9 @@ Dim x
Class
EmptyClass
End
Class
Call
ok
(
vbSunday
=
1
,
"vbSunday = "
&
vbSunday
)
Call
ok
(
getVT
(
vbSunday
)
=
"VT_I2"
,
"getVT(vbSunday) = "
&
getVT
(
vbSunday
))
Call
ok
(
isObject
(
new
EmptyClass
),
"isObject(new EmptyClass) is not true?"
)
Set
x
=
new
EmptyClass
Call
ok
(
isObject
(
x
),
"isObject(x) is not true?"
)
...
...
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