You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/ipn/desktop
Nick Khyl 60614fa4e5 ipn/desktop: fix panics on Windows 10, x86
[G,S]etWindowLongPtrW are not available on 32-bit Windows, where [G,S]etWindowLongW should be used instead.
The initial revision of #14945 imported the win package for calling and other Win32 API functions, which exported
the correct API depending on the platform. However, the same logic wasn't implemented when we removed
the win package dependency in a later revision, resulting in panics on Windows 10 x86 (there's no 32-bit Windows 11).

In this PR, we update the ipn/desktop package to use either [G,S]etWindowLongPtrW or [G,S]etWindowLongW
depending on the platform.

Fixes #15684

Signed-off-by: Nick Khyl <nickk@tailscale.com>
8 months ago
..
doc.go ipn/desktop: add a new package for managing desktop sessions on Windows 11 months ago
extension.go cmd/tailscaled,ipn/{auditlog,desktop,ipnext,ipnlocal},tsd: extract LocalBackend extension interfaces and implementation 9 months ago
mksyscall.go ipn/desktop: fix panics on Windows 10, x86 8 months ago
session.go ipn/desktop: add a new package for managing desktop sessions on Windows 11 months ago
sessions.go ipn/desktop: add a new package for managing desktop sessions on Windows 11 months ago
sessions_notwindows.go ipn/desktop: add a new package for managing desktop sessions on Windows 11 months ago
sessions_windows.go ipn/desktop: fix panics on Windows 10, x86 8 months ago
zsyscall_windows.go ipn/desktop: fix panics on Windows 10, x86 8 months ago