Alexandre Julliard : user32: Catch bad pointer passed to SetSysColors.
Module: wine Branch: master Commit: 666c40f398087466bd0cc2ff0f511bf7154f7708 URL: http://source.winehq.org/git/wine.git/?a=commit;h=666c40f398087466bd0cc2ff0f... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu May 5 13:35:59 2011 +0200 user32: Catch bad pointer passed to SetSysColors. --- dlls/user32/sysparams.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c index dcf11ef..0bd1dd2 100644 --- a/dlls/user32/sysparams.c +++ b/dlls/user32/sysparams.c @@ -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 */
participants (1)
-
Alexandre Julliard