From 4aa949d1df2ecc88e7e5ebbb64ce6092bf3931a0 Mon Sep 17 00:00:00 2001 From: Ged Murphy Date: Thu, 28 Sep 2006 21:36:12 +0000 Subject: [PATCH] - Reserve enough space on the heap to store the GUID - Thanks to Thomas for restoring my sanity svn path=/trunk/; revision=24291 --- reactos/base/applications/devmgmt/enumdevices.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/base/applications/devmgmt/enumdevices.c b/reactos/base/applications/devmgmt/enumdevices.c index 6dceb6061c1..099d50b8545 100644 --- a/reactos/base/applications/devmgmt/enumdevices.c +++ b/reactos/base/applications/devmgmt/enumdevices.c @@ -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;