From 13316dc018809cd9c66101300e2da10da23bb3dc Mon Sep 17 00:00:00 2001
From: Robert Sprowson <rsprowson@gitlab.riscosopen.org>
Date: Sun, 20 Nov 2022 20:08:47 +0000
Subject: [PATCH] [519] Wimp crash on bad title bar validation

Reset the redrawhandle when creating a new window, so an empty title validation string
doesn't cause an unwanted page in of another task. This could lead to a subsequent abort
if the wrongly paged in task had a smaller slot when attempting to dereference the
pointer.
---
 s/Wimp02 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/s/Wimp02 b/s/Wimp02
index 6338663..c4792bc 100644
--- a/s/Wimp02
+++ b/s/Wimp02
@@ -4030,6 +4030,7 @@ SWIWimp_SetExtent
 
 checkextent
         Push    "cx0,cy0,cx1,cy1,LR"
+        BL      checkredrawhandle               ; ensure no task switch for validation string reads
 ;
         BL      minwindowx
         Pull    "cx0,cy0,cx1,cy1,PC",VS
-- 
GitLab