summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-04 01:17:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-02-04 14:58:04 +0100
commit28a6558f9d3ca2dda3191f8b5b3f2378ee2533da (patch)
tree659674896c7579b94f11a07f239e3e7e2b40a8cb /svx/inc
parentdc35a3974293cfa01cb5b2563798eeacb29a3f46 (diff)
extract max legal dff length to header
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/svx/msdffdef.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/inc/svx/msdffdef.hxx b/svx/inc/svx/msdffdef.hxx
index 42acdbb83233..016197f83dc4 100644
--- a/svx/inc/svx/msdffdef.hxx
+++ b/svx/inc/svx/msdffdef.hxx
@@ -37,6 +37,9 @@
#define DFF_COMMON_RECORD_HEADER_SIZE 8
+const sal_uInt32 nMaxLegalDffRecordLength = \
+ SAL_MAX_UINT32 - DFF_COMMON_RECORD_HEADER_SIZE;
+
#define DFF_PSFLAG_CONTAINER 0x0F // If the version field of a record
// header takes on this value, the
// record header marks the start of