From e140996677c42039e84b4bb1d6cc30f73dfbad80 Mon Sep 17 00:00:00 2001 From: Dmitry Chapyshev Date: Mon, 16 Feb 2009 12:34:32 +0000 Subject: [PATCH] - Fix build svn path=/trunk/; revision=39624 --- reactos/lib/rtl/unicode.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/reactos/lib/rtl/unicode.c b/reactos/lib/rtl/unicode.c index b9fef8fa568..fea55be9e4e 100644 --- a/reactos/lib/rtl/unicode.c +++ b/reactos/lib/rtl/unicode.c @@ -1594,12 +1594,22 @@ RtlLargeIntegerToChar( if (Len > Length) return STATUS_BUFFER_OVERFLOW; +#if 1 /* It needs to be removed, when will probably use SEH in rtl */ + if (String == NULL) + { + return STATUS_ACCESS_VIOLATION; + } +#endif + +#if 0 _SEH2_TRY { +#endif if (Len == Length) RtlCopyMemory(String, Pos, Len); else RtlCopyMemory(String, Pos, Len + 1); +#if 0 } _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) { @@ -1607,6 +1617,7 @@ RtlLargeIntegerToChar( Status = _SEH2_GetExceptionCode(); } _SEH2_END; +#endif return Status; }