Modified xlhtml.c so that when converting password protected files,
xlhtml aborts with an error message.
This commit is contained in:
parent
0e2899d1e0
commit
9226ab470d
@ -770,6 +770,9 @@ void main_line_processor(U16 opcode, U16 version, U32 count, U16 last, U8 data)
|
|||||||
|
|
||||||
switch (opcode)
|
switch (opcode)
|
||||||
{
|
{
|
||||||
|
case 0x02: /* File is password protected */
|
||||||
|
printf("File is password protected. Exiting...");
|
||||||
|
exit(1);
|
||||||
case 0x09: /* BOF */
|
case 0x09: /* BOF */
|
||||||
working_buffer[bufidx++] = data;
|
working_buffer[bufidx++] = data;
|
||||||
if (bufidx == last)
|
if (bufidx == last)
|
||||||
|
Loading…
Reference in New Issue
Block a user