mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Close only the Nls directory handle if the directory was created.
svn path=/trunk/; revision=14835
This commit is contained in:
parent
5e1d995563
commit
a6d944ecfc
1 changed files with 4 additions and 2 deletions
|
@ -93,8 +93,10 @@ NlsInit()
|
|||
InitializeObjectAttributes(&ObjectAttributes, &DirName,
|
||||
OBJ_CASE_INSENSITIVE | OBJ_PERMANENT,
|
||||
NULL, NULL);
|
||||
NtCreateDirectoryObject(&Handle, DIRECTORY_ALL_ACCESS, &ObjectAttributes);
|
||||
NtClose(Handle);
|
||||
if (NT_SUCCESS(NtCreateDirectoryObject(&Handle, DIRECTORY_ALL_ACCESS, &ObjectAttributes)))
|
||||
{
|
||||
NtClose(Handle);
|
||||
}
|
||||
|
||||
/* Setup ANSI code page. */
|
||||
AnsiCodePage.CodePage = CP_ACP;
|
||||
|
|
Loading…
Reference in a new issue