projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43e3abd
)
- Fixed the parameters for NtOpenFile in InternalFindFirstFile.
author
Hartmut Birr
<osexpert@googlemail.com>
Thu, 5 May 2005 11:07:28 +0000
(11:07 +0000)
committer
Hartmut Birr
<osexpert@googlemail.com>
Thu, 5 May 2005 11:07:28 +0000
(11:07 +0000)
- Closed the opened directory on error in InternalFindFirstFile.
svn path=/trunk/; revision=14991
reactos/lib/kernel32/file/find.c
patch
|
blob
|
history
diff --git
a/reactos/lib/kernel32/file/find.c
b/reactos/lib/kernel32/file/find.c
index
6ac2d86
..
3ccc856
100644
(file)
--- a/
reactos/lib/kernel32/file/find.c
+++ b/
reactos/lib/kernel32/file/find.c
@@
-256,8
+256,8
@@
InternalFindFirstFile (
FILE_LIST_DIRECTORY,
&ObjectAttributes,
&IoStatusBlock,
- FILE_
OPEN_IF
,
-
OPEN_EXISTING
);
+ FILE_
SHARE_READ|FILE_SHARE_WRITE
,
+
FILE_DIRECTORY_FILE
);
RtlFreeHeap (hProcessHeap,
0,
@@
-298,6
+298,7
@@
InternalFindFirstFile (
if (!NT_SUCCESS(Status))
{
DPRINT("Status %lx\n", Status);
+ CloseHandle (IData->DirectoryHandle);
RtlFreeHeap (hProcessHeap, 0, IData);
SetLastErrorByStatus (Status);
return NULL;