Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Wimp Wimp
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • RiscOS
    • SSources
  • Desktop
  • WimpWimp
  • Merge requests
  • !29

The source project of this merge request has been removed.
Closed
Created Oct 04, 2021 by Andy Vawer@avawerDeveloper
  • Report abuse
Report abuse

Fix crash on closing menu that contains a focussed writeable icon as part of...

  • Overview 5
  • Changes 1

Fix crash on closing menu that contains a focussed writeable icon as part of the menu tree (rather than in a window)

  • when closing menus, set_caret_position is called to remove the caret from the menu tree
    • this tries to redraw the icon without a caret as the window is still defined and valid
  • this happens after clearing the menutaskhandle though so the redraw can't page in the right task
  • the redraw then fails badly trying to access memory from the wrong task

The fix ensures the correct task is pages in before calling int_set_icon_state when redrawing. If it's a menu window, then it checks the menutaskhandle entry. If this is -4 then the menu tree is being deleted, so we don't need to redraw anything and should abandon gracefully.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: master