cmm: Fix compilation under and for Linux.

git-svn-id: svn://kolibrios.org@7666 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2019-06-04 01:43:34 +00:00
parent 13388e2db3
commit b6b8407c4f
4 changed files with 12 additions and 5 deletions

View File

@@ -1682,7 +1682,10 @@ FILE *CreateOutPut(char *ext,char *mode)
{
char buf[256];
FILE *diskout;
sprintf(buf,"%s.%s",rawfilename,ext);
if (comfile == file_meos)
sprintf(buf,"%s",rawfilename);
else
sprintf(buf,"%s.%s",rawfilename,ext);
if((diskout=fopen(buf,mode))==NULL){
ErrOpenFile(buf);
exit(e_notcreateoutput);