]> cvs.zerfleddert.de Git - rsbs2/commitdiff
fn_5980c implemented
authorMichael Gernoth <michael@gernoth.net>
Fri, 30 Jan 2009 23:32:49 +0000 (00:32 +0100)
committerMichael Gernoth <michael@gernoth.net>
Fri, 30 Jan 2009 23:32:49 +0000 (00:32 +0100)
rsb-lz.c

index a776e8dcc02ef9d0fd23ae3447eb8ae14d20b56b..ed0c81396c97e60bf848c8a53409b976d4656cd0 100644 (file)
--- a/rsb-lz.c
+++ b/rsb-lz.c
@@ -459,6 +459,19 @@ unsigned int fn_598b4(struct s_59b78 *data, unsigned int arg2)
 
 void fn_5980c(unsigned int arg1, unsigned int mem[])
 {
+       unsigned char *r1;
+       unsigned char *r2;
+
+       r1 = (unsigned char*)mem[0];
+       r2 = (unsigned char*)mem[1];
+
+       if (r1 >= r2)
+               fn_59788();
+
+       *r1 = arg1 & 0xff;
+
+       r1++;
+       mem[0] = (unsigned int)r1;
 }
 
 void fn_5993c(struct s_59b78 *data, unsigned int mem[])
Impressum, Datenschutz