Author: gedmurphy
Date: Fri Sep 29 01:36:12 2006
New Revision: 24291
URL:
http://svn.reactos.org/svn/reactos?rev=24291&view=rev
Log:
- Reserve enough space on the heap to store the GUID
- Thanks to Thomas for restoring my sanity
Modified:
trunk/reactos/base/applications/devmgmt/enumdevices.c
Modified: trunk/reactos/base/applications/devmgmt/enumdevices.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/devmgmt/…
==============================================================================
--- trunk/reactos/base/applications/devmgmt/enumdevices.c (original)
+++ trunk/reactos/base/applications/devmgmt/enumdevices.c Fri Sep 29 01:36:12 2006
@@ -151,7 +151,9 @@
if (!bRet)
{
- guids = HeapAlloc(GetProcessHeap(), 0, RequiredSize);
+ guids = HeapAlloc(GetProcessHeap(),
+ 0,
+ RequiredSize * sizeof(GUID));
if (guids == NULL)
return -1;