Author: dchapyshev Date: Mon Feb 16 06:34:32 2009 New Revision: 39624
URL: http://svn.reactos.org/svn/reactos?rev=39624&view=rev Log: - Fix build
Modified: trunk/reactos/lib/rtl/unicode.c
Modified: trunk/reactos/lib/rtl/unicode.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/unicode.c?rev=39624... ============================================================================== --- trunk/reactos/lib/rtl/unicode.c [iso-8859-1] (original) +++ trunk/reactos/lib/rtl/unicode.c [iso-8859-1] Mon Feb 16 06:34:32 2009 @@ -1594,12 +1594,22 @@ 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 @@ Status = _SEH2_GetExceptionCode(); } _SEH2_END; +#endif
return Status; }