Fix NullReferenceException

This commit is contained in:
Jordan Brown
2020-05-06 17:48:18 -04:00
parent 6db0c52b34
commit 9961799771
3 changed files with 3 additions and 3 deletions
@@ -27,7 +27,7 @@ namespace Tgstation.Server.Host.IO
* sure it works in SOME cases
* i.e. win10 1803+ and IN DEVELOPER MODE
* other times it throws ERROR_INVALID_PARAMETER
* but the fucking worst is there is some configuration of windows that accept the argument and allow the function to succeed
* but the fucking worst is there are some configurations of windows that accept the argument and allow the function to succeed
* BUT IT DOESN'T CREATE THE FUCKING LINK
* I AM NOT DEBUGGING THAT SHIT AGAIN AHHH
+1 -1
View File
@@ -5,7 +5,7 @@ using System.Text;
namespace Tgstation.Server.Host
{
/// <summary>
/// Native methods used by the code
/// Native Windows methods used by the code
/// </summary>
#pragma warning disable SA1600
#pragma warning disable SA1602
@@ -97,7 +97,7 @@ namespace Tgstation.Server.Tests.Instance
Assert.IsNotNull(newerCompileJob);
Assert.AreNotEqual(initialCompileJob.Id, newerCompileJob.Id);
Assert.AreEqual(DreamDaemonSecurity.Ultrasafe, daemonStatus.StagedCompileJob.MinimumSecurityLevel);
Assert.AreEqual(DreamDaemonSecurity.Ultrasafe, newerCompileJob.MinimumSecurityLevel);
await TellWorldToReboot(cancellationToken);