mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:32:56 +00:00
Fixed a bug in _vsnprintf() with formats %wZ and %Z.
svn path=/trunk/; revision=2116
This commit is contained in:
parent
0d7487a18c
commit
4ae9a4b859
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: sprintf.c,v 1.5 2001/05/30 14:37:25 ekohl Exp $
|
/* $Id: sprintf.c,v 1.6 2001/07/29 12:42:40 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -314,7 +314,7 @@ int _vsnprintf(char *buf, size_t cnt, const char *fmt, va_list args)
|
||||||
if (qualifier == 'w') {
|
if (qualifier == 'w') {
|
||||||
/* print counted unicode string */
|
/* print counted unicode string */
|
||||||
PUNICODE_STRING pus = va_arg(args, PUNICODE_STRING);
|
PUNICODE_STRING pus = va_arg(args, PUNICODE_STRING);
|
||||||
if ((pus == NULL) || (pus->Buffer)) {
|
if ((pus == NULL) || (pus->Buffer == NULL)) {
|
||||||
s = "<NULL>";
|
s = "<NULL>";
|
||||||
while ((*s) != 0)
|
while ((*s) != 0)
|
||||||
*str++ = *s++;
|
*str++ = *s++;
|
||||||
|
@ -325,7 +325,7 @@ int _vsnprintf(char *buf, size_t cnt, const char *fmt, va_list args)
|
||||||
} else {
|
} else {
|
||||||
/* print counted ascii string */
|
/* print counted ascii string */
|
||||||
PANSI_STRING pus = va_arg(args, PANSI_STRING);
|
PANSI_STRING pus = va_arg(args, PANSI_STRING);
|
||||||
if ((pus == NULL) || (pus->Buffer)) {
|
if ((pus == NULL) || (pus->Buffer == NULL)) {
|
||||||
s = "<NULL>";
|
s = "<NULL>";
|
||||||
while ((*s) != 0)
|
while ((*s) != 0)
|
||||||
*str++ = *s++;
|
*str++ = *s++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue