diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-05 13:37:52 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-05 13:38:55 +0200 |
commit | dbc8250a73a474f94bf52e765ddd7a6828af8908 (patch) | |
tree | 13d87e3f6fb82ad2d1d165568f9d8326f0d95b3e | |
parent | Merge branch 'master' of github.com:lxn/walk (diff) | |
download | wireguard-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.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |