We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5e89b0 commit 3af2f48Copy full SHA for 3af2f48
1 file changed
Common/stringhelper.cpp
@@ -229,7 +229,7 @@ namespace StringHelper
229
return std::wstring();
230
}
231
232
- if (count < sizeof(buf))
+ if (count < _countof(buf))
233
{
234
// All characters have been written to the small buffer.
235
return std::wstring(buf, count);
@@ -267,7 +267,7 @@ namespace StringHelper
267
268
269
270
271
272
273
0 commit comments