fix(windows): accept successful tray readiness HRESULTs

This commit is contained in:
cabbage committed 2026-10-27 09:21:22 +00:00
1 parent ae5e979761
commit 0735908ca9
7 files changed
+71 -2

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
package windowstray
// iconQuerySucceeded follows SUCCEEDED(HRESULT), including S_FALSE. Explorer
// can return S_FALSE with valid icon coordinates; requiring S_OK falsely reports
// a tray startup failure. HRESULT is signed 32-bit even in a 64-bit syscall.
func iconQuerySucceeded(result uintptr) bool {
return int32(result) >= 0
}