On Monday, July 15, 2002 10:15 pm, wine-devel-request@winehq.com wrote:
If VC does have a "one correct way", while gcc doesn't, shouldn't we prefer the VC correct one?
No - you should the one that is in the C standard.
In this case '0' should be ok under ALL circumstances. (Unless M$ have completely stuffed their compiler)
David
I'd have to agree with David, that the code should work under all circumstances. So, should this be modified, and another patch submitted? I'd be happy to do that, if it makes life easier... (Reiterating: I'm no C guru, and I know less about unicode, so let me know "the best way", and I'll be happy to change it if needed...)
Once again, the code in question:
if (unicode) { LPWSTR lpText = (LPWSTR)lParam; lpText[0] = '\0'; } else { LPSTR lpText = (LPSTR)lParam; lpText[0] = '\0'; } return 0;
Carl