home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
PROGRAM
/
SPAWNO40.ZIP
/
SPAWNO40.PAT
< prev
next >
Wrap
Text File
|
1992-01-02
|
1KB
|
29 lines
Official Patch to SPAWNO v4.00 Ralf Brown 12/1/91
Problem:
In large-data models (compact, large, and huge), SPAWNO v4.00 will not swap
to disk if a non-default swap directory is used.
Cause:
The test for a null pointer passed as the address of the list of swap
directories destroys a register which is still needed. If the pointer
is NULL, the code works properly because the destroyed register is reloaded
with the address of the default swap directory list (".").
Fix:
You can patch the libraries SPAWNC.LIB, SPAWNL.LIB, and SPAWNH.LIB (as well
as any existing executables) to fix this by changing
8C C0 0B C7 75 05 8C D8 BF
to
8C C0 09 C0 ...
The above sequence is located at offset 32E3h in SPAWNC.LIB, 33B9h in
SPAWNL.LIB, and offset 3290h in SPAWNH.LIB. Remember to add 0100h when
using DEBUG to apply the patch.
After applying this patch, SPAWNO will assume that any pointer whose
segment is 0000h is NULL; in practice, the only pointers with a segment
value of 0000h are NULL and pointers created with MK_FP.