Aric Stewart aric@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.