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
abbc88f4
Commit
abbc88f4
authored
Nov 02, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Use CRT allocation functions.
parent
472ef288
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
10 deletions
+8
-10
mstask_main.c
dlls/mstask/mstask_main.c
+2
-2
mstask_private.h
dlls/mstask/mstask_private.h
+0
-2
task_scheduler.c
dlls/mstask/task_scheduler.c
+4
-4
task_trigger.c
dlls/mstask/task_trigger.c
+2
-2
No files found.
dlls/mstask/mstask_main.c
View file @
abbc88f4
...
@@ -74,12 +74,12 @@ DWORD WINAPI NetrJobGetInfo_wrapper(ATSVC_HANDLE server_name, DWORD jobid, LPAT_
...
@@ -74,12 +74,12 @@ DWORD WINAPI NetrJobGetInfo_wrapper(ATSVC_HANDLE server_name, DWORD jobid, LPAT_
DECLSPEC_HIDDEN
void
__RPC_FAR
*
__RPC_USER
MIDL_user_allocate
(
SIZE_T
n
)
DECLSPEC_HIDDEN
void
__RPC_FAR
*
__RPC_USER
MIDL_user_allocate
(
SIZE_T
n
)
{
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
n
);
return
malloc
(
n
);
}
}
DECLSPEC_HIDDEN
void
__RPC_USER
MIDL_user_free
(
void
__RPC_FAR
*
p
)
DECLSPEC_HIDDEN
void
__RPC_USER
MIDL_user_free
(
void
__RPC_FAR
*
p
)
{
{
HeapFree
(
GetProcessHeap
(),
0
,
p
);
free
(
p
);
}
}
DECLSPEC_HIDDEN
handle_t
__RPC_USER
ATSVC_HANDLE_bind
(
ATSVC_HANDLE
str
)
DECLSPEC_HIDDEN
handle_t
__RPC_USER
ATSVC_HANDLE_bind
(
ATSVC_HANDLE
str
)
...
...
dlls/mstask/mstask_private.h
View file @
abbc88f4
...
@@ -19,8 +19,6 @@
...
@@ -19,8 +19,6 @@
#ifndef __MSTASK_PRIVATE_H__
#ifndef __MSTASK_PRIVATE_H__
#define __MSTASK_PRIVATE_H__
#define __MSTASK_PRIVATE_H__
#include "wine/heap.h"
extern
LONG
dll_ref
DECLSPEC_HIDDEN
;
extern
LONG
dll_ref
DECLSPEC_HIDDEN
;
typedef
struct
ClassFactoryImpl
ClassFactoryImpl
;
typedef
struct
ClassFactoryImpl
ClassFactoryImpl
;
...
...
dlls/mstask/task_scheduler.c
View file @
abbc88f4
...
@@ -60,7 +60,7 @@ static void TaskSchedulerDestructor(TaskSchedulerImpl *This)
...
@@ -60,7 +60,7 @@ static void TaskSchedulerDestructor(TaskSchedulerImpl *This)
{
{
TRACE
(
"%p
\n
"
,
This
);
TRACE
(
"%p
\n
"
,
This
);
ITaskService_Release
(
This
->
service
);
ITaskService_Release
(
This
->
service
);
heap_
free
(
This
);
free
(
This
);
InterlockedDecrement
(
&
dll_ref
);
InterlockedDecrement
(
&
dll_ref
);
}
}
...
@@ -100,7 +100,7 @@ static ULONG WINAPI EnumWorkItems_Release(IEnumWorkItems *iface)
...
@@ -100,7 +100,7 @@ static ULONG WINAPI EnumWorkItems_Release(IEnumWorkItems *iface)
{
{
if
(
This
->
handle
!=
INVALID_HANDLE_VALUE
)
if
(
This
->
handle
!=
INVALID_HANDLE_VALUE
)
FindClose
(
This
->
handle
);
FindClose
(
This
->
handle
);
heap_
free
(
This
);
free
(
This
);
InterlockedDecrement
(
&
dll_ref
);
InterlockedDecrement
(
&
dll_ref
);
}
}
...
@@ -259,7 +259,7 @@ static HRESULT create_task_enum(IEnumWorkItems **ret)
...
@@ -259,7 +259,7 @@ static HRESULT create_task_enum(IEnumWorkItems **ret)
*
ret
=
NULL
;
*
ret
=
NULL
;
tasks
=
heap_
alloc
(
sizeof
(
*
tasks
));
tasks
=
m
alloc
(
sizeof
(
*
tasks
));
if
(
!
tasks
)
if
(
!
tasks
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
...
@@ -523,7 +523,7 @@ HRESULT TaskSchedulerConstructor(LPVOID *ppObj)
...
@@ -523,7 +523,7 @@ HRESULT TaskSchedulerConstructor(LPVOID *ppObj)
return
hr
;
return
hr
;
}
}
This
=
heap_
alloc
(
sizeof
(
*
This
));
This
=
m
alloc
(
sizeof
(
*
This
));
if
(
!
This
)
if
(
!
This
)
{
{
ITaskService_Release
(
service
);
ITaskService_Release
(
service
);
...
...
dlls/mstask/task_trigger.c
View file @
abbc88f4
...
@@ -87,7 +87,7 @@ static ULONG WINAPI MSTASK_ITaskTrigger_Release(
...
@@ -87,7 +87,7 @@ static ULONG WINAPI MSTASK_ITaskTrigger_Release(
if
(
ref
==
0
)
if
(
ref
==
0
)
{
{
ITask_Release
(
This
->
parent_task
);
ITask_Release
(
This
->
parent_task
);
heap_
free
(
This
);
free
(
This
);
InterlockedDecrement
(
&
dll_ref
);
InterlockedDecrement
(
&
dll_ref
);
}
}
return
ref
;
return
ref
;
...
@@ -139,7 +139,7 @@ HRESULT TaskTriggerConstructor(ITask *task, WORD idx, ITaskTrigger **trigger)
...
@@ -139,7 +139,7 @@ HRESULT TaskTriggerConstructor(ITask *task, WORD idx, ITaskTrigger **trigger)
TRACE
(
"(%p, %u, %p)
\n
"
,
task
,
idx
,
trigger
);
TRACE
(
"(%p, %u, %p)
\n
"
,
task
,
idx
,
trigger
);
This
=
heap_
alloc
(
sizeof
(
*
This
));
This
=
m
alloc
(
sizeof
(
*
This
));
if
(
!
This
)
if
(
!
This
)
return
E_OUTOFMEMORY
;
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