(svn r21475) -Fix: MSVC's code analyser says DeleteObject shouldn't be called with NULL

This commit is contained in:
rubidium 2010-12-12 11:34:01 +00:00
parent d332c59a4c
commit 0575c8fec9
1 changed files with 1 additions and 2 deletions

View File

@ -281,9 +281,8 @@ err3:
err2:
SelectObject(dc, oldfont);
ReleaseDC(NULL, dc);
err1:
DeleteObject(font);
err1:
return ret_font_name == NULL ? WIDE_TO_MB((const TCHAR*)logfont->elfFullName) : ret_font_name;
}