[ros-diffs] [gedmurphy] 24291: - Reserve enough space on the heap to store the GUID - Thanks to Thomas for restoring my sanity

gedmurphy at svn.reactos.org gedmurphy at svn.reactos.org
Thu Sep 28 23:36:13 CEST 2006


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/enumdevices.c?rev=24291&r1=24290&r2=24291&view=diff
==============================================================================
--- 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;
 




More information about the Ros-diffs mailing list