Author: ekohl
Date: Mon Jan 19 21:10:04 2015
New Revision: 66065
URL:
http://svn.reactos.org/svn/reactos?rev=66065&view=rev
Log:
[DEVMGR]
Enlarge the buffer by one WCHAR if REG_SZ values are being retrieved. This fixes strange
enumerator properties.
Modified:
trunk/reactos/dll/win32/devmgr/advprop.c
Modified: trunk/reactos/dll/win32/devmgr/advprop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/advprop.c…
==============================================================================
--- trunk/reactos/dll/win32/devmgr/advprop.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/devmgr/advprop.c [iso-8859-1] Mon Jan 19 21:10:04 2015
@@ -756,6 +756,9 @@
}
return;
}
+
+ if (dwType == REG_SZ)
+ dwSize += sizeof(WCHAR);
lpBuffer = HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY,