From 46487282ddfabbfd45717af37cbc61b7dd9ee41d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 26 Aug 2000 21:16:36 +0000 Subject: [PATCH] Fixed debugstr_as/us prototypes. --- dlls/ntdll/misc.c | 12 ++++++------ dlls/ntdll/ntdll_misc.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dlls/ntdll/misc.c b/dlls/ntdll/misc.c index 25d4097888d..9552d8bf72c 100644 --- a/dlls/ntdll/misc.c +++ b/dlls/ntdll/misc.c @@ -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 ""; + 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 ""; + return debugstr_wn(us->Buffer, us->Length); } /********************************************************************* diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h index c2e87c8d661..1e269f448a5 100644 --- a/dlls/ntdll/ntdll_misc.h +++ b/dlls/ntdll/ntdll_misc.h @@ -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);