mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 23:34:15 +00:00
(svn r21475) -Fix: MSVC's code analyser says DeleteObject shouldn't be called with NULL
This commit is contained in:
parent
d332c59a4c
commit
0575c8fec9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user