[ros-diffs] [gedmurphy] 30437: I thought these changes were in the last commit..

gedmurphy at svn.reactos.org gedmurphy at svn.reactos.org
Wed Nov 14 12:43:10 CET 2007


Author: gedmurphy
Date: Wed Nov 14 14:43:10 2007
New Revision: 30437

URL: http://svn.reactos.org/svn/reactos?rev=30437&view=rev
Log:
I thought these changes were in the last commit..

Modified:
    trunk/reactos/base/applications/mstsc/connectdialog.c

Modified: trunk/reactos/base/applications/mstsc/connectdialog.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/connectdialog.c?rev=30437&r1=30436&r2=30437&view=diff
==============================================================================
--- trunk/reactos/base/applications/mstsc/connectdialog.c (original)
+++ trunk/reactos/base/applications/mstsc/connectdialog.c Wed Nov 14 14:43:10 2007
@@ -1093,7 +1093,7 @@
                 HDC hdcMem = CreateCompatibleDC(hdc);
                 if (hdcMem)
                 {
-                    WCHAR lpBuffer[32];
+                    WCHAR szBuffer[32];
                     RECT bmpRc, txtRc;
                     LOGFONTW lf;
                     HFONT hFont;
@@ -1120,7 +1120,10 @@
 
                     ZeroMemory(&lf, sizeof(LOGFONT));
 
-                    if (LoadStringW(hInst, IDS_HEADERTEXT1, lpBuffer, 32))
+                    if (LoadStringW(hInst,
+                                    IDS_HEADERTEXT1,
+                                    szBuffer,
+                                    sizeof(szBuffer) / sizeof(WCHAR)))
                     {
                         lf.lfHeight = 24;
                         lf.lfCharSet = OEM_CHARSET;
@@ -1136,7 +1139,11 @@
                             DPtoLP(hdc, (PPOINT)&txtRc, 2);
                             SetTextColor(hdc, RGB(255,255,255));
                             SetBkMode(hdc, TRANSPARENT);
-                            DrawTextW(hdc, lpBuffer, -1, &txtRc, DT_BOTTOM | DT_SINGLELINE);
+                            DrawTextW(hdc,
+                                      szBuffer,
+                                      -1,
+                                      &txtRc,
+                                      DT_BOTTOM | DT_SINGLELINE);
                             DeleteObject(hFont);
                         }
                     }
@@ -1146,7 +1153,10 @@
                     txtRc.right = bmpRc.right * 0.75;
                     txtRc.bottom = pInfo->headerbitmap.bmHeight * 0.9;
 
-                    if (LoadStringW(hInst, IDS_HEADERTEXT2, lpBuffer, 32))
+                    if (LoadStringW(hInst,
+                                    IDS_HEADERTEXT2,
+                                    szBuffer,
+                                    sizeof(szBuffer) / sizeof(WCHAR)))
                     {
                         lf.lfHeight = 30;
                         lf.lfCharSet = OEM_CHARSET;
@@ -1162,7 +1172,11 @@
                             DPtoLP(hdc, (PPOINT)&txtRc, 2);
                             SetTextColor(hdc, RGB(255,255,255));
                             SetBkMode(hdc, TRANSPARENT);
-                            DrawTextW(hdc, lpBuffer, -1, &txtRc, DT_TOP | DT_SINGLELINE);
+                            DrawTextW(hdc,
+                                      szBuffer,
+                                      -1,
+                                      &txtRc,
+                                      DT_TOP | DT_SINGLELINE);
                         }
                     }
 




More information about the Ros-diffs mailing list