mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
Fixed a bug in _vsnprintf() with formats %wZ and %Z.
svn path=/trunk/; revision=2116
This commit is contained in:
@@ -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
|
||||
* PROJECT: ReactOS kernel
|
||||
@@ -314,7 +314,7 @@ int _vsnprintf(char *buf, size_t cnt, const char *fmt, va_list args)
|
||||
if (qualifier == 'w') {
|
||||
/* print counted unicode string */
|
||||
PUNICODE_STRING pus = va_arg(args, PUNICODE_STRING);
|
||||
if ((pus == NULL) || (pus->Buffer)) {
|
||||
if ((pus == NULL) || (pus->Buffer == NULL)) {
|
||||
s = "<NULL>";
|
||||
while ((*s) != 0)
|
||||
*str++ = *s++;
|
||||
@@ -325,7 +325,7 @@ int _vsnprintf(char *buf, size_t cnt, const char *fmt, va_list args)
|
||||
} else {
|
||||
/* print counted ascii string */
|
||||
PANSI_STRING pus = va_arg(args, PANSI_STRING);
|
||||
if ((pus == NULL) || (pus->Buffer)) {
|
||||
if ((pus == NULL) || (pus->Buffer == NULL)) {
|
||||
s = "<NULL>";
|
||||
while ((*s) != 0)
|
||||
*str++ = *s++;
|
||||
|
||||
Reference in New Issue
Block a user