home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / PROGRAM / SPAWNO40.ZIP / SPAWNO40.PAT < prev    next >
Text File  |  1992-01-02  |  1KB  |  29 lines

  1. Official Patch to SPAWNO v4.00      Ralf Brown    12/1/91
  2.  
  3. Problem:
  4.  
  5. In large-data models (compact, large, and huge), SPAWNO v4.00 will not swap
  6. to disk if a non-default swap directory is used.
  7.  
  8. Cause:
  9.  
  10. The test for a null pointer passed as the address of the list of swap
  11. directories destroys a register which is still needed.  If the pointer
  12. is NULL, the code works properly because the destroyed register is reloaded
  13. with the address of the default swap directory list (".").
  14.  
  15. Fix:
  16.  
  17. You can patch the libraries SPAWNC.LIB, SPAWNL.LIB, and SPAWNH.LIB (as well
  18. as any existing executables) to fix this by changing
  19.         8C C0 0B C7 75 05 8C D8 BF
  20. to
  21.     8C C0 09 C0 ...
  22. The above sequence is located at offset 32E3h in SPAWNC.LIB, 33B9h in
  23. SPAWNL.LIB, and offset 3290h in SPAWNH.LIB.  Remember to add 0100h when
  24. using DEBUG to apply the patch.
  25.  
  26. After applying this patch, SPAWNO will assume that any pointer whose
  27. segment is 0000h is NULL; in practice, the only pointers with a segment
  28. value of 0000h are NULL and pointers created with MK_FP.
  29.