[Bug 51789] Fatal crash in gdi32 during initialization
WineHQ Bugzilla
wine-bugs at winehq.org
Fri Sep 24 02:57:01 CDT 2021
https://bugs.winehq.org/show_bug.cgi?id=51789
--- Comment #1 from Nikolay Sivov <bunglehead at gmail.com> ---
It crashes on NULL value name here:
---
+static void set_reg_value( HKEY hkey, const WCHAR *name, UINT type, const void
*value, DWORD count )
+{
+ unsigned int name_size = lstrlenW( name ) * sizeof(WCHAR);
+ UNICODE_STRING nameW = { name_size, name_size, (WCHAR *)name };
+ NtSetValueKey( hkey, &nameW, 0, type, value, count );
+}
---
if (face->family->second_name[0])
- RegSetValueExW( hkey_family, NULL, 0, REG_SZ, (BYTE
*)face->family->second_name,
- (lstrlenW( face->family->second_name ) + 1) *
sizeof(WCHAR) );
+ set_reg_value( hkey_family, NULL, REG_SZ, face->family->second_name,
+ (lstrlenW( face->family->second_name ) + 1) *
sizeof(WCHAR) );
---
Patch sent
https://www.winehq.org/pipermail/wine-devel/2021-September/196288.html
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list