git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
incorporate global font information into alignzones for individual chars
[swftools.git]
/
lib
/
example
/
protect.c
diff --git
a/lib/example/protect.c
b/lib/example/protect.c
index
75a0ea8
..
684bc6d
100644
(file)
--- a/
lib/example/protect.c
+++ b/
lib/example/protect.c
@@
-37,7
+37,7
@@
int main(int argn,char ** argv)
return 0;
}
return 0;
}
- fi = open(argv[1],O_RDONLY);
+ fi = open(argv[1],O_RDONLY|O_BINARY);
if (fi<=0)
{
if (fi<=0)
{
@@
-62,7
+62,7
@@
int main(int argn,char ** argv)
if(!ret) printf("Password validation failed\n");
else printf("Password ok\n");
if(!ret) printf("Password validation failed\n");
else printf("Password ok\n");
- swf_DeleteTag(tag);
+ swf_DeleteTag(&swf, tag);
}
tag = next;
}
}
tag = next;
}
@@
-74,10
+74,8
@@
int main(int argn,char ** argv)
if(fi<0) {
fprintf(stderr, "couldn't create output file %s", outfilename);
}
if(fi<0) {
fprintf(stderr, "couldn't create output file %s", outfilename);
}
- if(swf.compressed)
- {if(swf_WriteSWC(fi, &swf)<0) fprintf(stderr, "WriteSWC() failed.\n");}
- else
- {if(swf_WriteSWF(fi, &swf)<0) fprintf(stderr, "WriteSWF() failed.\n");}
+ if(swf_WriteSWF(fi, &swf)<0)
+ fprintf(stderr, "WriteSWF() failed.\n");
close(fi);
close(fi);