Commit 666c40f3 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Catch bad pointer passed to SetSysColors.

parent 57fc5e7f
......@@ -2927,6 +2927,8 @@ BOOL WINAPI SetSysColors( INT nChanges, const INT *lpSysColor,
{
int i;
if (IS_INTRESOURCE(lpSysColor)) return FALSE; /* stupid app passes a color instead of an array */
for (i = 0; i < nChanges; i++) SYSPARAMS_SetSysColor( lpSysColor[i], lpColorValues[i] );
/* Send WM_SYSCOLORCHANGE message to all windows */
......
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