Commit ef30380d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Fix device instance value size in link_device.

parent 66d2321a
......@@ -798,7 +798,7 @@ static void link_device( const WCHAR *instance, const WCHAR *class )
len += class_len;
hkey = reg_create_key( control_key, buffer, len * sizeof(WCHAR), 0, NULL );
set_reg_value( hkey, device_instanceW, REG_SZ, instance, instance_len * sizeof(WCHAR) );
set_reg_value( hkey, device_instanceW, REG_SZ, instance, (instance_len + 1) * sizeof(WCHAR) );
subkey = reg_create_key( hkey, hashW, sizeof(hashW), REG_OPTION_VOLATILE, NULL );
NtClose( hkey );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment