From a87b34d5464b1a3e0e0c2804d9fab2b7209d1a36 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Mon, 10 Apr 2006 17:21:46 +0000 Subject: [PATCH] RtlIntegerToUnicodeString incress the interal buffer size to 33bytes as wine does RtlInt64ToUnicodeString incress the interal buffer size to 65bytes as wine does This will take care of some intToChar Bugs I have been locking of it for sometimes now thanks to crashfourit network patch and we talk I did found it. svn path=/trunk/; revision=21541 --- reactos/lib/rtl/unicode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/rtl/unicode.c b/reactos/lib/rtl/unicode.c index 9b29db30cf4..d14073cd8f8 100644 --- a/reactos/lib/rtl/unicode.c +++ b/reactos/lib/rtl/unicode.c @@ -625,7 +625,7 @@ RtlIntegerToUnicodeString( IN OUT PUNICODE_STRING String) { ANSI_STRING AnsiString; - CHAR Buffer[16]; + CHAR Buffer[33]; NTSTATUS Status; Status = RtlIntegerToChar(Value, Base, sizeof(Buffer), Buffer); @@ -653,7 +653,7 @@ RtlInt64ToUnicodeString ( { LARGE_INTEGER LargeInt; ANSI_STRING AnsiString; - CHAR Buffer[32]; + CHAR Buffer[65]; NTSTATUS Status; LargeInt.QuadPart = Value;