Skip to content

Commit 75f8d6c

Browse files
committed
fixed:windows app build failure
1 parent d1edef5 commit 75f8d6c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

XEngine_Application/XEngine_APPSimulateKeyInput/XEngine_APPSimulateKeyInputDlg.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ int CALLBACK CXEngineAPPSimulateKeyInputDlg::Keyboard_ThreadCheck1(LPVOID lParam
119119
while (pClass_This->m_bRun)
120120
{
121121
int nRandom = 0;
122-
TCHAR tszWindowName[XPATH_MAX];
122+
TCHAR tszWindowName[MAX_PATH];
123123
memset(tszWindowName, '\0', sizeof(tszWindowName));
124124

125125
pClass_This->m_EditTime1.GetWindowText(m_StrTime);
@@ -181,7 +181,7 @@ int CALLBACK CXEngineAPPSimulateKeyInputDlg::Keyboard_ThreadCheck2(LPVOID lParam
181181
while (pClass_This->m_bRun)
182182
{
183183
int nRandom = 0;
184-
TCHAR tszWindowName[XPATH_MAX];
184+
TCHAR tszWindowName[MAX_PATH];
185185
memset(tszWindowName, '\0', sizeof(tszWindowName));
186186

187187
pClass_This->m_EditTime2.GetWindowText(m_StrTime);
@@ -243,7 +243,7 @@ int CALLBACK CXEngineAPPSimulateKeyInputDlg::Keyboard_ThreadCheck3(LPVOID lParam
243243
while (pClass_This->m_bRun)
244244
{
245245
int nRandom = 0;
246-
TCHAR tszWindowName[XPATH_MAX];
246+
TCHAR tszWindowName[MAX_PATH];
247247
memset(tszWindowName, '\0', sizeof(tszWindowName));
248248

249249
pClass_This->m_EditTime3.GetWindowText(m_StrTime);
@@ -305,7 +305,7 @@ int CALLBACK CXEngineAPPSimulateKeyInputDlg::Keyboard_ThreadCheck4(LPVOID lParam
305305
while (pClass_This->m_bRun)
306306
{
307307
int nRandom = 0;
308-
TCHAR tszWindowName[XPATH_MAX];
308+
TCHAR tszWindowName[MAX_PATH];
309309
memset(tszWindowName, '\0', sizeof(tszWindowName));
310310

311311
pClass_This->m_EditTime4.GetWindowText(m_StrTime);

0 commit comments

Comments
 (0)