1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 11:29:10 +00:00

(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

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;
}