Added binary and unicode file i/o support to msvcrt.
[reactos.git] / reactos / lib / msvcrt / io / filelen.c
index 84e9f10..c2fcb00 100644 (file)
@@ -1,16 +1,8 @@
 #include <windows.h>
 #include <msvcrt/io.h>
 
-long _filelength(int _fd)
-{
-  return GetFileSize(_get_osfhandle(_fd),NULL);
-}
 
-__int64 _filelengthi64(int _fd)
+long _filelength(int _fd)
 {
-  long lo_length, hi_length;
-
-  lo_length = GetFileSize(_get_osfhandle(_fd), &hi_length);
-
-  return((((__int64)hi_length) << 32) + lo_length);
+    return GetFileSize(_get_osfhandle(_fd), NULL);
 }