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
e22e480f
Commit
e22e480f
authored
Jul 24, 2008
by
Reece Dunn
Committed by
Alexandre Julliard
Jul 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix the SafeArrayGetVartype tests on Vista and use that behaviour.
parent
f46a42d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
safearray.c
dlls/oleaut32/safearray.c
+2
-0
safearray.c
dlls/oleaut32/tests/safearray.c
+4
-12
No files found.
dlls/oleaut32/safearray.c
View file @
e22e480f
...
...
@@ -1500,6 +1500,8 @@ HRESULT WINAPI SafeArrayGetVartype(SAFEARRAY* psa, VARTYPE* pvt)
if
(
psa
->
fFeatures
&
FADF_RECORD
)
*
pvt
=
VT_RECORD
;
else
if
((
psa
->
fFeatures
&
(
FADF_HAVEIID
|
FADF_DISPATCH
))
==
(
FADF_HAVEIID
|
FADF_DISPATCH
))
*
pvt
=
VT_DISPATCH
;
else
if
(
psa
->
fFeatures
&
FADF_HAVEIID
)
*
pvt
=
VT_UNKNOWN
;
else
if
(
psa
->
fFeatures
&
FADF_HAVEVARTYPE
)
...
...
dlls/oleaut32/tests/safearray.c
View file @
e22e480f
...
...
@@ -490,12 +490,8 @@ static void test_safearray(void)
{
hres
=
pSafeArrayGetVartype
(
a
,
&
vt
);
ok
(
hres
==
S_OK
,
"SAGVT of arra y with vt %d failed with %x
\n
"
,
vttypes
[
i
].
vt
,
hres
);
if
(
vttypes
[
i
].
vt
==
VT_DISPATCH
)
{
/* Special case. Checked against Windows. */
ok
(
vt
==
VT_UNKNOWN
,
"SAGVT of array with VT_DISPATCH returned not VT_UNKNOWN, but %d
\n
"
,
vt
);
}
else
{
ok
(
vt
==
vttypes
[
i
].
vt
,
"SAGVT of array with vt %d returned %d
\n
"
,
vttypes
[
i
].
vt
,
vt
);
}
/* Windows prior to Vista returns VT_UNKNOWN instead of VT_DISPATCH */
ok
(
broken
(
vt
==
VT_UNKNOWN
)
||
vt
==
vttypes
[
i
].
vt
,
"SAGVT of array with vt %d returned %d
\n
"
,
vttypes
[
i
].
vt
,
vt
);
}
hres
=
SafeArrayCopy
(
a
,
&
c
);
...
...
@@ -509,12 +505,8 @@ static void test_safearray(void)
if
(
pSafeArrayGetVartype
)
{
hres
=
pSafeArrayGetVartype
(
c
,
&
vt
);
ok
(
hres
==
S_OK
,
"SAGVT of array with vt %d failed with %x
\n
"
,
vttypes
[
i
].
vt
,
hres
);
if
(
vttypes
[
i
].
vt
==
VT_DISPATCH
)
{
/* Special case. Checked against Windows. */
ok
(
vt
==
VT_UNKNOWN
,
"SAGVT of array with VT_DISPATCH returned not VT_UNKNOWN, but %d
\n
"
,
vt
);
}
else
{
ok
(
vt
==
vttypes
[
i
].
vt
,
"SAGVT of array with vt %d returned %d
\n
"
,
vttypes
[
i
].
vt
,
vt
);
}
/* Windows prior to Vista returns VT_UNKNOWN instead of VT_DISPATCH */
ok
(
broken
(
vt
==
VT_UNKNOWN
)
||
vt
==
vttypes
[
i
].
vt
,
"SAGVT of array with vt %d returned %d
\n
"
,
vttypes
[
i
].
vt
,
vt
);
}
if
(
pSafeArrayCopyData
)
{
...
...
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