Skip to content

Unexpected status 'OBJECT_PATH_INVALID' #22178

@nedpranson

Description

@nedpranson

Zig Version

master

Steps to Reproduce and Observed Behavior

On windows while opening \\server file, zig return unexpected status.
error.Unexpected NTSTATUS=0xc0000039

Though when opening \\server\... im getting error.NetworkNotFound as expected.

_ = try std.fs.cwd().openFile("\\server\", .{}); // error.Unexpected NTSTATUS=0xc0000039
_ = try std.fs.cwd().openFile("\\server\a", .{}); // error.NetworkNotFound

Expected Behavior

Expected to get back a valid error, like error.BadPathName or error.NetworkNotFound.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.standard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions