Explorer: eliminate compiler warning Modified: trunk/reactos/base/shell/explorer/utility/shellclasses.cpp _____
Modified: trunk/reactos/base/shell/explorer/utility/shellclasses.cpp --- trunk/reactos/base/shell/explorer/utility/shellclasses.cpp 2006-01-30 21:20:41 UTC (rev 55) +++ trunk/reactos/base/shell/explorer/utility/shellclasses.cpp 2006-01-30 21:37:09 UTC (rev 56) @@ -70,12 +70,16 @@
String COMException::toString() const { TCHAR msg[4*BUFFER_LEN]; +#ifdef __STDC_WANT_SECURE_LIB__ int l = 4*BUFFER_LEN; +#endif LPTSTR p = msg;
int n = _stprintf_s2(p, l, TEXT("%s\nContext: %s"), super::ErrorMessage(), (LPCTSTR)_context.toString()); p += n; +#ifdef __STDC_WANT_SECURE_LIB__ l -= n; +#endif
if (_file) p += _stprintf_s2(p, l, TEXT("\nLocation: %hs:%d"), _file, _line);