mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
schedsvc: Avoid mismatching heap in SchRpcEnumTasks.
This commit is contained in:
parent
d59e89dab1
commit
381e756a9b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue