"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?
--- 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
For me returning HFILE_ERROR makes one of my application installer fails. If the function returns FALSE, it behaves normaly and exactly like on windows. The application installer works correctly.
Maxime
On Mon, 2005-10-17 at 15:20 +0100, Oliver Stieber wrote:
--- 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
Wanadoo vous informe que cet e-mail a ete controle par l'anti-virus mail. Aucun virus connu a ce jour par nos services n'a ete detecte.
--- Maxime Bellengé maxime.bellenge@wanadoo.fr wrote:
For me returning HFILE_ERROR makes one of my application installer fails. If the function returns FALSE, it behaves normaly and exactly like on windows. The application installer works correctly.
Which version of window are you using and does the test pass? Dmitry has run the test on XP SP1 and it fails with:
file.c:1413: Test failed: hFile != FALSE : -1
-1 is HFILE_ERROR and FALSE is 0.
Oliver.
Maxime
On Mon, 2005-10-17 at 15:20 +0100, Oliver Stieber wrote:
--- 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
Wanadoo vous informe que cet e-mail a ete controle par l'anti-virus mail. Aucun virus connu a ce jour par nos services n'a ete detecte.
___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
"Dmitry Timoshkov" dmitry@baikal.ru 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?
On XP SP1 the test fails (I replaced GetLastError() by the returned hFile):
file.c:1413: Test failed: hFile != FALSE : -1
So it looks like the test is not entirely correct.
--- Dmitry Timoshkov dmitry@baikal.ru wrote:
"Dmitry Timoshkov" dmitry@baikal.ru 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?
On XP SP1 the test fails (I replaced GetLastError() by the returned hFile):
file.c:1413: Test failed: hFile != FALSE : -1
-1 is HFILE_ERROR and FALSE is 0 (defined in windef.h), is this running the old or the patched one?
Oliver.
So it looks like the test is not entirely correct.
-- Dmitry.
___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
"Oliver Stieber" oliver_stieber@yahoo.co.uk wrote:
file.c:1413: Test failed: hFile != FALSE : -1
-1 is HFILE_ERROR and FALSE is 0 (defined in windef.h), is this running the old or the patched one?
It's the result of running existing tests. I just wanted to point out that the second chunk of your patch looks ok, but the first part should be left unchanged. Also, the code in dlls/kernel/file.c,OpenFile() needs to be fixed as well to make your tests pass.
--- Dmitry Timoshkov dmitry@baikal.ru wrote:
"Oliver Stieber" oliver_stieber@yahoo.co.uk wrote:
file.c:1413: Test failed: hFile != FALSE : -1
-1 is HFILE_ERROR and FALSE is 0 (defined in windef.h), is this running the old or the
patched
one?
It's the result of running existing tests. I just wanted to point out that the second chunk of your patch looks ok, but the first part should be left unchanged. Also, the code in dlls/kernel/file.c,OpenFile() needs to be fixed as well to make your tests pass.
Sure, I'll fix the failure text too, I wasn't sure about the protocol for backing out bugs that caused regression.
Oliver.
-- Dmitry.
___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com