Skip to content

IsLegal WASM打开Excel文件失败 #75

@sunl158

Description

@sunl158

Dt.Xls\Biff\CompoundFile.cs
public static bool IsLegal(Stream stream)
{
bool flag = false;
BinaryReader reader = new BinaryReader(stream);
try
{
ulong num = reader.ReadUInt64();
if (num == 16220472316735377360L)
flag = true;
}
catch(Exception ex)
{
This stream is asynchronous-only'
}
reader.BaseStream.Seek(0L, (SeekOrigin) SeekOrigin.Begin);
return flag;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions