diff --git a/lib/CoreCLR/boot.cpp b/lib/CoreCLR/boot.cpp index f5e626c3f..84d3d15cf 100644 --- a/lib/CoreCLR/boot.cpp +++ b/lib/CoreCLR/boot.cpp @@ -126,7 +126,7 @@ HRESULT InitializeClrAndGetEntryPoint( if (!dotnet_path || !std::filesystem::exists(dotnet_path)) { logging::E("Error: Unable to find .NET runtime path"); - return 1; + return HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND); } // =========================================================================== //