浏览代码

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;
}
}


正在加载...
取消
保存