Re: gdi32: Cast-qual warnings fix (1 of 3)
31 Oct
2006
31 Oct
'06
5:14 a.m.
Andrew Talbot <Andrew.Talbot(a)talbotville.com> 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 julliard(a)winehq.org
6979
Age (days ago)
6979
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard