bug 170585, Scriptable streams are broken; r=darinf, sr=dougt
update to readdata caller
This commit is contained in:
Родитель
959b2433eb
Коммит
41d8df3c94
|
@ -125,7 +125,7 @@ nsTranscodeJSPrincipals(JSXDRState *xdr, JSPrincipals **jsprinp)
|
|||
if (NS_SUCCEEDED(rv)) {
|
||||
char *data = nsnull;
|
||||
if (size != 0)
|
||||
rv = stream->ReadBytes(&data, size);
|
||||
rv = stream->ReadBytes(size, &data);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
char *olddata;
|
||||
uint32 oldsize;
|
||||
|
|
|
@ -5008,7 +5008,7 @@ nsXULPrototypeScript::Deserialize(nsIObjectInputStream* aStream,
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
char* data;
|
||||
rv = aStream->ReadBytes(&data, size);
|
||||
rv = aStream->ReadBytes(size, &data);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
JSContext* cx = NS_REINTERPRET_CAST(JSContext*,
|
||||
aContext->GetNativeContext());
|
||||
|
|
Загрузка…
Ссылка в новой задаче