mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +00:00
- 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:
parent
afcf1f7b14
commit
4aa949d1df
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue