r=mkaply, sr=blizzard (platform specific), a=mkaply OS/2 only - add some error checking for querying system fonts git-svn-id: svn://10.0.0.236/trunk@146319 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -460,9 +460,11 @@ nsresult GetSysFontInfo(nsSystemFontID aID, nsFont* aFont)
|
||||
char *szFacename;
|
||||
|
||||
pointSize = atoi(szFontNameSize);
|
||||
|
||||
szFacename = strchr(szFontNameSize, '.');
|
||||
szFacename++;
|
||||
|
||||
if ((pointSize == 0) || (!szFacename) || (*(szFacename++) == '\0')) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
#ifdef OLDCODE
|
||||
PRUnichar name[FACESIZE];
|
||||
|
||||
Reference in New Issue
Block a user