From 9226ab470d2e642cbacd89191d2c39a4658226b1 Mon Sep 17 00:00:00 2001 From: slidedraw Date: Wed, 17 Apr 2002 22:14:03 +0000 Subject: [PATCH] Modified xlhtml.c so that when converting password protected files, xlhtml aborts with an error message. --- xlhtml/xlhtml.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xlhtml/xlhtml.c b/xlhtml/xlhtml.c index c3424dc..95fb5fe 100644 --- a/xlhtml/xlhtml.c +++ b/xlhtml/xlhtml.c @@ -770,6 +770,9 @@ void main_line_processor(U16 opcode, U16 version, U32 count, U16 last, U8 data) switch (opcode) { + case 0x02: /* File is password protected */ + printf("File is password protected. Exiting..."); + exit(1); case 0x09: /* BOF */ working_buffer[bufidx++] = data; if (bufidx == last)