Bug 5725 - FS_SV_FOpenFileRead fnc gives error when the file is not found and fs_basepath==fs_homepath
Status: RESOLVED WORKSFORME
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: PC All
: P3 minor
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2012-08-06 17:20 EDT by Jan Šimek
Modified: 2012-11-07 12:06:05 EST
2 users (show)

See Also:


Attachments
Patch (403 bytes, patch)
2012-08-06 17:20 EDT, Jan Šimek

Description Jan Šimek 2012-08-06 17:20:08 EDT
Created attachment 3257 [details]
Patch

Using FS_SV_FOpenFileRead to open a file that doesn't exist produces the following error when fs_basepath is the same as fs_homepath:

ERROR: FS_FileForHandle: NULL
Comment 1 Zack Middleton 2012-11-07 12:06:05 EST
It doesn't error for me trying to read non-existent file "qkey" on Linux. It looks like the code is executed exactly the same with and without this patch to me.

Feel free to reopen this issue with more details.