Commit e4868d56 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

shell32: Allocate returned array in IKnownFolderManager::GetFolderIds.

parent 3d30db22
......@@ -4178,7 +4178,8 @@ static HRESULT WINAPI foldermanager_GetFolderIds(
TRACE("%p, %p\n", ppKFId, pCount);
*ppKFId = fm->ids;
*ppKFId = CoTaskMemAlloc(fm->num_ids * sizeof(KNOWNFOLDERID));
memcpy(*ppKFId, fm->ids, fm->num_ids * sizeof(KNOWNFOLDERID));
*pCount = fm->num_ids;
return S_OK;
}
......
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