[PATCH] user32: Include space for ampersands when determining MessageBox size.
Alex Henrie
alexhenrie24 at gmail.com
Fri Feb 24 02:08:36 CST 2017
Fixes https://bugs.winehq.org/show_bug.cgi?id=25700
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
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 2ba98c98c4..0839f97dcb 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;
--
2.11.1
More information about the wine-patches
mailing list