2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>

* ntoskrnl/fs/util.c (FsRtlGetFileSize): Implement.

svn path=/trunk/; revision=4314
This commit is contained in:
Casper Hornstrup 2003-03-16 13:18:49 +00:00
parent 0a8aad891f
commit 43b6dc2a24
2 changed files with 20 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
* ntoskrnl/fs/util.c (FsRtlGetFileSize): Implement.
2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
* lib/ntdll/rtl/nls.c (RtlCustomCPToUnicodeN, RtlMultiByteToUnicodeN,

View file

@ -1,4 +1,4 @@
/* $Id: util.c,v 1.12 2002/09/08 10:23:20 chorns Exp $
/* $Id: util.c,v 1.13 2003/03/16 13:18:49 chorns Exp $
*
* reactos/ntoskrnl/fs/util.c
*
@ -241,7 +241,21 @@ FsRtlGetFileSize (
IN OUT PLARGE_INTEGER FileSize
)
{
return STATUS_NOT_IMPLEMENTED;
FILE_STANDARD_INFORMATION Info;
NTSTATUS Status;
ULONG Length;
Status = IoQueryFileInformation(FileObject,
FileStandardInformation,
sizeof(Info),
&Info,
&Length);
if (NT_SUCCESS(Status))
{
FileSize->QuadPart = Info.EndOfFile.QuadPart;
}
return Status;
}