Path: utzoo!utgpu!watmath!clyde!att!rutgers!mailrus!ames!vsi1!apple!well!brecher
From: brecher@well.UUCP (Steve Brecher)
Newsgroups: comp.sys.mac.programmer
Subject: Re: SFGetFile and Launch
Keywords: Launch MacWrite 5.0
Message-ID: <7783@well.UUCP>
Date: 30 Nov 88 02:09:29 GMT
References: 
Reply-To: brecher@well.UUCP (Steve Brecher)
Organization: Software Supply, Sunnyvale, CA
Lines: 16


In article , twu@caip.rutgers.edu
(Theodore Wu) cites a problem in programmatically launching MacWrite 5.0.

The problem is a bug in MacWrite 5.0's initialization.  It passes whatever
happens to be in a certain stack location, namely 0(A6) after the first
Link instruction, as the address of a record buffer for _SysEnvirons.
The contents of that stack location happen to be innocuous when Finder
and some other launching facilities do the launch.

To fix the bug, apply the following hexadecimal patch to MacWrite 5.0:

search for: 2F0A 2056 303C 0001 A090 245F 4A6E
change to:  41EE FFF0 303C 0001 A090 4E71 4A68

This code is at offset $CA from the start of CODE 1.