diff options
Diffstat (limited to 'alf/alf.cpp')
| -rw-r--r-- | alf/alf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alf/alf.cpp b/alf/alf.cpp index ad4295d..77fe344 100644 --- a/alf/alf.cpp +++ b/alf/alf.cpp @@ -671,7 +671,7 @@ ALF_Text(HWND hwnd) int len = GetWindowTextLength(hwnd); if (len > 0) { TCHAR *buf = ALF_New(TCHAR, len+1); - if (GetWindowText(hwnd, buf, len)) { + if (GetWindowText(hwnd, buf, len+1)) { return buf; } else { ALF_Free(buf); |
