2 Oct
2003
2 Oct
'03
10:34 p.m.
Alexandre Julliard <julliard(a)winehq.org> writes:
MichaelGuennewig(a)gmx.de (Michael Günnewig) writes:
It's a point, so here is the new patch.
I don't think we need to check string sizes against MAXINT, that's just a waste of time.
Okay you're correct, the check isn't necessary as MAXINT * 2 is MAXUINT - 1 and the size parameter of GlobalAlloc is unsigned. But the * sizeof(WCHAR) in the GlobalAlloc call is necessary to avoid possible memory corruption because of buffer overruns. So here is it. Michael