mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user