diff --git a/misc/registry.c b/misc/registry.c index 7d9117ef366..c443c7a9326 100644 --- a/misc/registry.c +++ b/misc/registry.c @@ -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 ); }