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
2c2527e3
Commit
2c2527e3
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_Name.
parent
36b0323c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
host.c
programs/wscript/host.c
+7
-2
run.js
programs/wscript/tests/run.js
+1
-0
No files found.
programs/wscript/host.c
View file @
2c2527e3
...
...
@@ -29,6 +29,8 @@
#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
};
WINE_DEFAULT_DEBUG_CHANNEL
(
wscript
);
static
HRESULT
WINAPI
Host_QueryInterface
(
IHost
*
iface
,
REFIID
riid
,
void
**
ppv
)
...
...
@@ -94,8 +96,11 @@ static HRESULT WINAPI Host_Invoke(IHost *iface, DISPID dispIdMember, REFIID riid
static
HRESULT
WINAPI
Host_get_Name
(
IHost
*
iface
,
BSTR
*
out_Name
)
{
WINE_FIXME
(
"(%p)
\n
"
,
out_Name
);
return
E_NOTIMPL
;
WINE_TRACE
(
"(%p)
\n
"
,
out_Name
);
if
(
!
(
*
out_Name
=
SysAllocString
(
wshNameW
)))
return
E_OUTOFMEMORY
;
return
S_OK
;
}
static
HRESULT
WINAPI
Host_get_Application
(
IHost
*
iface
,
IDispatch
**
out_Dispatch
)
...
...
programs/wscript/tests/run.js
View file @
2c2527e3
...
...
@@ -25,5 +25,6 @@ function ok(expr, msg) {
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
);
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