-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TranslateMessage
falsely gives error
#3145
Comments
By the way, I noticed some chages from |
No, that is correct. The return value of The conventional use pattern for this API is to check whether the message was processed and pass it on to if !TranslateMessage(&msg).as_bool() {
DispatchMessageW(&msg);
} |
Thanks Tim, beat me by a few seconds!
This was a recent change (#3111). This now matches the Rust standard handle type |
I do wonder if there's any value in having an |
@tim-weis Thank you for your reply. The
Thanks for that information. And, my idea is that the |
Summary
The code
TranslateMessage(&msg).ok()
will giveErr()
, which is wrong.Crate manifest
No response
Crate code
No response
The text was updated successfully, but these errors were encountered: