*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; exactly version 2 of June 1991 is required
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
if (!libntfs_directory->file_info_list->data) {
g_assert(libntfs_directory->file_info_list->next==NULL);
+ /* Do not clear the list to leave us stuck at EOF - GnomeVFS behaves that way. */
errvfsresult=GNOME_VFS_ERROR_EOF;
}
else {
file_info, /* dest */
libntfs_directory->file_info_list->data); /* src */
gnome_vfs_file_info_unref(libntfs_directory->file_info_list->data);
+ libntfs_directory->file_info_list=g_list_delete_link(
+ libntfs_directory->file_info_list,libntfs_directory->file_info_list);
errvfsresult=GNOME_VFS_OK;
}
- libntfs_directory->file_info_list=g_list_delete_link(
- libntfs_directory->file_info_list,libntfs_directory->file_info_list);
return errvfsresult;
}