mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1176214 - Part 14: Changes to netwerk. r=jduell
This commit is contained in:
parent
c0a027a973
commit
a8b5356268
@ -105,7 +105,9 @@ ArrayBufferInputStream::ReadSegments(nsWriteSegmentFun writer, void *closure,
|
||||
// holding area before passing it to writer().
|
||||
{
|
||||
JS::AutoCheckCannotGC nogc;
|
||||
char* src = (char*) JS_GetArrayBufferData(mArrayBuffer->get(), nogc) + mOffset + mPos;
|
||||
bool isShared;
|
||||
char* src = (char*) JS_GetArrayBufferData(mArrayBuffer->get(), &isShared, nogc) + mOffset + mPos;
|
||||
MOZ_ASSERT(!isShared); // Because ArrayBuffer
|
||||
memcpy(buffer, src, count);
|
||||
}
|
||||
uint32_t written;
|
||||
|
Loading…
Reference in New Issue
Block a user