mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-27 06:47:12 +00:00
Audit of error codes
This commit is contained in:
@@ -122,7 +122,7 @@ int bmp_pixel_plot(struct zint_symbol *symbol, char *pixelbuf) {
|
||||
if ((symbol->output_options & BARCODE_STDOUT) != 0) {
|
||||
#ifdef _MSC_VER
|
||||
if (-1 == _setmode(_fileno(stdout), _O_BINARY)) {
|
||||
strcpy(symbol->errtxt, "Can't open output file");
|
||||
strcpy(symbol->errtxt, "600: Can't open output file");
|
||||
free(bitmap_file_start);
|
||||
free(bitmap);
|
||||
return ZINT_ERROR_FILE_ACCESS;
|
||||
@@ -133,7 +133,7 @@ int bmp_pixel_plot(struct zint_symbol *symbol, char *pixelbuf) {
|
||||
if (!(bmp_file = fopen(symbol->outfile, "wb"))) {
|
||||
free(bitmap_file_start);
|
||||
free(bitmap);
|
||||
strcpy(symbol->errtxt, "Can't open output file (F00)");
|
||||
strcpy(symbol->errtxt, "601: Can't open output file");
|
||||
return ZINT_ERROR_FILE_ACCESS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user