Selaa lähdekoodia

Fix incorrect index in SystemTimeException string format

master
The6P4C 7 vuotta sitten
vanhempi
commit
fd99737199
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      ThunderboltTimeSync/SystemTimeUtils.cs

+ 1
- 1
ThunderboltTimeSync/SystemTimeUtils.cs Näytä tiedosto

@@ -4,7 +4,7 @@ using System.Runtime.InteropServices;
namespace ThunderboltTimeSync { namespace ThunderboltTimeSync {
class SystemTimeUtils { class SystemTimeUtils {
public class SystemTimeException : Exception { 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; HResult = hresult;
} }
} }


Ladataan…
Peruuta
Tallenna