mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 412280 nsGnomeVFSInputStream::DoOpen probably shouldn't treat values other than GNOME_VFS_OK from gnome_vfs_get_file_info as OK r=biesi a=dsicore
This commit is contained in:
parent
933fc11012
commit
6295743202
@ -424,7 +424,9 @@ nsGnomeVFSInputStream::DoOpen()
|
||||
|
||||
GnomeVFSFileInfo info = {0};
|
||||
rv = gnome_vfs_get_file_info(mSpec.get(), &info, GNOME_VFS_FILE_INFO_DEFAULT);
|
||||
if (rv == GNOME_VFS_OK && info.type == GNOME_VFS_FILE_TYPE_DIRECTORY)
|
||||
if (rv == GNOME_VFS_OK)
|
||||
{
|
||||
if (info.type == GNOME_VFS_FILE_TYPE_DIRECTORY)
|
||||
{
|
||||
rv = gnome_vfs_directory_list_load(&mDirList, mSpec.get(),
|
||||
GNOME_VFS_FILE_INFO_DEFAULT);
|
||||
@ -439,6 +441,7 @@ nsGnomeVFSInputStream::DoOpen()
|
||||
LOG(("gnomevfs: gnome_vfs_open returned %d (%s) [spec=\"%s\"]\n",
|
||||
rv, gnome_vfs_result_to_string(rv), mSpec.get()));
|
||||
}
|
||||
}
|
||||
|
||||
gnome_vfs_module_callback_pop(GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user