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
564d551a
Commit
564d551a
authored
Sep 27, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added MonthName implementation.
parent
a42f3cb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
global.c
dlls/vbscript/global.c
+23
-2
api.vbs
dlls/vbscript/tests/api.vbs
+7
-0
No files found.
dlls/vbscript/global.c
View file @
564d551a
...
...
@@ -1271,8 +1271,29 @@ static HRESULT Global_WeekdayName(vbdisp_t *This, VARIANT *arg, unsigned args_cn
static
HRESULT
Global_MonthName
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
int
month
,
abbrev
=
0
;
BSTR
ret
;
HRESULT
hres
;
TRACE
(
"
\n
"
);
assert
(
args_cnt
==
1
||
args_cnt
==
2
);
hres
=
to_int
(
arg
+
args_cnt
-
1
,
&
month
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
args_cnt
==
2
)
{
hres
=
to_int
(
arg
,
&
abbrev
);
if
(
FAILED
(
hres
))
return
hres
;
}
hres
=
VarMonthName
(
month
,
abbrev
,
0
,
&
ret
);
if
(
FAILED
(
hres
))
return
hres
;
return
return_bstr
(
res
,
ret
);
}
static
HRESULT
Global_Round
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
...
...
dlls/vbscript/tests/api.vbs
View file @
564d551a
...
...
@@ -223,6 +223,13 @@ if isEnglishLang then
Call
ok
(
WeekDayName
(
1
,
true
,
2
)
=
"Mon"
,
"WeekDayName(1, true, 2) = "
&
WeekDayName
(
1
,
true
,
2
))
Call
ok
(
WeekDayName
(
1
,
true
,
7
)
=
"Sat"
,
"WeekDayName(1, true, 7) = "
&
WeekDayName
(
1
,
true
,
7
))
Call
ok
(
WeekDayName
(
1
,
true
,
7.1
)
=
"Sat"
,
"WeekDayName(1, true, 7.1) = "
&
WeekDayName
(
1
,
true
,
7.1
))
Call
ok
(
MonthName
(
1
)
=
"January"
,
"MonthName(1) = "
&
MonthName
(
1
))
Call
ok
(
MonthName
(
12
)
=
"December"
,
"MonthName(12) = "
&
MonthName
(
12
))
Call
ok
(
MonthName
(
1
,
0
)
=
"January"
,
"MonthName(1, 0) = "
&
MonthName
(
1
,
0
))
Call
ok
(
MonthName
(
12
,
false
)
=
"December"
,
"MonthName(12, false) = "
&
MonthName
(
12
,
false
))
Call
ok
(
MonthName
(
1
,
10
)
=
"Jan"
,
"MonthName(1, 10) = "
&
MonthName
(
1
,
10
))
Call
ok
(
MonthName
(
12
,
true
)
=
"Dec"
,
"MonthName(12, true) = "
&
MonthName
(
12
,
true
))
end
if
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