mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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,
|
InitializeObjectAttributes(&ObjectAttributes, &DirName,
|
||||||
OBJ_CASE_INSENSITIVE | OBJ_PERMANENT,
|
OBJ_CASE_INSENSITIVE | OBJ_PERMANENT,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
NtCreateDirectoryObject(&Handle, DIRECTORY_ALL_ACCESS, &ObjectAttributes);
|
if (NT_SUCCESS(NtCreateDirectoryObject(&Handle, DIRECTORY_ALL_ACCESS, &ObjectAttributes)))
|
||||||
|
{
|
||||||
NtClose(Handle);
|
NtClose(Handle);
|
||||||
|
}
|
||||||
|
|
||||||
/* Setup ANSI code page. */
|
/* Setup ANSI code page. */
|
||||||
AnsiCodePage.CodePage = CP_ACP;
|
AnsiCodePage.CodePage = CP_ACP;
|
||||||
|
|
Loading…
Reference in a new issue