From 1b6b32720093c566867abb2af34e1d9e0c2c2e95 Mon Sep 17 00:00:00 2001 From: weidai Date: Sun, 30 Jul 2006 17:15:01 +0000 Subject: change DLL integrity self-test to allow DLL to be Authenticode signed --- fltrimpl.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'fltrimpl.h') diff --git a/fltrimpl.h b/fltrimpl.h index 350bc189..d78bb6b1 100644 --- a/fltrimpl.h +++ b/fltrimpl.h @@ -50,4 +50,15 @@ #define FILTER_OUTPUT_MODIFIABLE(site, output, length, messageEnd) \ FILTER_OUTPUT2_MODIFIABLE(site, 0, output, length, messageEnd) +#define FILTER_OUTPUT2_MAYBE_MODIFIABLE(site, statement, output, length, messageEnd, modifiable) \ + {\ + case site: \ + statement; \ + if (modifiable ? OutputModifiable(site, output, length, messageEnd, blocking) : Output(site, output, length, messageEnd, blocking)) \ + return STDMAX(size_t(1), length-m_inputPosition);\ + } + +#define FILTER_OUTPUT_MAYBE_MODIFIABLE(site, output, length, messageEnd, modifiable) \ + FILTER_OUTPUT2_MAYBE_MODIFIABLE(site, 0, output, length, messageEnd, modifiable) + #endif -- cgit v1.2.1