mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 07:01:19 +00:00
partial fix fo bug 27910, encoding on mac was coming up wrong
This commit is contained in:
parent
2461b8a211
commit
7a2ae218cd
@ -91,7 +91,7 @@ NS_IMETHODIMP nsBasicStreamGenerator::GetByte(PRUint32 offset, PRUint8 *retval)
|
||||
* depending on whether or not this routine was called an odd or an even number of times
|
||||
*/
|
||||
PRUnichar ret16 = mPassword.CharAt((mState>>1) % mPassword.Length());
|
||||
if ((mState++) & 1) {
|
||||
if (!((mState++) & 1)) {
|
||||
ret16 = ret16>>8;
|
||||
}
|
||||
*retval = (PRUint8)(ret16 & 0xff);
|
||||
|
Loading…
x
Reference in New Issue
Block a user