Alex Henrie : user32: Include space for ampersands when determining MessageBox size.
Alexandre Julliard
julliard at winehq.org
Fri Feb 24 14:48:09 CST 2017
Module: wine
Branch: master
Commit: 0a2f9f54ebfef4adc3e0438ffcb9cf531ac1ba73
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0a2f9f54ebfef4adc3e0438ffcb9cf531ac1ba73
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Fri Feb 24 01:08:36 2017 -0700
user32: Include space for ampersands when determining MessageBox size.
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/msgbox.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/msgbox.c b/dlls/user32/msgbox.c
index 2ba98c9..0839f97 100644
--- a/dlls/user32/msgbox.c
+++ b/dlls/user32/msgbox.c
@@ -261,8 +261,8 @@ static void MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
/* Get the text size */
GetClientRect(GetDlgItem(hwnd, MSGBOX_IDTEXT), &rect);
rect.top = rect.left = rect.bottom = 0;
- DrawTextW( hdc, lpszText, -1, &rect,
- DT_LEFT | DT_EXPANDTABS | DT_WORDBREAK | DT_CALCRECT);
+ DrawTextW(hdc, lpszText, -1, &rect,
+ DT_LEFT | DT_EXPANDTABS | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
/* Min text width corresponds to space for the buttons */
tleft = ileft;
if (iwidth) tleft += ileft + iwidth;
More information about the wine-cvs
mailing list