Andrew Talbot <[EMAIL PROTECTED]> writes: > @@ -1779,16 +1779,17 @@ > > if (!lprect) > flags &= ~ETO_CLIPPED; > - > + > + reordered_str = HeapAlloc(GetProcessHeap(), 0, count * sizeof(WCHAR)); > + lstrcpynW(reordered_str, str, count);
The input string is not necessarily null-terminated, and in any case you shouldn't allocate a copy unless it's really necessary. -- Alexandre Julliard [EMAIL PROTECTED]
