user32: Correct termination of returning string in Text_Ellipsify (fixes bug 10542)

Nikolay Sivov bunglehead at gmail.com
Wed May 21 11:49:07 CDT 2008


Changelog:
    - Correct termination of returning string in Text_Ellipsify

---
 dlls/user32/text.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/text.c b/dlls/user32/text.c
index c85bd48..da3444d 100644
--- a/dlls/user32/text.c
+++ b/dlls/user32/text.c
@@ -179,7 +179,7 @@ static void TEXT_Ellipsify (HDC hdc, WCHAR *str, unsigned int max_len,
     if (modstr)
     {
         memcpy (modstr, str, *len_str * sizeof(WCHAR));
-        *(str+*len_str) = '\0';
+        modstr[*len_str] = '\0';
     }
 }
 
-- 
1.4.4.4






More information about the wine-patches mailing list