Fix bug: in a PI such as <?test ?pi?>, we got into an incorrect state
on the second ?. This is now properly handled.
This commit is contained in:
parent
4eec490403
commit
dc6a4cf430
|
@ -314,9 +314,12 @@ doBuffer:
|
||||||
callback->PI(buffer2, buffer);
|
callback->PI(buffer2, buffer);
|
||||||
buffer.clear();
|
buffer.clear();
|
||||||
state = StateNone;
|
state = StateNone;
|
||||||
|
} else if(ch == '?') {
|
||||||
|
buffer += L'?';
|
||||||
} else {
|
} else {
|
||||||
buffer += L'?';
|
buffer += L'?';
|
||||||
buffer += ch;
|
buffer += ch;
|
||||||
|
state = StatePIData;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue