Fixed the return value in GetFileSize.

svn path=/trunk/; revision=3022
This commit is contained in:
Hartmut Birr 2002-06-07 16:54:04 +00:00
parent 23ed00e90e
commit e1a2eb2f0b

View file

@ -1,4 +1,4 @@
/* $Id: file.c,v 1.33 2002/05/27 18:23:49 hbirr Exp $
/* $Id: file.c,v 1.34 2002/06/07 16:54:04 hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -346,9 +346,9 @@ GetFileSize(HANDLE hFile,
}
}
if ( lpFileSizeHigh != NULL )
*lpFileSizeHigh = FileStandard.AllocationSize.u.HighPart;
*lpFileSizeHigh = FileStandard.EndOfFile.u.HighPart;
return FileStandard.AllocationSize.u.LowPart;
return FileStandard.EndOfFile.u.LowPart;
}