Commit bb24e756 authored by Mark Jansen's avatar Mark Jansen Committed by Alexandre Julliard

comctl32: Safely handle large wParam in SB_GETPARTS.

parent 0d439207
......@@ -401,6 +401,8 @@ STATUSBAR_GetParts (const STATUS_INFO *infoPtr, INT num_parts, INT parts[])
TRACE("(%d)\n", num_parts);
if (parts) {
if (num_parts > infoPtr->numParts)
num_parts = infoPtr->numParts;
for (i = 0; i < num_parts; i++) {
parts[i] = infoPtr->parts[i].x;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment