go-webview2
go-webview2 copied to clipboard
Fix Windows 32-bit support for GetWindowLong/SetWindowLong functions
Problem:
- GetWindowLongPtrW and SetWindowLongPtrW functions don't exist on 32-bit
- This caused runtime errors at launch for 32-bit binaries
Solution:
- Implemented conditional compilation using Go build constraints
- Created architecture-specific implementations:
w32_386.go: 32-bit implementation using GetWindowLongW/SetWindowLongWw32_64bit.go: 64-bit implementation using GetWindowLongPtrW/SetWindowLongPtrW (covers amd64 and arm64)