mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 03:54:35 +00:00
missed one gnomevfs containing function. of course, that function was buggy...
This commit is contained in:
parent
f430d03a0b
commit
8bf2c555b4
@ -177,7 +177,10 @@ static int file_handle_file_info_block_size(void *file_handle)
|
||||
|
||||
static int64 file_handle_read(void *file_handle, gpointer buffer, guint64 bytes)
|
||||
{
|
||||
g_return_val_if_fail(file_handle, false);
|
||||
g_return_val_if_fail(file_handle, -1);
|
||||
#ifndef MOZ_ENABLE_GNOMEVFS
|
||||
return -1;
|
||||
#else
|
||||
GnomeVFSResult vfs_result = GNOME_VFS_OK;
|
||||
GnomeVFSFileSize read_bytes;
|
||||
vfs_result = gnome_vfs_read((GnomeVFSHandle *)file_handle,
|
||||
@ -186,6 +189,7 @@ static int64 file_handle_read(void *file_handle, gpointer buffer, guint64 bytes)
|
||||
return -1;
|
||||
|
||||
return (int64)read_bytes;
|
||||
#endif
|
||||
}
|
||||
|
||||
static guint64 file_handle_write(void *file_handle, gpointer line)
|
||||
|
Loading…
Reference in New Issue
Block a user