Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
98581459
Commit
98581459
authored
Feb 22, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added support for a few more constants.
parent
4f0743bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
71 deletions
+21
-71
global.c
dlls/vbscript/global.c
+10
-70
api.vbs
dlls/vbscript/tests/api.vbs
+10
-0
vbdisp.c
dlls/vbscript/vbdisp.c
+1
-1
No files found.
dlls/vbscript/global.c
View file @
98581459
...
...
@@ -1609,66 +1609,6 @@ static HRESULT Global_GetRef(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VA
return
E_NOTIMPL
;
}
static
HRESULT
Global_vbUseDefault
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
Global_vbBinaryCompare
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
Global_vbTextCompare
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
Global_vbDatabaseCompare
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
Global_vbGeneralDate
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
Global_vbLongDate
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
Global_vbShortDate
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
Global_vbLongTime
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
Global_vbShortTime
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
Global_vbObjectError
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
Global_vbBlack
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
...
...
@@ -1826,16 +1766,16 @@ static const builtin_prop_t global_props[] = {
{
DISPID_GLOBAL_VBARRAY
,
NULL
,
BP_GET
,
VT_ARRAY
},
{
DISPID_GLOBAL_VBTRUE
,
NULL
,
BP_GET
,
VARIANT_TRUE
},
{
DISPID_GLOBAL_VBFALSE
,
NULL
,
BP_GET
,
VARIANT_FALSE
},
{
DISPID_GLOBAL_VBUSEDEFAULT
,
Global_vbUseDefault
,
BP_GET
},
{
DISPID_GLOBAL_VBBINARYCOMPARE
,
Global_vbBinaryCompare
,
BP_GET
},
{
DISPID_GLOBAL_VBTEXTCOMPARE
,
Global_vbTextCompare
,
BP_GET
},
{
DISPID_GLOBAL_VBDATABASECOMPARE
,
Global_vbDatabaseCompare
,
BP_GET
},
{
DISPID_GLOBAL_VBGENERALDATE
,
Global_vbGeneralDate
,
BP_GET
},
{
DISPID_GLOBAL_VBLONGDATE
,
Global_vbLongDate
,
BP_GET
},
{
DISPID_GLOBAL_VBSHORTDATE
,
Global_vbShortDate
,
BP_GET
},
{
DISPID_GLOBAL_VBLONGTIME
,
Global_vbLongTime
,
BP_GET
},
{
DISPID_GLOBAL_VBSHORTTIME
,
Global_vbShortTime
,
BP_GET
},
{
DISPID_GLOBAL_VBOBJECTERROR
,
Global_vbObjectError
,
BP_GET
},
{
DISPID_GLOBAL_VBUSEDEFAULT
,
NULL
,
BP_GET
,
-
2
},
{
DISPID_GLOBAL_VBBINARYCOMPARE
,
NULL
,
BP_GET
,
0
},
{
DISPID_GLOBAL_VBTEXTCOMPARE
,
NULL
,
BP_GET
,
1
},
{
DISPID_GLOBAL_VBDATABASECOMPARE
,
NULL
,
BP_GET
,
2
},
{
DISPID_GLOBAL_VBGENERALDATE
,
NULL
,
BP_GET
,
0
},
{
DISPID_GLOBAL_VBLONGDATE
,
NULL
,
BP_GET
,
1
},
{
DISPID_GLOBAL_VBSHORTDATE
,
NULL
,
BP_GET
,
2
},
{
DISPID_GLOBAL_VBLONGTIME
,
NULL
,
BP_GET
,
3
},
{
DISPID_GLOBAL_VBSHORTTIME
,
NULL
,
BP_GET
,
4
},
{
DISPID_GLOBAL_VBOBJECTERROR
,
NULL
,
BP_GET
,
0x80040000
},
{
DISPID_GLOBAL_VBBLACK
,
Global_vbBlack
,
BP_GET
},
{
DISPID_GLOBAL_VBBLUE
,
Global_vbBlue
,
BP_GET
},
{
DISPID_GLOBAL_VBCYAN
,
Global_vbCyan
,
BP_GET
},
...
...
dlls/vbscript/tests/api.vbs
View file @
98581459
...
...
@@ -85,6 +85,16 @@ TestConstantI4 "vbMsgBoxHelpButton", vbMsgBoxHelpButton, 16384
TestConstantI4
"vbMsgBoxSetForeground"
,
vbMsgBoxSetForeground
,
65536
TestConstantI4
"vbMsgBoxRight"
,
vbMsgBoxRight
,
524288
TestConstantI4
"vbMsgBoxRtlReading"
,
vbMsgBoxRtlReading
,
1048576
TestConstant
"vbUseDefault"
,
vbUseDefault
,
-
2
TestConstant
"vbBinaryCompare"
,
vbBinaryCompare
,
0
TestConstant
"vbTextCompare"
,
vbTextCompare
,
1
TestConstant
"vbDatabaseCompare"
,
vbDatabaseCompare
,
2
TestConstant
"vbGeneralDate"
,
vbGeneralDate
,
0
TestConstant
"vbLongDate"
,
vbLongDate
,
1
TestConstant
"vbShortDate"
,
vbShortDate
,
2
TestConstant
"vbLongTime"
,
vbLongTime
,
3
TestConstant
"vbShortTime"
,
vbShortTime
,
4
TestConstantI4
"vbObjectError"
,
vbObjectError
,
&
h80040000&
Sub
TestCStr
(
arg
,
exval
)
dim
x
...
...
dlls/vbscript/vbdisp.c
View file @
98581459
...
...
@@ -151,7 +151,7 @@ static HRESULT invoke_builtin(vbdisp_t *This, const builtin_prop_t *prop, WORD f
case
DISPATCH_PROPERTYGET
|
DISPATCH_METHOD
:
if
(
!
prop
->
proc
&&
prop
->
flags
==
BP_GET
)
{
int
val
=
prop
->
min_args
;
if
(
val
<
0x4000
)
{
if
(
val
<
0x4000
&&
(
INT16
)
val
==
val
)
{
V_VT
(
res
)
=
VT_I2
;
V_I2
(
res
)
=
val
;
}
else
{
...
...
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