Skip to content

Commit

Permalink
Don't show "Could not get value MB"
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingWonders committed Nov 13, 2023
1 parent a36fb90 commit 410ae44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file modified Installer/Output/dt_setup.exe
Binary file not shown.
3 changes: 2 additions & 1 deletion Panels/Get_Ops/InfoSave/ImgInfoSaveDlg.vb
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,8 @@ Public Class ImgInfoSaveDlg
End Select
ReportChanges(msg, 75)
regKey = Registry.LocalMachine.OpenSubKey("PE_SYS\ControlSet001\Services\FBWF", False)
Contents &= " - Scratch space: " & regKey.GetValue("WinPECacheThreshold", "could not get value").ToString() & " MB" & CrLf & CrLf
Dim scSize As String = regKey.GetValue("WinPECacheThreshold", "").ToString()
Contents &= " - Scratch space: " & If(Not scSize = "", scSize & " MB", "could not get value") & CrLf & CrLf
regKey.Close()
Catch ex As Exception

Expand Down
3 changes: 2 additions & 1 deletion Panels/Get_Ops/WinPE/GetWinPESettings.vb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ Public Class GetWinPESettings
Label5.Text = regKey.GetValue("InstRoot", msg).ToString()
regKey.Close()
regKey = Registry.LocalMachine.OpenSubKey("PE_SYS\ControlSet001\Services\FBWF", False)
Label6.Text = regKey.GetValue("WinPECacheThreshold", msg).ToString() & " MB"
Dim scSize As String = regKey.GetValue("WinPECacheThreshold","").ToString()
Label6.Text = If(Not scSize = "", scSize & " MB", msg)
regKey.Close()
Catch ex As Exception

Expand Down

0 comments on commit 410ae44

Please sign in to comment.