* smallprint.cc (__small_vsprintf): Use HEAP_NOTHEAP for type.

* strfuncs.cc (sys_wcstombs_alloc): Guard use of ccalloc
	to !__OUTSIDE_CYGWIN__ for use in cygserver.
	(sys_mbstowcs_alloc): Ditto.
This commit is contained in:
Corinna Vinschen
2008-02-04 12:00:19 +00:00
parent b6cde8aa13
commit 340e2fa504
3 changed files with 21 additions and 2 deletions

View File

@@ -197,7 +197,7 @@ __small_vsprintf (char *dst, const char *fmt, va_list ap)
{
char *tmp;
if (!sys_wcstombs_alloc (&tmp, PATH_MAX, us->Buffer,
if (!sys_wcstombs_alloc (&tmp, HEAP_NOTHEAP, us->Buffer,
us->Length / sizeof (WCHAR)))
{
s = "invalid UNICODE_STRING";