Author: cgutman Date: Wed May 19 00:43:02 2010 New Revision: 47267
URL: http://svn.reactos.org/svn/reactos?rev=47267&view=rev Log: [SETUPAPI] - Fix an incorrect length value that corrupted REG_MULTI_SZ values when they had strings appended - I'm not sure if this is synced with WINE, but if it is, they need this patch too
Modified: trunk/reactos/dll/win32/setupapi/install.c
Modified: trunk/reactos/dll/win32/setupapi/install.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/install.... ============================================================================== --- trunk/reactos/dll/win32/setupapi/install.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/setupapi/install.c [iso-8859-1] Wed May 19 00:43:02 2010 @@ -250,7 +250,7 @@ if (total != size) { TRACE( "setting value %s to %s\n", debugstr_w(value), debugstr_w(buffer) ); - RegSetValueExW( hkey, value, 0, REG_MULTI_SZ, (BYTE *)buffer, total ); + RegSetValueExW( hkey, value, 0, REG_MULTI_SZ, (BYTE *)buffer, total + sizeof(WCHAR) ); } done: HeapFree( GetProcessHeap(), 0, buffer );