Avoid possible confusion with Windows error code

Bugfix by Oxy Genic
Ref: 34857131/
This commit is contained in:
Robin Stuart 2016-02-17 10:37:20 +00:00
parent 7ae95b2b42
commit 2e59058615
31 changed files with 3878 additions and 3878 deletions

View file

@ -112,7 +112,7 @@ int is_sane(char test_string[], unsigned char source[], int length)
}
}
if (!(latch)) {
return ERROR_INVALID_DATA;
return ZINT_ERROR_INVALID_DATA;
}
}
@ -321,7 +321,7 @@ int latin1_process(struct zint_symbol *symbol, unsigned char source[], unsigned
}
if(next == -1) {
strcpy(symbol->errtxt, "error: Invalid character in input string (only Latin-1 characters supported)");
return ERROR_INVALID_DATA;
return ZINT_ERROR_INVALID_DATA;
}
i = next;
} while(i < *length);
@ -350,11 +350,11 @@ int utf8toutf16(struct zint_symbol *symbol, unsigned char source[], int vals[],
} else {
if((source[bpos] >= 0x80) && (source[bpos] <= 0xbf)) {
strcpy(symbol->errtxt, "Corrupt Unicode data");
return ERROR_INVALID_DATA;
return ZINT_ERROR_INVALID_DATA;
}
if((source[bpos] >= 0xc0) && (source[bpos] <= 0xc1)) {
strcpy(symbol->errtxt, "Overlong encoding not supported");
return ERROR_INVALID_DATA;
return ZINT_ERROR_INVALID_DATA;
}
if((source[bpos] >= 0xc2) && (source[bpos] <= 0xdf)) {
@ -371,7 +371,7 @@ int utf8toutf16(struct zint_symbol *symbol, unsigned char source[], int vals[],
} else
if(source[bpos] >= 0xf0) {
strcpy(symbol->errtxt, "Unicode sequences of more than 3 bytes not supported");
return ERROR_INVALID_DATA;
return ZINT_ERROR_INVALID_DATA;
}
}