diff options
Diffstat (limited to 'plugins/ShellExt')
-rw-r--r-- | plugins/ShellExt/src/options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ShellExt/src/options.cpp b/plugins/ShellExt/src/options.cpp index e337117171..b8088416c3 100644 --- a/plugins/ShellExt/src/options.cpp +++ b/plugins/ShellExt/src/options.cpp @@ -8,7 +8,7 @@ static void AutoSize(HWND hwnd) HFONT hOldFont = (HFONT)SelectObject(hDC, hFont);
TCHAR szBuf[MAX_PATH];
- int i = GetWindowText(hwnd, szBuf, MAX_PATH);
+ int i = GetWindowText(hwnd, szBuf, SIZEOF(szBuf));
SIZE tS;
GetTextExtentPoint32(hDC, szBuf, i, &tS);
|