Don't use alloca.

This commit is contained in:
Alexandre Julliard 2003-08-28 19:40:51 +00:00
parent 06da8c2869
commit 0e3042eb65
1 changed files with 2 additions and 1 deletions

View File

@ -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 );
}
}