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
9c92e96c
Commit
9c92e96c
authored
Aug 09, 2014
by
Shuai Meng
Committed by
Alexandre Julliard
Aug 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Implemented ScriptEngineMajorVersion.
parent
f3f0972d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
global.c
dlls/vbscript/global.c
+10
-2
api.vbs
dlls/vbscript/tests/api.vbs
+2
-0
vbscript.h
dlls/vbscript/vbscript.h
+1
-0
No files found.
dlls/vbscript/global.c
View file @
9c92e96c
...
...
@@ -1672,8 +1672,16 @@ static HRESULT Global_ScriptEngine(vbdisp_t *This, VARIANT *arg, unsigned args_c
static
HRESULT
Global_ScriptEngineMajorVersion
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
TRACE
(
"%s
\n
"
,
debugstr_variant
(
arg
));
assert
(
args_cnt
==
0
);
if
(
res
)
{
V_VT
(
res
)
=
VT_I4
;
V_I4
(
res
)
=
VBSCRIPT_MAJOR_VERSION
;
}
return
S_OK
;
}
static
HRESULT
Global_ScriptEngineMinorVersion
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
...
...
dlls/vbscript/tests/api.vbs
View file @
9c92e96c
...
...
@@ -989,4 +989,6 @@ Call ok(getVT(ScriptEngine) = "VT_BSTR", "getVT(ScriptEngine) = " & getVT(Script
Call
ok
(
getVT
(
ScriptEngineBuildVersion
)
=
"VT_I4"
,
"getVT(ScriptEngineBuildVersion) = "
&
getVT
(
ScriptEngineBuildVersion
))
Call
ok
(
getVT
(
ScriptEngineMajorVersion
)
=
"VT_I4"
,
"getVT(ScriptEngineMajorVersion) = "
&
getVT
(
ScriptEngineMajorVersion
))
Call
reportSuccess
()
dlls/vbscript/vbscript.h
View file @
9c92e96c
...
...
@@ -463,3 +463,4 @@ static inline LPWSTR heap_strdupW(LPCWSTR str)
}
#define VBSCRIPT_BUILD_VERSION 16978
#define VBSCRIPT_MAJOR_VERSION 5
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