Commit abbc88f4 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

mstask: Use CRT allocation functions.

parent 472ef288
......@@ -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)
{
return HeapAlloc(GetProcessHeap(), 0, n);
return malloc(n);
}
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)
......
......@@ -19,8 +19,6 @@
#ifndef __MSTASK_PRIVATE_H__
#define __MSTASK_PRIVATE_H__
#include "wine/heap.h"
extern LONG dll_ref DECLSPEC_HIDDEN;
typedef struct ClassFactoryImpl ClassFactoryImpl;
......
......@@ -60,7 +60,7 @@ static void TaskSchedulerDestructor(TaskSchedulerImpl *This)
{
TRACE("%p\n", This);
ITaskService_Release(This->service);
heap_free(This);
free(This);
InterlockedDecrement(&dll_ref);
}
......@@ -100,7 +100,7 @@ static ULONG WINAPI EnumWorkItems_Release(IEnumWorkItems *iface)
{
if (This->handle != INVALID_HANDLE_VALUE)
FindClose(This->handle);
heap_free(This);
free(This);
InterlockedDecrement(&dll_ref);
}
......@@ -259,7 +259,7 @@ static HRESULT create_task_enum(IEnumWorkItems **ret)
*ret = NULL;
tasks = heap_alloc(sizeof(*tasks));
tasks = malloc(sizeof(*tasks));
if (!tasks)
return E_OUTOFMEMORY;
......@@ -523,7 +523,7 @@ HRESULT TaskSchedulerConstructor(LPVOID *ppObj)
return hr;
}
This = heap_alloc(sizeof(*This));
This = malloc(sizeof(*This));
if (!This)
{
ITaskService_Release(service);
......
......@@ -87,7 +87,7 @@ static ULONG WINAPI MSTASK_ITaskTrigger_Release(
if (ref == 0)
{
ITask_Release(This->parent_task);
heap_free(This);
free(This);
InterlockedDecrement(&dll_ref);
}
return ref;
......@@ -139,7 +139,7 @@ HRESULT TaskTriggerConstructor(ITask *task, WORD idx, ITaskTrigger **trigger)
TRACE("(%p, %u, %p)\n", task, idx, trigger);
This = heap_alloc(sizeof(*This));
This = malloc(sizeof(*This));
if (!This)
return E_OUTOFMEMORY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment