From 38acdbd855d6cd7cd70cec28c636a862ad8e3874 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 27 Mar 2015 16:36:39 +0000 Subject: [PATCH] --- atlwin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atlwin.h b/atlwin.h index 383c3f0..30c3e25 100644 --- a/atlwin.h +++ b/atlwin.h @@ -30,7 +30,7 @@ inline int GetWindowTextA(__in HWND hWnd, __out ATL::CAtlStringA &sValue) // Query the final string length first. iResult = ::GetWindowTextLengthA(hWnd); if (iResult > 0) { - // Prepare the buffer to format the string data into and read it. + // Prepare the buffer and read the string data into it. LPSTR szBuffer = sValue.GetBuffer(iResult++); if (!szBuffer) return 0; iResult = ::GetWindowTextA(hWnd, szBuffer, iResult); @@ -51,7 +51,7 @@ inline int GetWindowTextW(__in HWND hWnd, __out ATL::CAtlStringW &sValue) // Query the final string length first. iResult = ::GetWindowTextLengthW(hWnd); if (iResult > 0) { - // Prepare the buffer to format the string data into and read it. + // Prepare the buffer and read the string data into it. LPWSTR szBuffer = sValue.GetBuffer(iResult++); if (!szBuffer) return 0; iResult = ::GetWindowTextW(hWnd, szBuffer, iResult);