Commit 55da58f0 authored by Claes Sjofors's avatar Claes Sjofors

wb log return status fix in generate history

parent 3574fe08
......@@ -239,8 +239,10 @@ void wb_log::generate_html( char *filename, pwr_tStatus *sts)
if ( strcmp(help_fname, "") != 0) {
fp = fopen( help_fname, "w");
if ( !fp)
if ( !fp) {
*sts = WNAV__NOFILE;
return;
}
fprintf( fp, "\
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n\
......@@ -276,6 +278,7 @@ CopyPackage Package distributed to process or operator station. Package displaye
fclose( fp);
}
*sts = WNAV__SUCCESS;
}
void wb_log::filter( vector<VItem> &v)
......
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