kernel32: Implement FileNameInfo in GetFileInformationByHandleEx.

This commit is contained in:
Christian Costa 2012-10-14 17:27:57 +02:00 committed by Alexandre Julliard
parent ee67d124ac
commit d13f7720eb
1 changed files with 9 additions and 1 deletions

View File

@ -876,7 +876,6 @@ BOOL WINAPI GetFileInformationByHandleEx( HANDLE handle, FILE_INFO_BY_HANDLE_CLA
{
case FileBasicInfo:
case FileStandardInfo:
case FileNameInfo:
case FileRenameInfo:
case FileDispositionInfo:
case FileAllocationInfo:
@ -897,6 +896,15 @@ BOOL WINAPI GetFileInformationByHandleEx( HANDLE handle, FILE_INFO_BY_HANDLE_CLA
SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
return FALSE;
case FileNameInfo:
status = NtQueryInformationFile( handle, &io, info, size, FileNameInformation );
if (status != STATUS_SUCCESS)
{
SetLastError( RtlNtStatusToDosError( status ) );
return FALSE;
}
return TRUE;
case FileIdBothDirectoryRestartInfo:
case FileIdBothDirectoryInfo:
status = NtQueryDirectoryFile( handle, NULL, NULL, NULL, &io, info, size,