projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e1d995
)
Close only the Nls directory handle if the directory was created.
author
Hartmut Birr
<osexpert@googlemail.com>
Wed, 27 Apr 2005 21:55:02 +0000
(21:55 +0000)
committer
Hartmut Birr
<osexpert@googlemail.com>
Wed, 27 Apr 2005 21:55:02 +0000
(21:55 +0000)
svn path=/trunk/; revision=14835
reactos/lib/kernel32/misc/nls.c
patch
|
blob
|
history
diff --git
a/reactos/lib/kernel32/misc/nls.c
b/reactos/lib/kernel32/misc/nls.c
index
8ecee40
..
51bda6d
100755
(executable)
--- a/
reactos/lib/kernel32/misc/nls.c
+++ b/
reactos/lib/kernel32/misc/nls.c
@@
-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;