From e313bf569b732669e8a46359046cee76f6ff38e9 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sun, 22 Jan 2012 14:47:46 +0000 Subject: [PATCH] [PSDK] * Add __out_data_source annotation. svn path=/trunk/; revision=55068 --- reactos/include/psdk/specstrings.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/reactos/include/psdk/specstrings.h b/reactos/include/psdk/specstrings.h index 462b7858d0e..a8207257743 100644 --- a/reactos/include/psdk/specstrings.h +++ b/reactos/include/psdk/specstrings.h @@ -48,3 +48,13 @@ #define __analysis_noreturn #define __kernel_entry +#if (_MSC_VER >= 1000) && !defined(__midl) && defined(_PREFAST_) + +#define __inner_data_source(src_raw) _SA_annotes1(SAL_untrusted_data_source,src_raw) +#define __out_data_source(src_sym) _Post_ __inner_data_source(#src_sym) + +#else + +#define __out_data_source(src_sym) + +#endif