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
25b74d2c
Commit
25b74d2c
authored
Aug 24, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Aug 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More safe array tests.
parent
99c83d4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
safearray.c
dlls/oleaut32/tests/safearray.c
+17
-0
No files found.
dlls/oleaut32/tests/safearray.c
View file @
25b74d2c
...
...
@@ -273,6 +273,11 @@ static void test_safearray(void)
hres
=
SafeArrayGetUBound
(
a
,
1
,
&
l
);
ok
(
hres
==
S_OK
,
"SAGUB of 0 size dimensioned array failed with %lx
\n
"
,
hres
);
ok
(
l
==
41
,
"SAGUB of 0 size dimensioned array failed to return 41, but returned %ld
\n
"
,
l
);
hres
=
SafeArrayAccessData
(
a
,
&
data
);
ok
(
hres
==
S_OK
,
"SafeArrayAccessData of 0 size dimensioned array failed with %lx
\n
"
,
hres
);
SafeArrayUnaccessData
(
a
);
bound
.
cElements
=
2
;
hres
=
SafeArrayRedim
(
a
,
&
bound
);
ok
(
hres
==
S_OK
,
"SAR of a 0 elements dimension failed with hres %lx
\n
"
,
hres
);
...
...
@@ -610,6 +615,18 @@ static void test_SafeArrayAllocDestroyDescriptor(void)
hres
=
pSafeArrayAllocDescriptorEx
(
VT_UI1
,
1
,
NULL
);
ok
(
hres
==
E_POINTER
,
"NULL parm gave hres 0x%lx
\n
"
,
hres
);
hres
=
pSafeArrayAllocDescriptorEx
(
-
1
,
1
,
&
sa
);
ok
(
hres
==
S_OK
,
"VT = -1 gave hres 0x%lx
\n
"
,
hres
);
sa
->
rgsabound
[
0
].
cElements
=
0
;
sa
->
rgsabound
[
0
].
lLbound
=
1
;
hres
=
SafeArrayAllocData
(
sa
);
todo_wine
{
ok
(
hres
==
S_OK
,
"SafeArrayAllocData gave hres 0x%lx
\n
"
,
hres
);
}
}
static
void
test_SafeArrayCreateLockDestroy
(
void
)
...
...
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