From dcb8f1aa6b14e538b76146d89f834b0ca98240af Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 9 May 2019 11:45:14 +0200 Subject: wintun: fix GUID leading zero padding Signed-off-by: Simon Rozman --- tun/wintun/guid/guid_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tun/wintun/guid') 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:]) } -- cgit v1.2.3