Jacek Caban : advapi32: Initialize retkey value in open_key.
Alexandre Julliard
julliard at winehq.org
Mon Oct 17 19:03:47 CDT 2016
Module: wine
Branch: master
Commit: 48aab01d652fdda3b45723d24a83fd88f6efff67
URL: http://source.winehq.org/git/wine.git/?a=commit;h=48aab01d652fdda3b45723d24a83fd88f6efff67
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Oct 17 21:22:45 2016 +0200
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: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/advapi32/registry.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/advapi32/registry.c b/dlls/advapi32/registry.c
index 2d8e1bb..e32f48a 100644
--- a/dlls/advapi32/registry.c
+++ b/dlls/advapi32/registry.c
@@ -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;
More information about the wine-cvs
mailing list