one more fix (on request of Pierre S.)

svn path=/trunk/; revision=48888
This commit is contained in:
Matthias Kupfer 2010-09-25 19:24:03 +00:00
parent 2a1e1c7eff
commit cfb984e8bb

View file

@ -683,15 +683,13 @@ ProcessLocaleRegistry(PGENERIC_LIST List)
REG_SZ,
(PVOID)(LanguageId + 4),
8 * sizeof(PWCHAR));
NtClose(KeyHandle);
if (!NT_SUCCESS(Status))
{
DPRINT1("NtSetValueKey() failed (Status %lx)\n", Status);
NtClose(KeyHandle);
return FALSE;
}
NtClose(KeyHandle);
return TRUE;
}
@ -990,14 +988,13 @@ SetGeoID(PWCHAR Id)
REG_SZ,
(PVOID)Id,
(wcslen(Id) + 1) * sizeof(WCHAR));
NtClose(KeyHandle);
if (!NT_SUCCESS(Status))
{
DPRINT1("NtSetValueKey() failed (Status = %lx)\n", Status);
NtClose(KeyHandle);
return FALSE;
}
NtClose(KeyHandle);
return TRUE;
}