9 lines
335 B
Go
9 lines
335 B
Go
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
|
|
}
|