user32: Catch bad pointer passed to SetSysColors.

This commit is contained in:
Alexandre Julliard 2011-05-05 13:35:59 +02:00
parent 57fc5e7fcc
commit 666c40f398
1 changed files with 2 additions and 0 deletions

View File

@ -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 */