Skip to content

Commit

Permalink
[Mounted images] Apply refactor to mounted image manager
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingWonders committed Sep 19, 2024
1 parent 44c3506 commit 2c109d5
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 99 deletions.
2 changes: 1 addition & 1 deletion MainForm.vb
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ Public Class MainForm
imageStatus = ImageWatcher.Status.Invalid
End Select
Dim imageVersion As New Version()
imageVersion = New Version(FileVersionInfo.GetVersionInfo(Path.Combine(imageInfo.MountPath, "\Windows\system32\ntoskrnl.exe")).ProductVersion)
imageVersion = New Version(FileVersionInfo.GetVersionInfo(imageInfo.MountPath & "\Windows\system32\ntoskrnl.exe").ProductVersion)
MountedImages.Add(New MountedImage(imageInfo.ImageFilePath, imageInfo.ImageIndex, imageInfo.MountPath, imageStatus, (imageInfo.MountMode = DismMountMode.ReadWrite), imageVersion))
Next
MountedImageImgFiles = MountedImageImgFileList.ToArray()
Expand Down
Loading

0 comments on commit 2c109d5

Please sign in to comment.