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
e0b9fbe5
Commit
e0b9fbe5
authored
Nov 21, 2022
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Use standard C functions for memory allocation in folder_collection.c.
parent
d2ad82c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
folder_collection.c
dlls/taskschd/folder_collection.c
+7
-7
No files found.
dlls/taskschd/folder_collection.c
View file @
e0b9fbe5
...
@@ -72,8 +72,8 @@ static ULONG WINAPI folders_Release(ITaskFolderCollection *iface)
...
@@ -72,8 +72,8 @@ static ULONG WINAPI folders_Release(ITaskFolderCollection *iface)
{
{
TRACE
(
"destroying %p
\n
"
,
iface
);
TRACE
(
"destroying %p
\n
"
,
iface
);
free_list
(
folders
->
list
,
folders
->
count
);
free_list
(
folders
->
list
,
folders
->
count
);
heap_
free
(
folders
->
path
);
free
(
folders
->
path
);
heap_
free
(
folders
);
free
(
folders
);
}
}
return
ref
;
return
ref
;
...
@@ -226,7 +226,7 @@ HRESULT TaskFolderCollection_create(const WCHAR *path, ITaskFolderCollection **o
...
@@ -226,7 +226,7 @@ HRESULT TaskFolderCollection_create(const WCHAR *path, ITaskFolderCollection **o
hr
=
SchRpcEnumFolders
(
path
,
0
,
&
start_index
,
0
,
&
count
,
&
list
);
hr
=
SchRpcEnumFolders
(
path
,
0
,
&
start_index
,
0
,
&
count
,
&
list
);
if
(
hr
!=
S_OK
)
return
hr
;
if
(
hr
!=
S_OK
)
return
hr
;
folders
=
heap_
alloc
(
sizeof
(
*
folders
));
folders
=
m
alloc
(
sizeof
(
*
folders
));
if
(
!
folders
)
if
(
!
folders
)
{
{
free_list
(
list
,
count
);
free_list
(
list
,
count
);
...
@@ -235,9 +235,9 @@ HRESULT TaskFolderCollection_create(const WCHAR *path, ITaskFolderCollection **o
...
@@ -235,9 +235,9 @@ HRESULT TaskFolderCollection_create(const WCHAR *path, ITaskFolderCollection **o
folders
->
ITaskFolderCollection_iface
.
lpVtbl
=
&
TaskFolderCollection_vtbl
;
folders
->
ITaskFolderCollection_iface
.
lpVtbl
=
&
TaskFolderCollection_vtbl
;
folders
->
ref
=
1
;
folders
->
ref
=
1
;
if
(
!
(
folders
->
path
=
heap_strdupW
(
path
)))
if
(
!
(
folders
->
path
=
wcsdup
(
path
)))
{
{
heap_
free
(
folders
);
free
(
folders
);
free_list
(
list
,
count
);
free_list
(
list
,
count
);
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
}
}
...
@@ -296,7 +296,7 @@ static ULONG WINAPI enumvar_Release(IEnumVARIANT *iface)
...
@@ -296,7 +296,7 @@ static ULONG WINAPI enumvar_Release(IEnumVARIANT *iface)
{
{
TRACE
(
"destroying %p
\n
"
,
iface
);
TRACE
(
"destroying %p
\n
"
,
iface
);
ITaskFolderCollection_Release
(
&
enumvar
->
folders
->
ITaskFolderCollection_iface
);
ITaskFolderCollection_Release
(
&
enumvar
->
folders
->
ITaskFolderCollection_iface
);
heap_
free
(
enumvar
);
free
(
enumvar
);
}
}
return
ref
;
return
ref
;
...
@@ -384,7 +384,7 @@ static HRESULT NewEnum_create(TaskFolderCollection *folders, IUnknown **obj)
...
@@ -384,7 +384,7 @@ static HRESULT NewEnum_create(TaskFolderCollection *folders, IUnknown **obj)
{
{
EnumVARIANT
*
enumvar
;
EnumVARIANT
*
enumvar
;
enumvar
=
heap_
alloc
(
sizeof
(
*
enumvar
));
enumvar
=
m
alloc
(
sizeof
(
*
enumvar
));
if
(
!
enumvar
)
return
E_OUTOFMEMORY
;
if
(
!
enumvar
)
return
E_OUTOFMEMORY
;
enumvar
->
IEnumVARIANT_iface
.
lpVtbl
=
&
EnumVARIANT_vtbl
;
enumvar
->
IEnumVARIANT_iface
.
lpVtbl
=
&
EnumVARIANT_vtbl
;
...
...
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