diff --git a/dlls/ntdll/misc.c b/dlls/ntdll/misc.c index 0e4460bdb8c..3c93ce941a7 100644 --- a/dlls/ntdll/misc.c +++ b/dlls/ntdll/misc.c @@ -44,7 +44,7 @@ void dump_ObjectAttributes (const OBJECT_ATTRIBUTES *oa) LPCSTR debugstr_us( const UNICODE_STRING *us ) { if (!us) return ""; - return debugstr_wn(us->Buffer, us->Length); + return debugstr_wn(us->Buffer, us->Length / sizeof(WCHAR)); } /********************************************************************* @@ -136,5 +136,3 @@ double __cdecl NTDLL__CIpow(double x,double y) return pow(x,y); } #endif /* !defined(__i386__) */ - -