Index: files.c =================================================================== --- files.c (revision 2304) +++ files.c (working copy) @@ -739,11 +739,12 @@ fsh[f].handleFiles.file.o = fopen( ospath, "rb" ); fsh[f].handleSync = qfalse; } + } - if ( !fsh[f].handleFiles.file.o ) - { - f = 0; - } + // File not found + if ( !fsh[f].handleFiles.file.o ) + { + f = 0; } *fp = f;