瀏覽代碼

Fix incorrect index in SystemTimeException string format

master
The6P4C 7 年之前
父節點
當前提交
fd99737199
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      ThunderboltTimeSync/SystemTimeUtils.cs

+ 1
- 1
ThunderboltTimeSync/SystemTimeUtils.cs 查看文件

@@ -4,7 +4,7 @@ using System.Runtime.InteropServices;
namespace ThunderboltTimeSync {
class SystemTimeUtils {
public class SystemTimeException : Exception {
public SystemTimeException(int hresult) : base(string.Format("The system time could not be set (HRESULT 0x{1:X8}).", hresult)) {
public SystemTimeException(int hresult) : base(string.Format("The system time could not be set (HRESULT 0x{0:X8}).", hresult)) {
HResult = hresult;
}
}


Loading…
取消
儲存