Skip to content

Commit

Permalink
[Fix] Fixed #201
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingWonders committed Dec 5, 2024
1 parent c31b7ee commit 382cc67
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion MainForm.vb
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,15 @@ Public Class MainForm
Next
Catch ex As Exception
If DebugLog Then Debug.WriteLine("[DetectMountedImages] Exception: " & ex.Message & " has occurred when detecting the image version. Proceeding with detecting image version with ntoskrnl...")
MountedImageImgVersionList.Add(FileVersionInfo.GetVersionInfo(MountedImageMountDirs(x) & "\Windows\system32\ntoskrnl.exe").ProductVersion)
Try
If File.Exists(MountedImageMountDirs(x) & "\Windows\system32\ntoskrnl.exe") Then
MountedImageImgVersionList.Add(FileVersionInfo.GetVersionInfo(MountedImageMountDirs(x) & "\Windows\system32\ntoskrnl.exe").ProductVersion)
Else
MountedImageImgVersionList.Add(New Version(0, 0, 0, 0).ToString())
End If
Catch ex2 As Exception
MountedImageImgVersionList.Add(New Version(0, 0, 0, 0).ToString())
End Try
End Try
Next
End If
Expand Down

0 comments on commit 382cc67

Please sign in to comment.