mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1625590 Part 2: Make ScaledFontDWrite::GetFontFileName include the null terminator in the returned file name. r=jrmuizel
This ensures that CreateFromFontDescriptor gets the null-terminated WCHAR that it expects. Differential Revision: https://phabricator.services.mozilla.com/D96478
This commit is contained in:
parent
295b2ec8d4
commit
7bd4cba91e
@ -377,7 +377,7 @@ static bool GetFontFileName(RefPtr<IDWriteFontFace> aFontFace,
|
||||
gfxDebug() << "Invalid file \"" << aFileName.data() << "\" for WR font";
|
||||
return false;
|
||||
}
|
||||
aFileName.pop_back();
|
||||
// We leave the null terminator at the end of the returned file name.
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user