Skip to content

Commit

Permalink
Update LocalAdmin.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalPetryka authored Oct 13, 2024
1 parent ba9a3b9 commit 231d128
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/LocalAdmin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using LocalAdmin.V2.IO.ExitHandlers;
using System;
using System.Collections.Concurrent;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.IO;
Expand Down Expand Up @@ -647,7 +648,7 @@ private static unsafe void VerifySystemVersion()
dwOSVersionInfoSize = (uint) sizeof(OSVERSIONINFO)
};

uint status = GetVersion(&info);
uint status = GetWindowsVersion(&info);
if (status != 0)
throw new Win32Exception(NtStatusToErrorCode(status));
Version windows = new((int) info.dwMajorVersion, (int) info.dwMinorVersion, (int) info.dwBuildNumber);
Expand Down

0 comments on commit 231d128

Please sign in to comment.