Skip to content

IOException thrown when disk is full does not have correct hresult #100457

@CyberSinh

Description

@CyberSinh

Hi,

IOException thrown when SafeHandles.Preallocate() failed because of disk is full should have correct HResult (unchecked((int)0x80070070)).

In the current implementation, the HResult corresponds to the generic error code for an IO problem (-2146232800), because the real HResult is not passed to the IOException constructor.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.IOhelp wanted[up-for-grabs] Good issue for external contributorsin-prThere is an active PR which will close this issue when it is merged

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions