Skip to content

Treat rc == 0 as success? #8

Description

@AntonDevil

Hi @StackOverflowExcept1on

You're the boos here.

/// Success_HostAlreadyInitialized = 0x00000001
/// @see https://github.com/dotnet/runtime/blob/main/docs/design/features/host-error-codes.md
if (rc != 1 || ctx == nullptr) {
hostfxr_close_fptr(ctx);
return InitializeResult::InitializeRuntimeConfigError;
}

Can you explain why we treat rc == 0 as failure?
I don't get why it won't be ok to treat rc == 0 as success.
Maybe leave a comment about it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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