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

This commit is contained in:
Alexandre Julliard 2010-04-01 14:09:12 +02:00
parent 5e78bab266
commit 0ea2806c3f
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}