Author: janderwald
Date: Mon Mar 30 21:19:43 2009
New Revision: 40296
URL:
http://svn.reactos.org/svn/reactos?rev=40296&view=rev
Log:
- Return correct byte size
- Fixes 3 wine test failures
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] Mon Mar 30 21:19:43 2009
@@ -4225,11 +4225,11 @@
RtlUnicodeStringToAnsiString(&AnsiString,
&Value,
FALSE);
- *lpcbValue = ValueSize;
+ *lpcbValue = ValueSize / sizeof(WCHAR);
}
else if (lpcbValue != NULL)
{
- *lpcbValue = ValueSize;
+ *lpcbValue = ValueSize / sizeof(WCHAR);
}
}