Outputed swf was corrupt on Windows
[swftools.git] / lib / example / transtest.c
index 56f5180..0e835be 100644 (file)
@@ -151,7 +151,7 @@ int main (int argc,char ** argv)
   
 //  swf_WriteCGI(&swf);
 
-  f = open("transtest.swf",O_RDWR|O_CREAT|O_TRUNC,0644);
+  f = open("transtest.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644);
   if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
   close(f);