anfragment / zen

Simple, free and efficient ad-blocker and privacy guard for Windows, macOS and Linux
https://zenprivacy.net
MIT License
2.39k stars 60 forks source link

System proxy isn't getting reset on system shutdown on Windows #155

Closed anfragment closed 4 days ago

anfragment commented 5 days ago

Description

Wails isn't handling WM_ENDSESSION in its wndProc loop, which results in shutdown handlers not running on system shutdown. We can process the message ourselves by subclassing Wails's wndProc via SetWindowLongPtrW.