return an error HRESULT when dotnet runtime can't be found (#2209)

This commit is contained in:
marzent 2025-03-26 20:38:27 +01:00 committed by GitHub
parent 81bc0012ed
commit 8320a824ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}
// =========================================================================== //