unrar.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --- rar.hpp.dist Thu Jun 12 14:16:15 2003
  2. +++ rar.hpp Thu Jun 12 14:15:31 2003
  3. @@ -16,6 +16,7 @@
  4. #include "int64.hpp"
  5. #include "unicode.hpp"
  6. #include "errhnd.hpp"
  7. +#include "global.hpp"
  8. #include "array.hpp"
  9. #include "timefn.hpp"
  10. #include "headers.hpp"
  11. @@ -71,7 +72,6 @@
  12. #include "smallfn.hpp"
  13. #include "ulinks.hpp"
  14. -#include "global.hpp"
  15. #endif
  16. --- rarvm.cpp.orig 2003-05-15 10:37:58.000000000 +0200
  17. +++ rarvm.cpp 2003-07-28 14:36:01.000000000 +0200
  18. @@ -376,16 +376,16 @@
  19. case VM_PUSHA:
  20. {
  21. const int RegCount=sizeof(R)/sizeof(R[0]);
  22. - for (int I=0,SP=R[7]-4;I<RegCount;I++,SP-=4)
  23. - SET_VALUE(false,(uint *)&Mem[SP & VM_MEMMASK],R[I]);
  24. + for (int I=0,SPTR=R[7]-4;I<RegCount;I++,SPTR-=4)
  25. + SET_VALUE(false,(uint *)&Mem[SPTR & VM_MEMMASK],R[I]);
  26. R[7]-=RegCount*4;
  27. }
  28. break;
  29. case VM_POPA:
  30. {
  31. const int RegCount=sizeof(R)/sizeof(R[0]);
  32. - for (uint I=0,SP=R[7];I<RegCount;I++,SP+=4)
  33. - R[7-I]=GET_VALUE(false,(uint *)&Mem[SP & VM_MEMMASK]);
  34. + for (uint I=0,SPTR=R[7];I<RegCount;I++,SPTR+=4)
  35. + R[7-I]=GET_VALUE(false,(uint *)&Mem[SPTR & VM_MEMMASK]);
  36. }
  37. break;
  38. case VM_PUSHF: