Author: janderwald
Date: Tue Mar 31 20:38:52 2009
New Revision: 40304
URL:
http://svn.reactos.org/svn/reactos?rev=40304&view=rev
Log:
- Revert 40296
- This will not work for REG_DWORD
Modified:
trunk/reactos/dll/win32/advapi32/reg/reg.c
Modified: trunk/reactos/dll/win32/advapi32/reg/reg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/reg/reg…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] Tue Mar 31 20:38:52 2009
@@ -4225,11 +4225,11 @@
RtlUnicodeStringToAnsiString(&AnsiString,
&Value,
FALSE);
- *lpcbValue = ValueSize / sizeof(WCHAR);
+ *lpcbValue = ValueSize;
}
else if (lpcbValue != NULL)
{
- *lpcbValue = ValueSize / sizeof(WCHAR);
+ *lpcbValue = ValueSize;
}
}