Hi,
I reported a crash some days ago, triggered when WritePrivateProfileString is called with a NULL lpFileName. I was advised to test windows' behaviour, which I did. The call behaves differently on Win9x/Me and WinNT/2K/XP. Should I model the patch after this ? If yes, is there an internal Wine mechanism to deal with windows versions, or should I just call GetVersionEx ?
Thomas
Thomas Charbonnel wrote:
Hi,
I reported a crash some days ago, triggered when WritePrivateProfileString is called with a NULL lpFileName. I was advised to test windows' behaviour, which I did. The call behaves differently on Win9x/Me and WinNT/2K/XP. Should I model the patch after this ? If yes, is there an internal Wine mechanism to deal with windows versions, or should I just call GetVersionEx ?
it also depends on the behavior if, let say, Win9x crashed and Win NT don't crash and return an error code, then the simplest is to return the error code in all cases (and leave a comment in the code noting the difference with Win 9x) if the differences are more important, then more advanced techniques should be used
A+
On Tue, 27 May 2003, Thomas Charbonnel wrote:
I reported a crash some days ago, triggered when WritePrivateProfileString is called with a NULL lpFileName. I was advised to test windows' behaviour, which I did. The call behaves differently on Win9x/Me and WinNT/2K/XP. Should I model the patch after this ? If yes, is there an internal Wine mechanism to deal with windows versions, or should I just call GetVersionEx ?
Just model you patch after WinNT/2K/XP. Only in extreme cases do we emulate all versions exactly. When in doubt, do what NT does.