schedsvc: Avoid mismatching heap in SchRpcEnumTasks.

This commit is contained in:
Rémi Bernon 2023-01-13 08:19:27 +01:00 committed by Alexandre Julliard
parent d59e89dab1
commit 381e756a9b

View file

@ -768,7 +768,7 @@ HRESULT __cdecl SchRpcEnumTasks(const WCHAR *path, DWORD flags, DWORD *start_ind
{
TASK_NAMES new_list;
allocated *= 2;
new_list = heap_realloc(list, allocated * sizeof(list[0]));
new_list = realloc(list, allocated * sizeof(list[0]));
if (!new_list)
{
hr = E_OUTOFMEMORY;