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
e81b63fc
Commit
e81b63fc
authored
Jul 08, 2000
by
Francois Jacques
Committed by
Alexandre Julliard
Jul 08, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented SafeArrayGetVarType.
Added a VT_RECORD variant type definition.
parent
00e7c334
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
0 deletions
+44
-0
oleaut32.spec
dlls/oleaut32/oleaut32.spec
+1
-0
safearray.c
dlls/oleaut32/safearray.c
+42
-0
obj_oleaut.h
include/wine/obj_oleaut.h
+1
-0
No files found.
dlls/oleaut32/oleaut32.spec
View file @
e81b63fc
...
...
@@ -73,6 +73,7 @@ import ole32.dll
74 stdcall VarR4FromStr(wstr long long ptr) VarR4FromStr
75 stub VarR4FromDisp
76 stdcall VarR4FromBool(long ptr) VarR4FromBool
77 stdcall SafeArrayGetVarType(ptr ptr) SafeArrayGetVarType
78 stdcall VarR8FromUI1(long ptr) VarR8FromUI1
79 stdcall VarR8FromI2(long ptr) VarR8FromI2
80 stdcall VarR8FromI4(long ptr) VarR8FromI4
...
...
dlls/oleaut32/safearray.c
View file @
e81b63fc
...
...
@@ -1036,3 +1036,45 @@ static HRESULT duplicateData(
return
S_OK
;
}
/************************************************************************
* SafeArrayGetVarType
* Returns the VARTYPE stored in the given safearray
*/
HRESULT
WINAPI
SafeArrayGetVarType
(
SAFEARRAY
*
psa
,
VARTYPE
*
pvt
)
{
HRESULT
hr
=
E_INVALIDARG
;
VARTYPE
vt
=
VT_EMPTY
;
/* const short VARTYPE_OFFSET = -4; */
if
(
psa
->
fFeatures
&
FADF_HAVEVARTYPE
)
{
/* VT tag @ negative offset 4 in the array descriptor */
FIXME
(
"Returning VT_BSTR instead of VT_..."
);
vt
=
VT_BSTR
;
}
else
if
(
psa
->
fFeatures
&
FADF_RECORD
)
{
vt
=
VT_RECORD
;
}
else
if
(
psa
->
fFeatures
&
FADF_DISPATCH
)
{
vt
=
VT_DISPATCH
;
}
else
if
(
psa
->
fFeatures
&
FADF_UNKNOWN
)
{
vt
=
VT_UNKNOWN
;
}
if
(
vt
!=
VT_EMPTY
)
{
*
pvt
=
vt
;
hr
=
S_OK
;
}
TRACE
(
"HRESULT = %08lx"
,
hr
);
return
hr
;
}
include/wine/obj_oleaut.h
View file @
e81b63fc
...
...
@@ -467,6 +467,7 @@ enum VARENUM {
VT_USERDEFINED
=
29
,
VT_LPSTR
=
30
,
VT_LPWSTR
=
31
,
VT_RECORD
=
36
,
VT_FILETIME
=
64
,
VT_BLOB
=
65
,
VT_STREAM
=
66
,
...
...
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