mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1248757 Use string ::Assign() instead of Adopt() when reading blobs as strings. r=asuth
This commit is contained in:
parent
a344e5d2b3
commit
431cc9724f
@ -104,7 +104,7 @@ DoGetBlobAsString(T* aThis, uint32_t aIndex, V& aValue)
|
||||
aThis->GetBlob(aIndex, &size, reinterpret_cast<uint8_t**>(&blob));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
aValue.Adopt(blob, size / sizeof(char_type));
|
||||
aValue.Assign(blob, size / sizeof(char_type));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user