branch update for HEAD-2003050101
[reactos.git] / ntoskrnl / fs / util.c
index f58bc1f..7ff0942 100644 (file)
@@ -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;
 }