Commit 223ac670 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

winemac.drv: Fix registry path size in create_original_display_mode_descriptor.

parent a3d08482
......@@ -308,7 +308,7 @@ static struct display_mode_descriptor* create_original_display_mode_descriptor(C
snprintf(display_key, sizeof(display_key), display_key_format, CGDisplayUnitNumber(displayID));
/* @@ Wine registry key: HKLM\Software\Wine\Mac Driver\Initial Display Mode\Display 0xnnnnnnnn */
if (!(hkey = reg_open_key(NULL, nameW, asciiz_to_unicode(nameW, display_key))))
if (!(hkey = reg_open_key(NULL, nameW, asciiz_to_unicode(nameW, display_key) - sizeof(WCHAR))))
return NULL;
desc = malloc(sizeof(*desc));
......
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