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
8e4b95e4
Commit
8e4b95e4
authored
May 27, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/antimoniker: Use CRT allocation functions.
parent
34b990fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
antimoniker.c
dlls/ole32/antimoniker.c
+2
-6
No files found.
dlls/ole32/antimoniker.c
View file @
8e4b95e4
...
...
@@ -18,7 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include <stdarg.h>
#include <string.h>
...
...
@@ -27,10 +26,8 @@
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "objbase.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "moniker.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
...
...
@@ -140,7 +137,7 @@ static ULONG WINAPI AntiMonikerImpl_Release(IMoniker *iface)
if
(
!
refcount
)
{
if
(
moniker
->
pMarshal
)
IUnknown_Release
(
moniker
->
pMarshal
);
heap_
free
(
moniker
);
free
(
moniker
);
}
return
refcount
;
...
...
@@ -616,8 +613,7 @@ HRESULT create_anti_moniker(DWORD order, IMoniker **ret)
{
AntiMonikerImpl
*
moniker
;
moniker
=
heap_alloc_zero
(
sizeof
(
*
moniker
));
if
(
!
moniker
)
if
(
!
(
moniker
=
calloc
(
1
,
sizeof
(
*
moniker
))))
return
E_OUTOFMEMORY
;
moniker
->
IMoniker_iface
.
lpVtbl
=
&
VT_AntiMonikerImpl
;
...
...
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