git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92773cb
)
fixed swf_WriteCGI()
author
kramm
<kramm>
Sun, 22 Jun 2003 06:58:52 +0000
(06:58 +0000)
committer
kramm
<kramm>
Sun, 22 Jun 2003 06:58:52 +0000
(06:58 +0000)
lib/rfxswf.c
patch
|
blob
|
history
diff --git
a/lib/rfxswf.c
b/lib/rfxswf.c
index
f480458
..
1c3c2da
100644
(file)
--- a/
lib/rfxswf.c
+++ b/
lib/rfxswf.c
@@
-1222,8
+1222,10
@@
int swf_WriteSWF(int handle, SWF * swf) // Writes SWF to file, returns leng
{
struct writer_t writer;
swf->compressed = 0;
- if(handle<0)
+ if(handle<0) {
+ writer_init_nullwriter(&writer);
return swf_WriteSWF2(&writer, swf);
+ }
writer_init_filewriter(&writer, handle);
return swf_WriteSWF2(&writer, swf);
}
@@
-1232,8
+1234,10
@@
int swf_WriteSWC(int handle, SWF * swf) // Writes SWF to file, returns leng
{
struct writer_t writer;
swf->compressed = 1;
- if(handle<0)
+ if(handle<0) {
+ writer_init_nullwriter(&writer);
return swf_WriteSWF2(&writer, swf);
+ }
writer_init_filewriter(&writer, handle);
return swf_WriteSWF2(&writer, swf);
}