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
789f295e
Commit
789f295e
authored
Oct 17, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Allow specifying simple builtin constants without proper getter.
parent
d6d187c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
49 deletions
+13
-49
global.c
dlls/vbscript/global.c
+7
-49
vbdisp.c
dlls/vbscript/vbdisp.c
+6
-0
No files found.
dlls/vbscript/global.c
View file @
789f295e
...
...
@@ -1560,48 +1560,6 @@ static HRESULT Global_vbUseSystemDayOfWeek(vbdisp_t *This, VARIANT *arg, unsigne
return
E_NOTIMPL
;
}
static
HRESULT
Global_vbSunday
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
TRACE
(
"
\n
"
);
return
return_short
(
res
,
1
);
}
static
HRESULT
Global_vbMonday
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
TRACE
(
"
\n
"
);
return
return_short
(
res
,
2
);
}
static
HRESULT
Global_vbTuesday
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
TRACE
(
"
\n
"
);
return
return_short
(
res
,
3
);
}
static
HRESULT
Global_vbWednesday
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
TRACE
(
"
\n
"
);
return
return_short
(
res
,
4
);
}
static
HRESULT
Global_vbThursday
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
TRACE
(
"
\n
"
);
return
return_short
(
res
,
5
);
}
static
HRESULT
Global_vbFriday
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
TRACE
(
"
\n
"
);
return
return_short
(
res
,
6
);
}
static
HRESULT
Global_vbSaturday
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
TRACE
(
"
\n
"
);
return
return_short
(
res
,
7
);
}
static
HRESULT
Global_vbFirstJan1
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
...
...
@@ -2061,13 +2019,13 @@ static HRESULT Global_vbMsgBoxRtlReading(vbdisp_t *This, VARIANT *arg, unsigned
static
const
builtin_prop_t
global_props
[]
=
{
{
DISPID_GLOBAL_VBUSESYSTEM
,
Global_vbUseSystem
,
BP_GET
},
{
DISPID_GLOBAL_USESYSTEMDAYOFWEEK
,
Global_vbUseSystemDayOfWeek
,
BP_GET
},
{
DISPID_GLOBAL_VBSUNDAY
,
Global_vbSunday
,
BP_GET
},
{
DISPID_GLOBAL_VBMONDAY
,
Global_vbMonday
,
BP_GET
},
{
DISPID_GLOBAL_VBTUESDAY
,
Global_vbTuesday
,
BP_GET
},
{
DISPID_GLOBAL_VBWEDNESDAY
,
Global_vbWednesday
,
BP_GET
},
{
DISPID_GLOBAL_VBTHURSDAY
,
Global_vbThursday
,
BP_GET
},
{
DISPID_GLOBAL_VBFRIDAY
,
Global_vbFriday
,
BP_GET
},
{
DISPID_GLOBAL_VBSATURDAY
,
Global_vbSaturday
,
BP_GET
},
{
DISPID_GLOBAL_VBSUNDAY
,
NULL
,
BP_GET
,
1
},
{
DISPID_GLOBAL_VBMONDAY
,
NULL
,
BP_GET
,
2
},
{
DISPID_GLOBAL_VBTUESDAY
,
NULL
,
BP_GET
,
3
},
{
DISPID_GLOBAL_VBWEDNESDAY
,
NULL
,
BP_GET
,
4
},
{
DISPID_GLOBAL_VBTHURSDAY
,
NULL
,
BP_GET
,
5
},
{
DISPID_GLOBAL_VBFRIDAY
,
NULL
,
BP_GET
,
6
},
{
DISPID_GLOBAL_VBSATURDAY
,
NULL
,
BP_GET
,
7
},
{
DISPID_GLOBAL_VBFIRSTJAN1
,
Global_vbFirstJan1
,
BP_GET
},
{
DISPID_GLOBAL_VBFIRSTFOURDAYS
,
Global_vbFirstFourDays
,
BP_GET
},
{
DISPID_GLOBAL_VBFIRSTFULLWEEK
,
Global_vbFirstFullWeek
,
BP_GET
},
...
...
dlls/vbscript/vbdisp.c
View file @
789f295e
...
...
@@ -149,6 +149,12 @@ static HRESULT invoke_builtin(vbdisp_t *This, const builtin_prop_t *prop, WORD f
}
break
;
case
DISPATCH_PROPERTYGET
|
DISPATCH_METHOD
:
if
(
!
prop
->
proc
&&
prop
->
flags
==
BP_GET
)
{
assert
((
INT16
)
prop
->
min_args
==
prop
->
min_args
);
V_VT
(
res
)
=
VT_I2
;
V_I2
(
res
)
=
prop
->
min_args
;
return
S_OK
;
}
break
;
case
DISPATCH_METHOD
:
if
(
prop
->
flags
&
(
BP_GET
|
BP_GETPUT
))
{
...
...
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