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
00057128
Commit
00057128
authored
Nov 30, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Implement TypeName(Nothing).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
abbf0524
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
global.c
dlls/vbscript/global.c
+2
-0
api.vbs
dlls/vbscript/tests/api.vbs
+3
-1
No files found.
dlls/vbscript/global.c
View file @
00057128
...
...
@@ -2505,6 +2505,8 @@ static HRESULT Global_TypeName(BuiltinDisp *This, VARIANT *arg, unsigned args_cn
case
VT_NULL
:
return
return_string
(
res
,
L"Null"
);
case
VT_DISPATCH
:
if
(
!
V_DISPATCH
(
arg
))
return
return_string
(
res
,
L"Nothing"
);
if
(
SUCCEEDED
(
IDispatch_GetTypeInfo
(
V_DISPATCH
(
arg
),
0
,
GetUserDefaultLCID
(),
&
typeinfo
)))
{
hres
=
ITypeInfo_GetDocumentation
(
typeinfo
,
MEMBERID_NIL
,
&
name
,
NULL
,
NULL
,
NULL
);
...
...
dlls/vbscript/tests/api.vbs
View file @
00057128
...
...
@@ -1566,7 +1566,9 @@ MyObject.myval = 0
Call
ok
(
CSng
(
MyObject
)
=
0
,
"CSng(MyObject) = "
&
CSng
(
MyObject
))
Call
ok
(
getVT
(
CSng
(
MyObject
))
=
"VT_R4"
,
"getVT(CSng(MyObject)) = "
&
getVT
(
CSng
(
MyObject
)))
Call
ok
(
TypeName
(
Empty
)
=
"Empty"
,
"TypeName(MyEmpty) = "
&
TypeName
(
Empty
))
Call
ok
(
TypeName
(
Nothing
)
=
"Nothing"
,
"TypeName(Nothing) = "
&
TypeName
(
Nothing
))
Call
ok
(
getVT
(
TypeName
(
Nothing
))
=
"VT_BSTR"
,
"getVT(TypeName(Nothing)) = "
&
getVT
(
TypeName
(
Nothing
)))
Call
ok
(
TypeName
(
Empty
)
=
"Empty"
,
"TypeName(Empty) = "
&
TypeName
(
Empty
))
Call
ok
(
getVT
(
TypeName
(
Empty
))
=
"VT_BSTR"
,
"getVT(TypeName(Empty)) = "
&
getVT
(
TypeName
(
Empty
)))
Call
ok
(
TypeName
(
Null
)
=
"Null"
,
"TypeName(Null) = "
&
TypeName
(
Null
))
Call
ok
(
getVT
(
TypeName
(
Null
))
=
"VT_BSTR"
,
"getVT(TypeName(Null)) = "
&
getVT
(
TypeName
(
Null
)))
...
...
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