gdi32/tests: Constify a character string

Frédéric Delanoy frederic.delanoy at gmail.com
Sat Dec 21 07:32:24 CST 2013


---
 dlls/gdi32/tests/font.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index cbeb9c3..049787e 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -2132,18 +2132,18 @@ static void test_GetOutlineTextMetrics(void)
     ReleaseDC(0, hdc);
 }
 
-static void testJustification(HDC hdc, PSTR str, RECT *clientArea)
+static void testJustification(HDC hdc, PCSTR str, RECT *clientArea)
 {
     INT         y,
                 breakCount,
                 areaWidth = clientArea->right - clientArea->left,
                 nErrors = 0, e;
-    PSTR        pFirstChar, pLastChar;
+    PCSTR       pFirstChar, pLastChar;
     SIZE        size;
     TEXTMETRICA tm;
     struct err
     {
-        char *start;
+        const char *start;
         int  len;
         int  GetTextExtentExPointWWidth;
     } error[20];
@@ -2220,7 +2220,7 @@ static void test_SetTextJustification(void)
     SIZE size, expect;
     int i;
     WORD indices[2];
-    static char testText[] =
+    static const char testText[] =
             "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do "
             "eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut "
             "enim ad minim veniam, quis nostrud exercitation ullamco laboris "
-- 
1.8.5.2




More information about the wine-patches mailing list