--- Dmitry Timoshkov dmitry@baikal.ru wrote:
"Oliver Stieber" oliver_stieber@yahoo.co.uk wrote:
This patch corrects the test for OpenFile with a style of OF_EXIST. The test should fail if
the
function returns anything other than HFILE_ERROR as a failure. This is based on http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/o... and debugging 'No One Lives Forever Demo' (ftp://ftp.lith.com/pub/nolf/NOLFDemo.zip)
Did you run the test on a real Windows machine or just have read MSDN?
I've haven't run it on a real Windows machine as my windows install is broken at the moment. Returning HFILE_ERROR is the only thing that fixes 'No One Lives Forever Demo' so I'm puzzled as to why the test is incorrect in the first place. (Also I haven't debugged the No One Lives Forever Demo to verify that it is doing a cmp eax, HFILE_ERROR, but I can do).
Oliver.
-- Dmitry.
___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com