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
8498a9d1
Commit
8498a9d1
authored
Mar 31, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorerframe: Use CRT memory allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
68684365
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
nstc.c
dlls/explorerframe/nstc.c
+7
-8
taskbarlist.c
dlls/explorerframe/taskbarlist.c
+2
-3
No files found.
dlls/explorerframe/nstc.c
View file @
8498a9d1
...
...
@@ -33,7 +33,6 @@
#include "wine/list.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "explorerframe_main.h"
...
...
@@ -852,7 +851,7 @@ static ULONG WINAPI NSTC2_fnRelease(INameSpaceTreeControl2* iface)
if
(
!
ref
)
{
TRACE
(
"Freeing.
\n
"
);
heap_
free
(
This
);
free
(
This
);
EFRAME_UnlockModule
();
}
...
...
@@ -989,7 +988,7 @@ static HRESULT WINAPI NSTC2_fnInsertRoot(INameSpaceTreeControl2* iface,
TRACE
(
"%p, %d, %p, %lx, %lx, %p
\n
"
,
This
,
iIndex
,
psiRoot
,
grfEnumFlags
,
grfRootStyle
,
pif
);
new_root
=
heap_
alloc
(
sizeof
(
*
new_root
));
new_root
=
m
alloc
(
sizeof
(
*
new_root
));
if
(
!
new_root
)
return
E_OUTOFMEMORY
;
...
...
@@ -1013,7 +1012,7 @@ static HRESULT WINAPI NSTC2_fnInsertRoot(INameSpaceTreeControl2* iface,
if
(
!
new_root
->
htreeitem
)
{
WARN
(
"Failed to add the root.
\n
"
);
heap_
free
(
new_root
);
free
(
new_root
);
return
E_FAIL
;
}
...
...
@@ -1081,7 +1080,7 @@ static HRESULT WINAPI NSTC2_fnRemoveRoot(INameSpaceTreeControl2* iface,
events_OnItemDeleted
(
This
,
root
->
psi
,
TRUE
);
SendMessageW
(
This
->
hwnd_tv
,
TVM_DELETEITEM
,
0
,
(
LPARAM
)
root
->
htreeitem
);
list_remove
(
&
root
->
entry
);
heap_
free
(
root
);
free
(
root
);
return
S_OK
;
}
else
...
...
@@ -1123,7 +1122,7 @@ static HRESULT WINAPI NSTC2_fnGetRootItems(INameSpaceTreeControl2* iface,
if
(
!
count
)
return
E_INVALIDARG
;
array
=
heap_
alloc
(
sizeof
(
LPITEMIDLIST
)
*
count
);
array
=
m
alloc
(
sizeof
(
LPITEMIDLIST
)
*
count
);
i
=
0
;
LIST_FOR_EACH_ENTRY
(
root
,
&
This
->
roots
,
nstc_root
,
entry
)
...
...
@@ -1137,7 +1136,7 @@ static HRESULT WINAPI NSTC2_fnGetRootItems(INameSpaceTreeControl2* iface,
for
(
i
=
0
;
i
<
count
;
i
++
)
ILFree
(
array
[
i
]);
heap_
free
(
array
);
free
(
array
);
return
hr
;
}
...
...
@@ -1598,7 +1597,7 @@ HRESULT NamespaceTreeControl_Constructor(IUnknown *pUnkOuter, REFIID riid, void
EFRAME_LockModule
();
nstc
=
heap_alloc_zero
(
sizeof
(
*
nstc
));
nstc
=
calloc
(
1
,
sizeof
(
*
nstc
));
if
(
!
nstc
)
return
E_OUTOFMEMORY
;
...
...
dlls/explorerframe/taskbarlist.c
View file @
8498a9d1
...
...
@@ -21,7 +21,6 @@
#include "explorerframe_main.h"
#include "wine/debug.h"
#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
explorerframe
);
...
...
@@ -81,7 +80,7 @@ static ULONG STDMETHODCALLTYPE taskbar_list_Release(ITaskbarList4 *iface)
if
(
!
refcount
)
{
heap_
free
(
This
);
free
(
This
);
EFRAME_UnlockModule
();
}
...
...
@@ -309,7 +308,7 @@ HRESULT TaskbarList_Constructor(IUnknown *outer, REFIID riid, void **taskbar_lis
return
CLASS_E_NOAGGREGATION
;
}
object
=
heap_
alloc
(
sizeof
(
*
object
));
object
=
m
alloc
(
sizeof
(
*
object
));
if
(
!
object
)
{
ERR
(
"Failed to allocate taskbar list object memory
\n
"
);
...
...
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