mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
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:
parent
0a8aad891f
commit
43b6dc2a24
2 changed files with 20 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue