On Wed Sep 14 12:49:45 2022 +0000, Connor McAdams wrote:
Hm... do you mean it should also be checked further down the line? I feel like this check makes sense here, given you shouldn't try to get an HUIANODE for an HWND that doesn't exist. It seems to match Windows behavior as well.
If possible, it should be checked by using it. In this case, I think SendMessage would fail with an error indicating an invalid handle.