summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tun/wintun/guid/guid_windows.go2
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:])
}