diff options
Diffstat (limited to 'src/engine/variable.cpp')
| -rw-r--r-- | src/engine/variable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/variable.cpp b/src/engine/variable.cpp index d0c67504..6f818ff3 100644 --- a/src/engine/variable.cpp +++ b/src/engine/variable.cpp | |||
| @@ -1106,7 +1106,7 @@ static HRESULT FormatString( | |||
| 1106 | ::EnterCriticalSection(&pVariables->csAccess); | 1106 | ::EnterCriticalSection(&pVariables->csAccess); |
| 1107 | 1107 | ||
| 1108 | // allocate buffer for format string | 1108 | // allocate buffer for format string |
| 1109 | hr = ::StringCchLengthW(wzIn, STRSAFE_MAX_CCH - 1, &cchIn); | 1109 | hr = ::StringCchLengthW(wzIn, STRSAFE_MAX_LENGTH, &cchIn); |
| 1110 | ExitOnFailure(hr, "Failed to length of format string."); | 1110 | ExitOnFailure(hr, "Failed to length of format string."); |
| 1111 | 1111 | ||
| 1112 | hr = StrAlloc(&sczFormat, cchIn + 1); | 1112 | hr = StrAlloc(&sczFormat, cchIn + 1); |
