Commit bd838dff authored by Jack Moffitt's avatar Jack Moffitt

Don't close stdin and stdout. This is fatal on win32.

svn path=/trunk/vorbis-tools/; revision=2930
parent 899f1868
......@@ -474,11 +474,9 @@ void open_files(param_t *p)
void close_files(param_t *p)
{
/* FIXME: should handle stdin/out */
if (p->in != NULL) fclose(p->in);
if (p->out != NULL) fclose(p->out);
if (p->com != NULL) fclose(p->com);
if (p->in != NULL && p->in != stdin) fclose(p->in);
if (p->out != NULL && p->out != stdout) fclose(p->out);
if (p->com != NULL && p->com != stdout && p->com != stdin) fclose(p->com);
if(p->tempoutfile)
rename(p->outfilename, p->infilename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment