mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
fourth argument of WriteConsoleA is mandatory
svn path=/trunk/; revision=1589
This commit is contained in:
parent
3c5287c859
commit
51c7c6091a
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: shell.c,v 1.2 2001/01/21 00:05:53 phreak Exp $
|
||||
/* $Id: shell.c,v 1.3 2001/02/01 16:30:46 jean Exp $
|
||||
*
|
||||
* PROJECT : ReactOS Operating System
|
||||
* DESCRIPTION: ReactOS' Native Shell
|
||||
|
@ -23,11 +23,12 @@ void debug_printf(char* fmt, ...)
|
|||
{
|
||||
va_list args;
|
||||
char buffer[255];
|
||||
DWORD nbChar;
|
||||
|
||||
va_start(args,fmt);
|
||||
vsprintf(buffer,fmt,args);
|
||||
va_end(args);
|
||||
WriteConsoleA(OutputHandle, buffer, strlen(buffer), NULL, NULL);
|
||||
WriteConsoleA(OutputHandle, buffer, strlen(buffer), &nbChar, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue