Corrected the size of the DriveCommandParameter structure to match the documentation of SENDCMDINPARAMS http://msdn.microsoft.com/en-us/library/ff565401%28VS.85%29.aspx

This commit is contained in:
Michael Möller
2010-09-18 15:13:26 +00:00
parent 0f1c0e3a69
commit 568a27b2a4
3 changed files with 4 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ namespace OpenHardwareMonitor.GUI {
InitializeComponent();
this.Font = SystemFonts.MessageBoxFont;
this.label3.Text = "Version " +
System.Windows.Forms.Application.ProductVersion + " Beta";
System.Windows.Forms.Application.ProductVersion;
linkLabel.Links.Remove(linkLabel.Links[0]);
linkLabel.Links.Add(0, linkLabel.Text.Length,
"http://openhardwaremonitor.org");

View File

@@ -154,7 +154,7 @@ namespace OpenHardwareMonitor.Hardware.HDD {
private uint BufferSize;
public CommandBlockRegisters Registers;
public byte DriveNumber;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 19)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
public byte[] Reserved;
}

View File

@@ -38,5 +38,5 @@
using System;
using System.Reflection;
[assembly: AssemblyVersion("0.1.37.13")]
[assembly: AssemblyFileVersion("0.1.37.13")]
[assembly: AssemblyVersion("0.1.37.14")]
[assembly: AssemblyInformationalVersion("0.1.37.14 Alpha")]