Commit 0e3042eb authored by Alexandre Julliard's avatar Alexandre Julliard

Don't use alloca.

parent 06da8c28
......@@ -1087,7 +1087,7 @@ static void SortDirectory(Entry* dir, SORT_ORDER sortOrder)
len++;
if (len) {
array = (Entry**) alloca(len*sizeof(Entry*));
array = HeapAlloc(GetProcessHeap(), 0, len*sizeof(Entry*));
p = array;
for(entry=dir->down; entry; entry=entry->next)
......@@ -1102,6 +1102,7 @@ static void SortDirectory(Entry* dir, SORT_ORDER sortOrder)
p[0]->next = p[1];
(*p)->next = 0;
HeapFree( GetProcessHeap(), 0, array );
}
}
......
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