Incorporate fix for NULL memory streams
authorPhilip Chimento <philip.chimento@gmail.com>
Sat, 27 Aug 2011 20:54:46 +0000 (16:54 -0400)
committerPhilip Chimento <philip.chimento@gmail.com>
Sun, 28 Aug 2011 04:37:14 +0000 (00:37 -0400)
From latest glk-dev and cheapglk. See the discussion on
http://www.intfiction.org/forum/viewtopic.php?f=38&t=3058

libchimara/gi_dispa.c
tests/memstreamtest.ulx

index 4c4b5537bfc63d179655db35a2bd14d9b6a2704a..4564ae4d6a37a36ad4a84c9c5035fb1ecb602e60 100644 (file)
@@ -426,7 +426,7 @@ char *gidispatch_prototype(glui32 funcnum)
         case 0x0042: /* stream_open_file */
             return "4QcIuIu:Qb";
         case 0x0043: /* stream_open_memory */
-            return "4&+#!CnIuIu:Qb";
+            return "4&#!CnIuIu:Qb";
         case 0x0044: /* stream_close */
             return "2Qb<[2IuIu]:";
         case 0x0045: /* stream_set_position */
@@ -585,7 +585,7 @@ char *gidispatch_prototype(glui32 funcnum)
         case 0x0138: /* stream_open_file_uni */
             return "4QcIuIu:Qb";
         case 0x0139: /* stream_open_memory_uni */
-            return "4&+#!IuIuIu:Qb";
+            return "4&#!IuIuIu:Qb";
         case 0x0140: /* request_char_event_uni */
             return "1Qa:";
         case 0x0141: /* request_line_event_uni */
index 7efb5815be187ea23f74b8e11fa3c34daeba79e6..138ca5f158335b77f5ef392fcd4458c02907b754 100644 (file)
Binary files a/tests/memstreamtest.ulx and b/tests/memstreamtest.ulx differ