core/win32/os.c
/* return the current file position, -1 on failure */
return the current file position, -1 on failure
return the current file position - 1 on failure
int64
os_tell(file_t f)
{
    FILE_POSITION_INFORMATION info;
    NTSTATUS res = nt_query_file_info(f, &info, sizeof(info), FilePositionInformation);
    ASSERT(NT_SUCCESS(res) && "bad file handle?");
    if (!NT_SUCCESS(res)) {
        return -1;
    }
    return info.CurrentByteOffset.QuadPart;
}
int64 os_tell ( file_t f ) { FILE_POSITION_INFORMATION info ; NTSTATUS res = nt_query_file_info ( f , & info , sizeof ( info ) , FilePositionInformation ) ; ASSERT ( NT_SUCCESS ( res ) && " " ) ; if ( ! NT_SUCCESS ( res ) ) { return -1 ; } return info . CurrentByteOffset . QuadPart ; }
return the current file position, -1 on failure
return the current file position - 1 on failure
/* should always be able to get this */