Fixed debugstr_as/us prototypes.

This commit is contained in:
Alexandre Julliard 2000-08-26 21:16:36 +00:00
parent 349655636b
commit 46487282dd
2 changed files with 8 additions and 8 deletions

View file

@ -47,16 +47,16 @@ void dump_UnicodeString(PUNICODE_STRING us, BOOLEAN showstring)
}
}
LPCSTR debugstr_as (PANSI_STRING us)
LPCSTR debugstr_as( const STRING *str )
{
if (!us) return NULL;
return debugstr_an(us->Buffer, us->Length);
if (!str) return "<null>";
return debugstr_an(str->Buffer, str->Length);
}
LPCSTR debugstr_us (PUNICODE_STRING us)
LPCSTR debugstr_us( const UNICODE_STRING *us )
{
if (!us) return NULL;
return debugstr_wn(us->Buffer, us->Length);
if (!us) return "<null>";
return debugstr_wn(us->Buffer, us->Length);
}
/*********************************************************************

View file

@ -5,8 +5,8 @@
#include "winnt.h"
/* debug helper */
extern LPCSTR debugstr_as (PANSI_STRING us);
extern LPCSTR debugstr_us (PUNICODE_STRING us);
extern LPCSTR debugstr_as( const STRING *str );
extern LPCSTR debugstr_us( const UNICODE_STRING *str );
extern void dump_ObjectAttributes (POBJECT_ATTRIBUTES ObjectAttributes);
extern void dump_AnsiString(PANSI_STRING as, BOOLEAN showstring);
extern void dump_UnicodeString(PUNICODE_STRING us, BOOLEAN showstring);