summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-05 13:37:52 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-05 13:38:55 +0200
commitdbc8250a73a474f94bf52e765ddd7a6828af8908 (patch)
tree13d87e3f6fb82ad2d1d165568f9d8326f0d95b3e
parentMerge branch 'master' of github.com:lxn/walk (diff)
downloadwireguard-windows-dbc8250a73a474f94bf52e765ddd7a6828af8908.tar.xz
wireguard-windows-dbc8250a73a474f94bf52e765ddd7a6828af8908.zip
tooltip: increase max length
The maximum of 80 hasn't been enforced in super long time and can be considered "historic". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--tooltip.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/tooltip.go b/tooltip.go
index 5aa996d0..dde551ea 100644
--- a/tooltip.go
+++ b/tooltip.go
@@ -15,8 +15,10 @@ import (
"github.com/lxn/win"
)
-// see https://msdn.microsoft.com/en-us/library/windows/desktop/bb760416(v=vs.85).aspx
-const maxToolTipTextLen = 80 // including NUL terminator
+// https://msdn.microsoft.com/en-us/library/windows/desktop/bb760416(v=vs.85).aspx says 80,
+// but in reality, that hasn't been enforced for many many Windows versions. So we give it
+// 1024 instead.
+const maxToolTipTextLen = 1024 // including NUL terminator
func init() {
var err error