fix(windows): accept successful tray readiness HRESULTs
This commit is contained in:
1 parent
ae5e979761
commit
0735908ca9
7 files changed
+71
-2
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user