measured->interval = 0;
reference->wavelength = 0;
reference->interval = 0;
- pret = read_string_at_offset(datafile, devsig_info_offset, &str, gentype);
+ pret = read_string_at_offset(datafile, devsig_info_offset, &str, OLD_FORMAT(gentype));
if (pret != PARSE_OK)
return pret;
wchar_t* intermediate;
size_t mb_size;
- size_t w_size = MultiByteToWideChar(28591, MB_ERR_INVALID_CHARS, s, -1, NULL, 0);
+ size_t w_size = MultiByteToWideChar(28591, MB_COMPOSITE, s, -1, NULL, 0);
if (w_size == 0) {
PR_DEBUGF("Count MultiByteToWideChar() error 0x%x\n", GetLastError());
return PARSE_E_INTERNAL;
if (intermediate == NULL)
return PARSE_E_NO_MEM;
- if (MultiByteToWideChar(28591, MB_ERR_INVALID_CHARS, s, -1, intermediate, 0) == 0) {
+ if (MultiByteToWideChar(28591, MB_COMPOSITE, s, -1, intermediate, 0) == 0) {
PR_DEBUGF("Convert MultiByteToWideChar() error 0x%x\n", GetLastError());
return PARSE_E_INTERNAL;
}