Commit 46487282 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed debugstr_as/us prototypes.

parent 34965563
......@@ -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);
}
/*********************************************************************
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment