diff options
| author | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-04-16 12:38:01 +0200 |
|---|---|---|
| committer | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-04-16 12:38:01 +0200 |
| commit | fc7b721e12b6a07cb2b6566c196b9a6c4265c2af (patch) | |
| tree | 58a6f0b35a4b61b06657de04700907d5c728b83b | |
| parent | d56bd75ee5bc28daddb429b1fb850854970bc5f5 (diff) | |
fix embarrassing bug in ALF_Text
| -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); |
