ICU-311 fixed crashing problem
X-SVN-Rev: 1683
This commit is contained in:
parent
d350a69251
commit
9b404b0904
@ -107,7 +107,7 @@ static void T_UConverter_fromUnicode_LATIN_1 (UConverter * _this,
|
||||
args.pSource = &srcTemp;
|
||||
args.sourceLimit = sourceLimit;
|
||||
args.flush = flush;
|
||||
args.offsets = offsets+myTargetIndex;
|
||||
args.offsets = offsets:offsets+myTargetIndex?0;
|
||||
args.size = sizeof(args);
|
||||
|
||||
FromU_CALLBACK_MACRO(args.converter->fromUContext,
|
||||
|
@ -465,7 +465,7 @@ static void T_UConverter_fromUnicode_MBCS (UConverter * _this,
|
||||
args.pSource = &srcTemp;
|
||||
args.sourceLimit = sourceLimit;
|
||||
args.flush = flush;
|
||||
args.offsets = offsets+myTargetIndex;
|
||||
args.offsets = (offsets)?offsets+myTargetIndex:0;
|
||||
args.size = sizeof(args);
|
||||
/* Needed explicit cast for myTarget on MVS to make compiler happy - JJD */
|
||||
/* HSYS: to do: more smarts */
|
||||
|
@ -470,7 +470,7 @@ void TestConvert()
|
||||
MIA1 = ucnv_getFromUCallBack(myConverter);
|
||||
|
||||
log_verbose("\n---Testing ucnv_setFromUCallBack...\n");
|
||||
ucnv_setFromUCallBack(myConverter, otherUnicodeAction(MIA1), NULL, oldFromUAction, &oldFromUContext, err);
|
||||
ucnv_setFromUCallBack(myConverter, otherUnicodeAction(MIA1), NULL, oldFromUAction, &oldFromUContext, &err);
|
||||
if (U_FAILURE(err))
|
||||
{ log_err("FAILURE! %s\n", myErrorName(err)); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user