mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:53:02 +00:00
set a last error code in case translating the path failed in InternalFindFirstFile()
svn path=/trunk/; revision=20983
This commit is contained in:
parent
e1d2b36974
commit
6075158a14
1 changed files with 1 additions and 14 deletions
|
@ -49,20 +49,6 @@ typedef struct _KERNEL32_FIND_DATA_HEADER
|
|||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
static __inline PKERNEL32_FIND_FILE_DATA
|
||||
HandleToFindData(IN HANDLE Handle)
|
||||
{
|
||||
PKERNEL32_FIND_DATA_HEADER FindData = (PKERNEL32_FIND_DATA_HEADER)Handle;
|
||||
|
||||
if (Handle != NULL && Handle != INVALID_HANDLE_VALUE &&
|
||||
FindData->Type == FileFind)
|
||||
{
|
||||
return (PKERNEL32_FIND_FILE_DATA)(FindData + 1);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
VOID
|
||||
InternalCopyFindDataW(LPWIN32_FIND_DATAW lpFindFileData,
|
||||
PFILE_BOTH_DIR_INFORMATION lpFileInfo)
|
||||
|
@ -335,6 +321,7 @@ InternalFindFirstFile (
|
|||
0,
|
||||
SlashlessFileName);
|
||||
}
|
||||
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue