[project @ 2004-08-25 22:11:14 by bursa]

Handle some more expected errors when renaming file during download (fixes #1014444).

svn path=/import/netsurf/; revision=1248
This commit is contained in:
James Bursa 2004-08-25 22:11:14 +00:00
parent 7ee3ef6189
commit 6e795f9cb5

View File

@ -577,7 +577,10 @@ void ro_gui_download_datasave_ack(wimp_message *message)
/* move or copy temporary file to destination file */
error = xosfscontrol_rename(temp_name, file_name);
if (error && error->errnum == error_BAD_RENAME) {
/* Errors from a filing system have number 0x1XXnn, where XX is the FS
* number, and nn the error number. 0x9F is "Not same disc". */
if (error && (error->errnum == error_BAD_RENAME ||
(error->errnum & 0xFF00FFu) == 0x1009Fu)) {
/* rename failed: copy with delete */
error = xosfscontrol_copy(temp_name, file_name,
osfscontrol_COPY_FORCE |