Skip to content

Remove infinite recursion in Trackbar handling on Windows#22804

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
dan-masek:fix_issue_22765
Nov 15, 2022
Merged

Remove infinite recursion in Trackbar handling on Windows#22804
asmorkalov merged 1 commit intoopencv:4.xfrom
dan-masek:fix_issue_22765

Conversation

@dan-masek
Copy link
Copy Markdown
Contributor

Remove unnecessary function resulting in infinite recursion. Since In all four places it was used, we already check the shared pointer, the extra assert that the function provided was redundant, so I removed it, and I added a de-reference to the window parameters.

…ecursion. Since In all four places it was used, we already check the shared pointer, the extra assert that the function provided was redundand, so I removed it, and I added a dereference to the `window` parameters.
Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good to me!

@asmorkalov asmorkalov changed the title Fix #22765 Remove infinite recursion in Trackbar handling on Windows Nov 15, 2022
@asmorkalov asmorkalov merged commit 3edf7c2 into opencv:4.x Nov 15, 2022
@alalek alalek mentioned this pull request Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Infinite recursion in window_w32.cpp.

3 participants