winecfg: Fix deletion of registry keys for Wow64 mode.
This commit is contained in:
parent
f0a53a8f1b
commit
fdc0d0f95f
|
@ -645,7 +645,11 @@ static void process_setting(struct setting *s)
|
||||||
{
|
{
|
||||||
/* NULL name means remove that path/section entirely */
|
/* NULL name means remove that path/section entirely */
|
||||||
if (s->name) RegDeleteValueW( key, s->name );
|
if (s->name) RegDeleteValueW( key, s->name );
|
||||||
else RegDeleteTreeW( key, NULL );
|
else
|
||||||
|
{
|
||||||
|
RegDeleteTreeW( key, NULL );
|
||||||
|
RegDeleteKeyW( s->root, s->path );
|
||||||
|
}
|
||||||
RegCloseKey( key );
|
RegCloseKey( key );
|
||||||
}
|
}
|
||||||
if (needs_wow64)
|
if (needs_wow64)
|
||||||
|
@ -654,7 +658,11 @@ static void process_setting(struct setting *s)
|
||||||
if (!RegOpenKeyExW( s->root, s->path, 0, MAXIMUM_ALLOWED | KEY_WOW64_32KEY, &key ))
|
if (!RegOpenKeyExW( s->root, s->path, 0, MAXIMUM_ALLOWED | KEY_WOW64_32KEY, &key ))
|
||||||
{
|
{
|
||||||
if (s->name) RegDeleteValueW( key, s->name );
|
if (s->name) RegDeleteValueW( key, s->name );
|
||||||
else RegDeleteTreeW( key, NULL );
|
else
|
||||||
|
{
|
||||||
|
RegDeleteTreeW( key, NULL );
|
||||||
|
RegDeleteKeyExW( s->root, s->path, KEY_WOW64_32KEY, 0 );
|
||||||
|
}
|
||||||
RegCloseKey( key );
|
RegCloseKey( key );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue