comparison src/gio/gio.c @ 3092:1e39f795348c

gio: make sure we return the number of bytes we pulled off the getc() stack. (This makes wavpack happy, but not libid3tag.)
author William Pitcock <nenolod@atheme.org>
date Thu, 30 Apr 2009 07:02:04 -0500
parents 2bd8895c9fe0
children cdf79f7b0d9e
comparison
equal deleted inserted replaced
3091:2bd8895c9fe0 3092:1e39f795348c
127 memcpy(ptr + count, &uc, 1); 127 memcpy(ptr + count, &uc, 1);
128 count++; 128 count++;
129 } 129 }
130 } 130 }
131 131
132 return g_input_stream_read(G_INPUT_STREAM(handle->istream), (ptr + count), (realsize - count), NULL, NULL); 132 return (g_input_stream_read(G_INPUT_STREAM(handle->istream), (ptr + count), (realsize - count), NULL, NULL) + count);
133 } 133 }
134 134
135 size_t 135 size_t
136 gio_aud_vfs_fwrite_impl(gconstpointer ptr, 136 gio_aud_vfs_fwrite_impl(gconstpointer ptr,
137 size_t size, 137 size_t size,