Re: imm32: ImmGetDescriptionA return does not include NULL byte
26 Sep
2013
26 Sep
'13
6:16 p.m.
Aric Stewart <aric(a)codeweavers.com> writes:
@@ -1684,7 +1684,7 @@ UINT WINAPI ImmGetDescriptionA(
HeapFree( GetProcessHeap(), 0, buf );
- return len; + return min( len - 1, uBufLen ); }
This may do the right thing on failure, but in an ugly way. A few overflow tests would be a good idea. -- Alexandre Julliard julliard(a)winehq.org
4464
Age (days ago)
4464
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard