Commit 48aab01d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

advapi32: Initialize retkey value in open_key.

Office 2013 registry virtualization depends on this. Its NtOpenKey[Ex] hook doesn't set it to NULL, but it's expected to be NULL. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 41c7d1e2
......@@ -212,6 +212,8 @@ static NTSTATUS open_key( HKEY *retkey, DWORD options, ACCESS_MASK access, OBJEC
DWORD pos = 0, i = 0, len = attr->ObjectName->Length / sizeof(WCHAR);
UNICODE_STRING str;
*retkey = NULL;
if (!force_wow32)
{
if (options & REG_OPTION_OPEN_LINK) attr->Attributes |= OBJ_OPENLINK;
......
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