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
3815eca2
Commit
3815eca2
authored
Jan 13, 2016
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Set safearray pointer to NULL in LPSAFEARRAY_UserFree.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6183f4fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
usrmarshal.c
dlls/oleaut32/tests/usrmarshal.c
+1
-0
usrmarshal.c
dlls/oleaut32/usrmarshal.c
+1
-0
No files found.
dlls/oleaut32/tests/usrmarshal.c
View file @
3815eca2
...
...
@@ -277,6 +277,7 @@ static void test_marshal_LPSAFEARRAY(void)
ok
(
lpsa2
->
cLocks
==
0
,
"got lock count %u, expected 0
\n
"
,
lpsa2
->
cLocks
);
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
NULL
,
0
,
MSHCTX_DIFFERENTMACHINE
);
LPSAFEARRAY_UserFree
(
&
umcb
.
Flags
,
&
lpsa2
);
ok
(
!
lpsa2
,
"lpsa2 was not set to 0 by LPSAFEARRAY_UserFree
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
lpsa
->
cLocks
=
0
;
hr
=
SafeArrayDestroy
(
lpsa
);
...
...
dlls/oleaut32/usrmarshal.c
View file @
3815eca2
...
...
@@ -1091,6 +1091,7 @@ void WINAPI LPSAFEARRAY_UserFree(ULONG *pFlags, LPSAFEARRAY *ppsa)
TRACE
(
"("
);
dump_user_flags
(
pFlags
);
TRACE
(
", &%p
\n
"
,
*
ppsa
);
SafeArrayDestroy
(
*
ppsa
);
*
ppsa
=
NULL
;
}
...
...
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