Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
26771be4
Commit
26771be4
authored
Jan 31, 2005
by
Rein Klazes
Committed by
Alexandre Julliard
Jan 31, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SafeArrayDestroy() returns success when called with a NULL
pointer. Added to the test cases.
parent
e495e7e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
safearray.c
dlls/oleaut32/safearray.c
+1
-1
safearray.c
dlls/oleaut32/tests/safearray.c
+3
-0
No files found.
dlls/oleaut32/safearray.c
View file @
26771be4
...
...
@@ -1337,7 +1337,7 @@ HRESULT WINAPI SafeArrayDestroy(SAFEARRAY *psa)
TRACE
(
"(%p)
\n
"
,
psa
);
if
(
!
psa
)
return
E_INVALIDARG
;
return
S_OK
;
if
(
psa
->
cLocks
>
0
)
return
DISP_E_ARRAYISLOCKED
;
...
...
dlls/oleaut32/tests/safearray.c
View file @
26771be4
...
...
@@ -258,6 +258,9 @@ static void test_safearray(void)
LONG
l
;
unsigned
char
*
ptr1
,
*
ptr2
;
hres
=
SafeArrayDestroy
(
NULL
);
ok
(
hres
==
S_OK
,
"SafeArrayDestroy( NULL) returned 0x%lx
\n
"
,
hres
);
bound
.
cElements
=
1
;
bound
.
lLbound
=
0
;
a
=
SafeArrayCreate
(
-
1
,
1
,
&
bound
);
...
...
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