Hi,
goto FoldStringA_exit; ^^^^^^^^^^^^^^^^^^^^^^
No allocation has been done yet, just "return 0;" would be enough!
Indeed, although the above is functionally identical. Feel free to submit a patch if you feel strongly about it...
Interesting idea, but I wonder how you can distinguish between equal 0 and FALSE without some real magic! Same applies to lstrcmpi
No magic required. Use GetLastError(), just like it says.
Cheers, Jon
===== "Don't wait for the seas to part, or messiahs to come; Don't you sit around and waste this chance..." - Live
jon_p_griffiths@yahoo.com
__________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com