Commit d59e89da authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

schedsvc: Avoid mismatching heap in SchRpcEnumFolders.

parent a98319d0
...@@ -660,7 +660,7 @@ HRESULT __cdecl SchRpcEnumFolders(const WCHAR *path, DWORD flags, DWORD *start_i ...@@ -660,7 +660,7 @@ HRESULT __cdecl SchRpcEnumFolders(const WCHAR *path, DWORD flags, DWORD *start_i
{ {
TASK_NAMES new_list; TASK_NAMES new_list;
allocated *= 2; allocated *= 2;
new_list = heap_realloc(list, allocated * sizeof(list[0])); new_list = realloc(list, allocated * sizeof(list[0]));
if (!new_list) if (!new_list)
{ {
hr = E_OUTOFMEMORY; hr = 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