RegSetValueEx16 might get passed 0 as count of databytes, determine

string length for ourselves in this case.
oldstable
Marcus Meissner 2000-11-15 22:13:11 +00:00 committed by Alexandre Julliard
parent 7188916908
commit 8f1e39f3a7
1 changed files with 1 additions and 0 deletions

View File

@ -2016,5 +2016,6 @@ DWORD WINAPI RegSetValueEx16( HKEY hkey, LPCSTR name, DWORD reserved, DWORD type
CONST BYTE *data, DWORD count )
{
fix_win16_hkey( &hkey );
if (!count && (type==REG_SZ)) count = strlen(data);
return RegSetValueExA( hkey, name, reserved, type, data, count );
}