mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
2003-03-16 Casper S. Hornstrup <[email protected]>
* ntoskrnl/fs/util.c (FsRtlGetFileSize): Implement. svn path=/trunk/; revision=4314
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2003-03-16 Casper S. Hornstrup <[email protected]>
|
||||
|
||||
* ntoskrnl/fs/util.c (FsRtlGetFileSize): Implement.
|
||||
|
||||
2003-03-16 Casper S. Hornstrup <[email protected]>
|
||||
|
||||
* 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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user