diff options
author | Simon Rozman <simon@rozman.si> | 2019-05-09 11:45:14 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-09 12:16:21 +0200 |
commit | dcb8f1aa6b14e538b76146d89f834b0ca98240af (patch) | |
tree | c12bd4743bb78bce9439db5d3c731cb6c6a6d132 | |
parent | b16b0e4cf705ca9c6707a3d7a843b759efd12392 (diff) |
wintun: fix GUID leading zero padding
Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r-- | tun/wintun/guid/guid_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tun/wintun/guid/guid_windows.go b/tun/wintun/guid/guid_windows.go index c5f4be6..cc476d9 100644 --- a/tun/wintun/guid/guid_windows.go +++ b/tun/wintun/guid/guid_windows.go @@ -37,5 +37,5 @@ func FromString(str string) (*windows.GUID, error) { // The resulting string is uppercase. // func ToString(guid *windows.GUID) string { - return fmt.Sprintf("{%06X-%04X-%04X-%04X-%012X}", guid.Data1, guid.Data2, guid.Data3, guid.Data4[:2], guid.Data4[2:]) + return fmt.Sprintf("{%08X-%04X-%04X-%04X-%012X}", guid.Data1, guid.Data2, guid.Data3, guid.Data4[:2], guid.Data4[2:]) } |