Skip to content

Commit

Permalink
fix wrong max len for tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiotOnAGE FugHanteLe committed May 13, 2023
1 parent 30aad57 commit 3b34953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DesktopINI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ INT_PTR CALLBACK TagEditDialog(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lP
switch (LOWORD(wParam)) {
case IDOK:
// 获取用户输入的文本
GetDlgItemText(hwndDlg, IDC_INPUTBOX, result, sizeof(result));
GetDlgItemText(hwndDlg, IDC_INPUTBOX, result, MAX_PATH);

// 关闭对话框
EndDialog(hwndDlg, 0);
Expand Down

0 comments on commit 3b34953

Please sign in to comment.