Skip to content

Commit

Permalink
Merge pull request #18 from InvisibleUp/main
Browse files Browse the repository at this point in the history
Fix GPT detection failure with long disk names
  • Loading branch information
rcmaehl committed Jun 25, 2021
2 parents 4a73564 + eff42e0 commit e8ce19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Func Main()
GUICtrlSetData($hCheck[4][2], _GetCPUInfo(3) & " MHz")
EndIf

RunWait("powershell -Command Get-Partition -DriveLetter C | Get-Disk | Out-File -FilePath " & $hFile, "", @SW_HIDE)
RunWait("powershell -Command Get-Partition -DriveLetter C | Get-Disk | Select-Object -Property PartitionStyle | Out-File -FilePath " & $hFile, "", @SW_HIDE)
Select
Case StringInStr(FileRead($hFile), "Error")
GUICtrlSetData($hCheck[6][0], "?")
Expand Down Expand Up @@ -333,4 +333,4 @@ Func _GetLatestRelease($sCurrent)

Return _VersionCompare($aCombined[0][0], $sCurrent)

EndFunc
EndFunc

0 comments on commit e8ce19e

Please sign in to comment.