Commit 0ea2806c authored by Alexandre Julliard's avatar Alexandre Julliard

server: Don't set the Wow64 flag on a Wow6432Node since it's already a 32-bit node.

parent 5e78bab2
......@@ -537,7 +537,8 @@ static struct key *alloc_subkey( struct key *parent, const struct unicode_str *n
for (i = ++parent->last_subkey; i > index; i--)
parent->subkeys[i] = parent->subkeys[i-1];
parent->subkeys[index] = key;
if (is_wow6432node( key->name, key->namelen )) parent->flags |= KEY_WOW64;
if (is_wow6432node( key->name, key->namelen ) && !is_wow6432node( parent->name, parent->namelen ))
parent->flags |= KEY_WOW64;
}
return key;
}
......
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