mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 07:52:56 +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
1 changed files with 3 additions and 1 deletions
|
@ -151,7 +151,9 @@ EnumDevices(INT index,
|
||||||
|
|
||||||
if (!bRet)
|
if (!bRet)
|
||||||
{
|
{
|
||||||
guids = HeapAlloc(GetProcessHeap(), 0, RequiredSize);
|
guids = HeapAlloc(GetProcessHeap(),
|
||||||
|
0,
|
||||||
|
RequiredSize * sizeof(GUID));
|
||||||
if (guids == NULL)
|
if (guids == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue