[RAPPS] Fixes
[reactos.git] / reactos / base / applications / rapps / rosui.h
index b372dfc..2627364 100644 (file)
@@ -495,8 +495,8 @@ public:
 
     void GetWindowTextW(ATL::CStringW& szText)
     {
-        INT length = CWindow::GetWindowTextLengthW();
-        CWindow::GetWindowText(szText.GetBuffer(length), length);
+        INT length = CWindow::GetWindowTextLengthW() + 1;
+        CWindow::GetWindowTextW(szText.GetBuffer(length), length);
         szText.ReleaseBuffer();
     }
 };