Skip to content

GFXR -- FStream error return handling incorrect #2720

@jzulauf-lunarg

Description

@jzulauf-lunarg

The return code from various fstream IO calls is being incorrectly conflated with errno. Error return is not errno. Only extern errno is.

Example:

inline bool FileWrite(const void* buffer, size_t bytes, FILE* stream)

FileReadBytes fixed as example:

inline size_t FileReadBytes(void* buffer, size_t bytes, FILE* stream)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions