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
894f1cde
Commit
894f1cde
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/pointermoniker: Use CRT allocation functions.
parent
a9d3d435
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
pointermoniker.c
dlls/ole32/pointermoniker.c
+4
-7
No files found.
dlls/ole32/pointermoniker.c
View file @
894f1cde
...
...
@@ -32,7 +32,6 @@
#include "objbase.h"
#include "oleidl.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "moniker.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
...
...
@@ -110,7 +109,7 @@ static ULONG WINAPI PointerMonikerImpl_Release(IMoniker *iface)
if
(
!
refcount
)
{
if
(
moniker
->
pObject
)
IUnknown_Release
(
moniker
->
pObject
);
heap_
free
(
moniker
);
free
(
moniker
);
}
return
refcount
;
...
...
@@ -600,8 +599,7 @@ HRESULT WINAPI CreatePointerMoniker(IUnknown *object, IMoniker **ret)
if
(
!
ret
)
return
E_INVALIDARG
;
moniker
=
heap_alloc
(
sizeof
(
*
moniker
));
if
(
!
moniker
)
if
(
!
(
moniker
=
calloc
(
1
,
sizeof
(
*
moniker
))))
{
*
ret
=
NULL
;
return
E_OUTOFMEMORY
;
...
...
@@ -714,7 +712,7 @@ static ULONG WINAPI ObjrefMonikerImpl_Release(IMoniker *iface)
if
(
!
refcount
)
{
if
(
moniker
->
pObject
)
IUnknown_Release
(
moniker
->
pObject
);
heap_
free
(
moniker
);
free
(
moniker
);
}
return
refcount
;
...
...
@@ -1017,8 +1015,7 @@ HRESULT WINAPI CreateObjrefMoniker(IUnknown *obj, IMoniker **ret)
if
(
!
ret
)
return
E_INVALIDARG
;
moniker
=
heap_alloc
(
sizeof
(
*
moniker
));
if
(
!
moniker
)
if
(
!
(
moniker
=
calloc
(
1
,
sizeof
(
*
moniker
))))
{
*
ret
=
NULL
;
return
E_OUTOFMEMORY
;
...
...
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