-
Notifications
You must be signed in to change notification settings - Fork 992
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 WM_DESTROY message handling #12648
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #12648 +/- ##
====================================================
- Coverage 97.03492% 76.03283% -21.00209%
====================================================
Files 1182 3178 +1996
Lines 354561 639600 +285039
Branches 5411 47215 +41804
====================================================
+ Hits 344048 486306 +142258
- Misses 9724 149766 +140042
- Partials 789 3528 +2739
Flags with carried forward coverage won't be shown. Click here to find out more. |
Our product which releases early next year requires this fix. Without it, there are several issues including multiple crashes across various features in the product, making it unusable. So it is critical that we get this fix in a patch before our next release and otherwise this would greatly impact our revenue and timelines. Please prioritize this by end of Jan, 2025 or early than that if possible. |
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.
Thank you!
@Sachin-NI - would you be interested in adding a unit test to cover this scenario? |
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.
LGTM, thank you!
* Fix WM_DESTROY message handling * modified condition
* Fix WM_DESTROY message handling * modified condition
* Fix WM_DESTROY message handling * modified condition
Fixes #12551
Proposed changes
DetachWindow
method always setsHandle
andHWND
value to NULL. This make code inside if block go in recursive infinite loop. To fix this, we now store the value ofHandle
in a variable before calling theDetachWindow
method. This was the previous behavior but got disrupted due to this change.I had already completed a PR which stored
IsHandleCreated
before callingDetachWindow
method but missed to store and useHandle
value.Testing
Go through this comment to reproduce this issue. I've validated that this proposed change resolve the issue.
@JeremyKuhne