mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[KERNEL32] Fix handle leak and caching (follow-up of 7e38267
)
This commit is contained in:
parent
7e3826786e
commit
a004233bd3
1 changed files with 4 additions and 1 deletions
|
@ -82,11 +82,14 @@ BOOL JapaneseEra_IsFirstYearGannen(void)
|
|||
if (lstrcmpiW(szName, L"InitialEraYear") == 0)
|
||||
{
|
||||
s_bFirstIsGannen = (szValue[0] == 0x5143);
|
||||
s_bIsCached = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
NtClose(KeyHandle);
|
||||
|
||||
s_bIsCached = TRUE;
|
||||
|
||||
return s_bFirstIsGannen;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue