summaryrefslogtreecommitdiff
path: root/plugins/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/helpers')
-rw-r--r--plugins/helpers/gen_helpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/helpers/gen_helpers.cpp b/plugins/helpers/gen_helpers.cpp
index d076626c15..11af4a257a 100644
--- a/plugins/helpers/gen_helpers.cpp
+++ b/plugins/helpers/gen_helpers.cpp
@@ -44,7 +44,7 @@ TCHAR *Hlp_GetDlgItemText(HWND hwndDlg, int nIDDlgItem) {
TCHAR *Hlp_GetWindowText(HWND hwndDlg)
{
- int len = SendMessage(hwndDlg, WM_GETTEXTLENGTH, 0, 0);
+ int len = GetWindowTextLength(hwndDlg);
if (len < 0)
return NULL;