Author: hyperion
Date: Tue Nov 4 19:14:54 2008
New Revision: 37196
URL:
http://svn.reactos.org/svn/reactos?rev=37196&view=rev
Log:
modified lib/sdk/crt/conio/cprintf.c
Call va_start before, and va_end after, each call to _vsnprintf
modified ntoskrnl/ntoskrnl.pspec
We pass all include directories and defines to the pspec preprocessor, so we can omit
paths in pspec includes
Modified:
trunk/reactos/lib/sdk/crt/conio/cprintf.c
trunk/reactos/ntoskrnl/ntoskrnl.pspec
Modified: trunk/reactos/lib/sdk/crt/conio/cprintf.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/conio/cprintf.…
==============================================================================
--- trunk/reactos/lib/sdk/crt/conio/cprintf.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/conio/cprintf.c [iso-8859-1] Tue Nov 4 19:14:54 2008
@@ -18,6 +18,8 @@
int written, resize = sizeof(buf), retval;
va_list valist;
+ va_start( valist, fmt );
+
while ((written = _vsnprintf( mem, resize, fmt, valist )) == -1 ||
written > resize)
{
@@ -26,9 +28,11 @@
free (mem);
if (!(mem = (char *)malloc(resize)))
return EOF;
+
+ va_end ( valist );
va_start( valist, fmt );
}
- va_end(valist);
+ va_end ( valist );
retval = _cputs( mem );
if (mem != buf)
free (mem);
Modified: trunk/reactos/ntoskrnl/ntoskrnl.pspec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl.pspec?re…
==============================================================================
--- trunk/reactos/ntoskrnl/ntoskrnl.pspec [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ntoskrnl.pspec [iso-8859-1] Tue Nov 4 19:14:54 2008
@@ -1,4 +1,4 @@
-#include "include/reactos/msvctarget.h"
+#include <msvctarget.h>
@ stdcall CcCanIWrite(ptr long long long)
@ stdcall CcCopyRead(ptr ptr long long ptr ptr)