RegSetValueEx16 might get passed 0 as count of databytes, determine
string length for ourselves in this case.
This commit is contained in:
parent
7188916908
commit
8f1e39f3a7
|
@ -2016,5 +2016,6 @@ DWORD WINAPI RegSetValueEx16( HKEY hkey, LPCSTR name, DWORD reserved, DWORD type
|
||||||
CONST BYTE *data, DWORD count )
|
CONST BYTE *data, DWORD count )
|
||||||
{
|
{
|
||||||
fix_win16_hkey( &hkey );
|
fix_win16_hkey( &hkey );
|
||||||
|
if (!count && (type==REG_SZ)) count = strlen(data);
|
||||||
return RegSetValueExA( hkey, name, reserved, type, data, count );
|
return RegSetValueExA( hkey, name, reserved, type, data, count );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue