Am 01.01.2007 um 11:03 schrieb Nick Burns:
HeapFree(GetProcessHeap(), 0, NULL) is supposed to be a nop, so the check is not needed.
According to... http://msdn2.microsoft.com/en-us/library/aa366701.aspx
lpMem [in] ...If this pointer is NULL, the behavior is undefined.
I personally dislike undefined behaviour -- If it is defined to NOP in wine that is sufficent for me.
But I think/tought I had a crash there tho...
- Nick
Am 02.01.2007 um 00:54 schrieb Nick Burns:
I think we have a test case for that, as well as a test case for allocation of 0 bytes. Not sure about the details though, but there was a series of patches before to remove such checks.
DO NOT top post bottom posted emails!!! Nick Burns wrote:
That's incorrect. 90% of MSDN is not correct or incomplete. The behavior is well known and defined (at least in Wine) - NULL pointers are ignored.
So your patch is not correct.
Vitaliy.
Got ya, -- looking at the heapfree impl -- it does the check first (so it is defined in Wine)
-- So please ignore this patch then --
However, this seems dangerous if you wanted to take any of that code and run it under windows (but im guessing xp and 2k work this way -- and few people use 95/98/me anymore)
Where is a good place for api docs other than the MSDN? (and no source does not count as good api docs)
It seems like Microsoft should be notified of incorrect/incomplete api docs -- so they can correct them (but sadly this is a huge thankless task...)
- Nick
On Tuesday 02 January 2007 02:40, Nick Burns wrote:
There are win98 tests run on test.winehq.org. You can check there if the HeapFree() works there.
Where is a good place for api docs other than the MSDN? (and no source does not count as good api docs)
I'm afraid the Wine source is the most complete win32 api doc apart from MSDN.
I sort of doubt they'll fix it for us. They didn't fix it for the EU.
Cheers, Kai