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

+1 -1
View File
@@ -509,7 +509,7 @@ func WaitReady(ctx context.Context) error {
id := identifier{Size: uint32(unsafe.Sizeof(identifier{})), HWnd: hwnd, UID: trayIconID}
var rect rectangle
result, _, _ := procShellIconRect.Call(uintptr(unsafe.Pointer(&id)), uintptr(unsafe.Pointer(&rect)))
if int32(result) == 0 {
if iconQuerySucceeded(result) {
return nil
}
}