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
e244222c
Commit
e244222c
authored
Jul 04, 2011
by
Michał Ziętek
Committed by
Alexandre Julliard
Jul 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wscript: Implemented Host_get_BuildVersion.
parent
82da77c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
host.c
programs/wscript/host.c
+6
-2
run.js
programs/wscript/tests/run.js
+1
-0
No files found.
programs/wscript/host.c
View file @
e244222c
...
...
@@ -29,6 +29,8 @@
#include <wine/debug.h>
#define BUILDVERSION 16535
static
const
WCHAR
wshNameW
[]
=
{
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
' '
,
'S'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
' '
,
'H'
,
'o'
,
's'
,
't'
,
0
};
static
const
WCHAR
wshVersionW
[]
=
{
'5'
,
'.'
,
'8'
};
...
...
@@ -169,8 +171,10 @@ static HRESULT WINAPI Host_get_Version(IHost *iface, BSTR *out_Version)
static
HRESULT
WINAPI
Host_get_BuildVersion
(
IHost
*
iface
,
int
*
out_Build
)
{
WINE_FIXME
(
"(%p)
\n
"
,
out_Build
);
return
E_NOTIMPL
;
WINE_TRACE
(
"(%p)
\n
"
,
out_Build
);
*
out_Build
=
BUILDVERSION
;
return
S_OK
;
}
static
HRESULT
WINAPI
Host_get_Timeout
(
IHost
*
iface
,
LONG
*
out_Timeout
)
...
...
programs/wscript/tests/run.js
View file @
e244222c
...
...
@@ -27,5 +27,6 @@ ok(typeof(WSH) === "object", "typeof(WSH) = " + typeof(WSH));
ok
(
WScript
===
WSH
,
"WScript !== WSH"
);
ok
(
WScript
.
Name
===
"Windows Script Host"
,
"WScript.Name = "
+
WScript
.
Name
);
ok
(
typeof
(
WScript
.
Version
)
===
"string"
,
"typeof(WScript.Version) = "
+
typeof
(
WScript
.
Version
));
ok
(
typeof
(
WScript
.
BuildVersion
)
===
"number"
,
"typeof(WScript.BuldVersion) = "
+
typeof
(
WScript
.
BuldVersion
));
winetest
.
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