- Reserve enough space on the heap to store the GUID

- Thanks to Thomas for restoring my sanity

svn path=/trunk/; revision=24291
This commit is contained in:
Ged Murphy 2006-09-28 21:36:12 +00:00
parent afcf1f7b14
commit 4aa949d1df

View file

@ -151,7 +151,9 @@ EnumDevices(INT index,
if (!bRet)
{
guids = HeapAlloc(GetProcessHeap(), 0, RequiredSize);
guids = HeapAlloc(GetProcessHeap(),
0,
RequiredSize * sizeof(GUID));
if (guids == NULL)
return -1;