mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 05:22:56 +00:00
Sync with trunk r63270.
svn path=/branches/shell-experiments/; revision=63271
This commit is contained in:
commit
8db8073cbb
452 changed files with 42806 additions and 6586 deletions
|
@ -123,11 +123,8 @@ _i64tow_s(__int64 value, wchar_t *str, size_t size, int radix)
|
|||
for (pos = buffer + 63, i = 0; i < size; i++)
|
||||
*p++ = *pos--;
|
||||
|
||||
MSVCRT_INVALID_PMT("str[size] is too small");
|
||||
MSVCRT_INVALID_PMT("str[size] is too small", ERANGE);
|
||||
str[0] = '\0';
|
||||
#ifndef _LIBCNT_
|
||||
*_errno() = ERANGE;
|
||||
#endif
|
||||
return ERANGE;
|
||||
}
|
||||
|
||||
|
@ -195,10 +192,7 @@ _ui64tow_s( unsigned __int64 value, wchar_t *str,
|
|||
} while (value != 0);
|
||||
|
||||
if((size_t)(buffer-pos+65) > size) {
|
||||
MSVCRT_INVALID_PMT("str[size] is too small");
|
||||
#ifndef _LIBCNT_
|
||||
*_errno() = EINVAL;
|
||||
#endif
|
||||
MSVCRT_INVALID_PMT("str[size] is too small", EINVAL);
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
|
@ -338,11 +332,8 @@ _ltow_s(long value, wchar_t *str, size_t size, int radix)
|
|||
for (pos = buffer + 31, i = 0; i < size; i++)
|
||||
*p++ = *pos--;
|
||||
|
||||
MSVCRT_INVALID_PMT("str[size] is too small");
|
||||
MSVCRT_INVALID_PMT("str[size] is too small", ERANGE);
|
||||
str[0] = '\0';
|
||||
#ifndef _LIBCNT_
|
||||
*_errno() = ERANGE;
|
||||
#endif
|
||||
return ERANGE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue