mirror of https://github.com/OpenTTD/OpenTTD
(svn r21475) -Fix: MSVC's code analyser says DeleteObject shouldn't be called with NULL
parent
d332c59a4c
commit
0575c8fec9
|
@ -281,9 +281,8 @@ err3:
|
||||||
err2:
|
err2:
|
||||||
SelectObject(dc, oldfont);
|
SelectObject(dc, oldfont);
|
||||||
ReleaseDC(NULL, dc);
|
ReleaseDC(NULL, dc);
|
||||||
err1:
|
|
||||||
DeleteObject(font);
|
DeleteObject(font);
|
||||||
|
err1:
|
||||||
return ret_font_name == NULL ? WIDE_TO_MB((const TCHAR*)logfont->elfFullName) : ret_font_name;
|
return ret_font_name == NULL ? WIDE_TO_MB((const TCHAR*)logfont->elfFullName) : ret_font_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue