user32: Check the correct id for the close button when setting the font.

This commit is contained in:
Alexandre Julliard 2013-06-17 13:22:23 +02:00
parent 0fc73914e2
commit 9ac7cc8311

View File

@ -88,7 +88,7 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
/* set button font */
for (i = IDOK; i <= IDCONTINUE; i++)
/* no close button */
if (i != IDCANCEL)
if (i != IDCLOSE)
SendDlgItemMessageW (hwnd, i, WM_SETFONT, (WPARAM)hFont, 0);
/* set text font */