From fd9973719923c361f5f19583fd96785dc3f99481 Mon Sep 17 00:00:00 2001 From: The6P4C Date: Fri, 29 Sep 2017 08:07:41 +1000 Subject: [PATCH] Fix incorrect index in SystemTimeException string format --- ThunderboltTimeSync/SystemTimeUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ThunderboltTimeSync/SystemTimeUtils.cs b/ThunderboltTimeSync/SystemTimeUtils.cs index 4573c11..9ac9a1f 100644 --- a/ThunderboltTimeSync/SystemTimeUtils.cs +++ b/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; } }