mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
re-instate null check for crasher bug 102900, r=rods, sr=attinasi
This commit is contained in:
parent
7099ab82fc
commit
75d651439e
@ -3070,6 +3070,11 @@ nsFontMetricsWin::RealizeFont()
|
||||
}
|
||||
|
||||
nsFontWin* font = FindFont(dc1, 'a');
|
||||
NS_ASSERTION(font, "missing font");
|
||||
if (!font) {
|
||||
::ReleaseDC(win, mDeviceContext->mDC ? dc1 : dc);
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
mFontHandle = font->mFont;
|
||||
|
||||
HFONT oldfont = (HFONT)::SelectObject(dc, (HGDIOBJ) mFontHandle);
|
||||
|
Loading…
Reference in New Issue
Block a user