From a17738e1545ff7dbef6398b8ec1eab93ab59c9a1 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 30 六月 2022 19:14:47 +0800
Subject: [PATCH] '功能完善'

---
 ConsoleApplication/Win32Util.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ConsoleApplication/Win32Util.cpp b/ConsoleApplication/Win32Util.cpp
index 953dbe6..37be5c6 100644
--- a/ConsoleApplication/Win32Util.cpp
+++ b/ConsoleApplication/Win32Util.cpp
@@ -61,7 +61,7 @@
 
  string Win32Util::getWindowName(HWND hwnd) {
 	 int length = GetWindowTextLength(hwnd);
-	 TCHAR getbuf[100];
+	 TCHAR getbuf[1000];
 	 GetWindowText(hwnd, getbuf, length + 1);
 	 int iLen = WideCharToMultiByte(CP_ACP, 0, getbuf, -1, NULL, 0, NULL, NULL);   //首先计算TCHAR 长度。
 	 char* chRtn = new char[iLen * sizeof(char)];  //定义一个 TCHAR 长度大小的 CHAR 类型。

--
Gitblit v1.8.0