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
a5d7c2fb
Commit
a5d7c2fb
authored
Feb 25, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Feb 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleview: Report default values.
parent
0e28140f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
typelib.c
programs/oleview/typelib.c
+26
-3
No files found.
programs/oleview/typelib.c
View file @
a5d7c2fb
...
...
@@ -87,10 +87,10 @@ static const WCHAR wszPARAMFLAG_FOUT[] = { 'o','u','t','\0' };
static
const
WCHAR
wszPARAMFLAG_FLCID
[]
=
{
'c'
,
'i'
,
'd'
,
'\0'
};
static
const
WCHAR
wszPARAMFLAG_FRETVAL
[]
=
{
'r'
,
'e'
,
't'
,
'v'
,
'a'
,
'l'
,
'\0'
};
static
const
WCHAR
wszPARAMFLAG_FOPT
[]
=
{
'o'
,
'p'
,
't'
,
'\0'
};
static
const
WCHAR
wszPARAMFLAG_FHASDEFAULT
[]
=
{
'h'
,
'a'
,
's'
,
'd'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
'\0'
};
static
const
WCHAR
wszPARAMFLAG_FHASCUSTDATA
[]
=
{
'h'
,
'a'
,
's'
,
'c'
,
'u'
,
's'
,
't'
,
'd'
,
'a'
,
't'
,
'a'
,
'\0'
};
static
const
WCHAR
wszDefaultValue
[]
=
{
'd'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
'v'
,
'a'
,
'l'
,
'u'
,
'e'
,
'\0'
};
static
const
WCHAR
wszReadOnly
[]
=
{
'r'
,
'e'
,
'a'
,
'd'
,
'o'
,
'n'
,
'l'
,
'y'
,
'\0'
};
...
...
@@ -559,9 +559,32 @@ int EnumFuncs(ITypeInfo *pTypeInfo, int cFuncs, HTREEITEM hParent)
ENUM_PARAM_FLAG
(
PARAMFLAG_FLCID
);
ENUM_PARAM_FLAG
(
PARAMFLAG_FRETVAL
);
ENUM_PARAM_FLAG
(
PARAMFLAG_FOPT
);
ENUM_PARAM_FLAG
(
PARAMFLAG_FHASDEFAULT
);
ENUM_PARAM_FLAG
(
PARAMFLAG_FHASCUSTDATA
);
if
(
U
(
pFuncDesc
->
lprgelemdescParam
[
j
]).
paramdesc
.
wParamFlags
&
PARAMFLAG_FHASDEFAULT
)
{
VARIANT
var
,
*
param
=&
U
(
pFuncDesc
->
lprgelemdescParam
[
j
]).
paramdesc
.
pparamdescex
->
varDefaultValue
;
VariantInit
(
&
var
);
if
(
bFirst
)
AddToTLDataStrW
(
tld
,
wszOpenBrackets1
);
else
{
AddToTLDataStrW
(
tld
,
wszComa
);
AddToTLDataStrW
(
tld
,
wszSpace
);
}
bFirst
=
FALSE
;
AddToTLDataStrW
(
tld
,
wszDefaultValue
);
AddToTLDataStrW
(
tld
,
wszOpenBrackets2
);
if
(
V_VT
(
param
)
==
VT_BSTR
)
{
AddToTLDataStrW
(
tld
,
wszInvertedComa
);
AddToTLDataStrW
(
tld
,
V_BSTR
(
&
var
));
AddToTLDataStrW
(
tld
,
wszInvertedComa
);
}
else
if
(
VariantChangeType
(
&
var
,
param
,
0
,
VT_BSTR
)
==
S_OK
)
AddToTLDataStrW
(
tld
,
V_BSTR
(
&
var
));
AddToTLDataStrW
(
tld
,
wszCloseBrackets2
);
}
if
(
!
bFirst
)
{
AddToTLDataStrW
(
tld
,
wszCloseBrackets1
);
...
...
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