mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 08:13:01 +00:00
one more fix (on request of Pierre S.)
svn path=/trunk/; revision=48888
This commit is contained in:
parent
2a1e1c7eff
commit
cfb984e8bb
1 changed files with 2 additions and 5 deletions
|
@ -683,15 +683,13 @@ ProcessLocaleRegistry(PGENERIC_LIST List)
|
||||||
REG_SZ,
|
REG_SZ,
|
||||||
(PVOID)(LanguageId + 4),
|
(PVOID)(LanguageId + 4),
|
||||||
8 * sizeof(PWCHAR));
|
8 * sizeof(PWCHAR));
|
||||||
|
NtClose(KeyHandle);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT1("NtSetValueKey() failed (Status %lx)\n", Status);
|
DPRINT1("NtSetValueKey() failed (Status %lx)\n", Status);
|
||||||
NtClose(KeyHandle);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
NtClose(KeyHandle);
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -990,14 +988,13 @@ SetGeoID(PWCHAR Id)
|
||||||
REG_SZ,
|
REG_SZ,
|
||||||
(PVOID)Id,
|
(PVOID)Id,
|
||||||
(wcslen(Id) + 1) * sizeof(WCHAR));
|
(wcslen(Id) + 1) * sizeof(WCHAR));
|
||||||
|
NtClose(KeyHandle);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT1("NtSetValueKey() failed (Status = %lx)\n", Status);
|
DPRINT1("NtSetValueKey() failed (Status = %lx)\n", Status);
|
||||||
NtClose(KeyHandle);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
NtClose(KeyHandle);
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue