mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:25:45 +00:00
- Report a failure for FindNextFile(NULL) instead of crashing.
svn path=/trunk/; revision=9371
This commit is contained in:
parent
620a45896a
commit
624300da51
1 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: find.c,v 1.43 2004/01/23 21:16:03 ekohl Exp $
|
/* $Id: find.c,v 1.44 2004/05/13 20:32:18 navaraf Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -48,6 +48,14 @@ InternalFindNextFile (
|
||||||
IO_STATUS_BLOCK IoStatusBlock;
|
IO_STATUS_BLOCK IoStatusBlock;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
DPRINT("InternalFindNextFile(%lx)\n", hFindFile);
|
||||||
|
|
||||||
|
if (hFindFile == NULL)
|
||||||
|
{
|
||||||
|
SetLastError (ERROR_INVALID_HANDLE);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
IData = (PKERNEL32_FIND_FILE_DATA)hFindFile;
|
IData = (PKERNEL32_FIND_FILE_DATA)hFindFile;
|
||||||
|
|
||||||
if (IData->pFileInfo->NextEntryOffset != 0)
|
if (IData->pFileInfo->NextEntryOffset != 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue