From: Philip Chimento Date: Sat, 27 Aug 2011 20:54:46 +0000 (-0400) Subject: Incorporate fix for NULL memory streams X-Git-Tag: v0.9~62 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=3055a06b737d644af822c5dc7d87abc58f403a0c;p=projects%2Fchimara%2Fchimara.git Incorporate fix for NULL memory streams From latest glk-dev and cheapglk. See the discussion on http://www.intfiction.org/forum/viewtopic.php?f=38&t=3058 --- diff --git a/libchimara/gi_dispa.c b/libchimara/gi_dispa.c index 4c4b553..4564ae4 100644 --- a/libchimara/gi_dispa.c +++ b/libchimara/gi_dispa.c @@ -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 */ diff --git a/tests/memstreamtest.ulx b/tests/memstreamtest.ulx index 7efb581..138ca5f 100644 Binary files a/tests/memstreamtest.ulx and b/tests/memstreamtest.ulx differ