[svn r719] Fixed bug when changing program info, and the new file starts not on a frame header, but in a file header.
3 #include <libgnomevfs/gnome-vfs.h>
7 assert_message (gboolean valid, const gchar* message)
15 int main (int argc, char** argv)
17 GnomeVFSResult result;
18 GnomeVFSFileSize read;
20 GnomeVFSHandle *handle = NULL;
27 g_debug ("Oppening: %s", argv[1]);
29 result = gnome_vfs_open (&handle, argv[1], GNOME_VFS_OPEN_READ);
30 assert_message (result == GNOME_VFS_OK,
31 gnome_vfs_result_to_string (result));
33 g_debug ("handle %p", handle);
35 while (result == GNOME_VFS_OK) {
36 memset (buff, '\0', sizeof (buff));
37 result = gnome_vfs_read (handle, buff, sizeof (buff), &read);
38 g_debug ("read %"G_GINT64_FORMAT, read);
41 assert_message (result == GNOME_VFS_ERROR_EOF,
42 gnome_vfs_result_to_string (result));
44 result = gnome_vfs_close (handle);
45 assert_message (result == GNOME_VFS_OK,
46 gnome_vfs_result_to_string (result));