1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

schedsvc: Avoid mismatching heap in SchRpcEnumFolders.

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

View file

@ -660,7 +660,7 @@ HRESULT __cdecl SchRpcEnumFolders(const WCHAR *path, DWORD flags, DWORD *start_i
{
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;