Module: wine
Branch: master
Commit: 9ac7cc83111e55f008120a4e7d7f1a7340408a64
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9ac7cc83111e55f008120a4e7…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Mon Jun 17 13:22:23 2013 +0200
user32: Check the correct id for the close button when setting the font.
---
dlls/user32/msgbox.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/msgbox.c b/dlls/user32/msgbox.c
index 9328cd0..8b3cb4d 100644
--- a/dlls/user32/msgbox.c
+++ b/dlls/user32/msgbox.c
@@ -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 */