-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Fix multiple regressions since #18215 #18345
Conversation
const auto hwnd = msg.hwnd; | ||
AppHost* window = nullptr; | ||
|
||
// Just in case someone has targed a specific HWND, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
targeted
// Just in case someone has targed a specific HWND, | |
// Just in case someone has targeted a specific HWND, |
// ENDSESSION_CLOSEAPP: The application is using a file that must be replaced, | ||
// the system is being serviced, or system resources are exhausted. | ||
RegisterApplicationRestart(nullptr, RESTART_NO_CRASH | RESTART_NO_HANG); | ||
return TRUE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better for code consistency to write return 1
, or possibly adjust the rest of the method code to use return FALSE
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW I did it this way because the documentation for this message uses TRUE
and FALSE
.
Fixes
CoreWindow::GetForCurrentThread().PointerCursor()
WM_ACTIVATE
message now arrives before theAppHost
is initialized.This caused the messages to be delivered to old windows.
because we return
FALSE
on non-ENDSESSION_CLOSEAPP
messages.Closes #18331
Closes #18335
Validation Steps Performed