Commit fae7eb14 authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Don't broadcast replies to Wimp messages

Detail:
  bas/!RunImage - Fix PreQuit blocking, HelpReplies, and DataLoadAcks to be sent to the task that sent the original message, instead of being broadcast to all tasks
Admin:
  Tested on Raspberry Pi 3B+
  Fixes issue reported on the forums which could lead to StrongED dereferencing a bad pointer:
  https://www.riscosopen.org/forum/forums/4/topics/9451


Version 2.05. Tagged as 'Maestro-2_05'
parent b367b3b7
/* (2.04)
/* (2.05)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 2.04
#define Module_MajorVersion_CMHG 2.05
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 10 Jun 2017
#define Module_Date_CMHG 22 Mar 2018
#define Module_MajorVersion "2.04"
#define Module_Version 204
#define Module_MajorVersion "2.05"
#define Module_Version 205
#define Module_MinorVersion ""
#define Module_Date "10 Jun 2017"
#define Module_Date "22 Mar 2018"
#define Module_ApplicationDate "10-Jun-17"
#define Module_ApplicationDate "22-Mar-18"
#define Module_ComponentName "Maestro"
#define Module_ComponentPath "castle/RiscOS/Sources/Apps/Maestro"
#define Module_FullVersion "2.04"
#define Module_HelpVersion "2.04 (10 Jun 2017)"
#define Module_LibraryVersionInfo "2:4"
#define Module_FullVersion "2.05"
#define Module_HelpVersion "2.05 (22 Mar 2018)"
#define Module_LibraryVersionInfo "2:5"
......@@ -137,7 +137,7 @@ DEF PROCreceive
block!12=ref%
block!16=0
quit_sender% = task%
SYS "Wimp_SendMessage", 19, block : REM Block PreQuit message
SYS "Wimp_SendMessage", 19, block, task% : REM Block PreQuit message
PROCOpenDiscardCancelBox
ELSE
PROCterminate
......@@ -497,7 +497,7 @@ ENDCASE
$(block%+20)=text$
block%!0 = (((20+LEN(text$)+1)DIV4)*4)+4
$(block%+21+LEN(text$)) = CHR$(0) :REM null-terminate
SYS "Wimp_SendMessage",17,block% :REM acknowledge message
SYS "Wimp_SendMessage",17,block%,task% :REM acknowledge message
ENDPROC
DEF PROCDataLoadAck(ref%)
......@@ -506,7 +506,7 @@ block=Window%
block!0 = 20
block!12 = ref%
block!16 = 4 :REM DataLoadAck
SYS "Wimp_SendMessage",17,block :REM acknowledge message
SYS "Wimp_SendMessage",17,block,task% :REM acknowledge message
IF doing_scrap_load% THEN doing_scrap_load% = FALSE
ENDPROC
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment