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
41eedc6d
Commit
41eedc6d
authored
Jun 28, 2011
by
Michał Ziętek
Committed by
Alexandre Julliard
Jun 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wscript: Implemented Host_get_Version.
parent
2c2527e3
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 @
41eedc6d
...
...
@@ -30,6 +30,7 @@
#include <wine/debug.h>
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'
};
WINE_DEFAULT_DEBUG_CHANNEL
(
wscript
);
...
...
@@ -159,8 +160,11 @@ static HRESULT WINAPI Host_get_Arguments(IHost *iface, IArguments2 **out_Argumen
static
HRESULT
WINAPI
Host_get_Version
(
IHost
*
iface
,
BSTR
*
out_Version
)
{
WINE_FIXME
(
"(%p)
\n
"
,
out_Version
);
return
E_NOTIMPL
;
WINE_TRACE
(
"(%p)
\n
"
,
out_Version
);
if
(
!
(
*
out_Version
=
SysAllocString
(
wshVersionW
)))
return
E_OUTOFMEMORY
;
return
S_OK
;
}
static
HRESULT
WINAPI
Host_get_BuildVersion
(
IHost
*
iface
,
int
*
out_Build
)
...
...
programs/wscript/tests/run.js
View file @
41eedc6d
...
...
@@ -26,5 +26,6 @@ ok(typeof(WScript) === "object", "typeof(WScript) = " + typeof(WScript));
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
));
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