mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 10:44:47 +00:00
gdi32: Avoid a needless goto.
This commit is contained in:
parent
e8007d9d7b
commit
17ac48b6a4
1 changed files with 6 additions and 6 deletions
|
@ -3223,14 +3223,14 @@ UINT WINAPI GetTextCharsetInfo(HDC hdc, LPFONTSIGNATURE fs, DWORD flags)
|
|||
UINT ret = DEFAULT_CHARSET;
|
||||
DC *dc = DC_GetDCPtr(hdc);
|
||||
|
||||
if (!dc) goto done;
|
||||
if (dc)
|
||||
{
|
||||
if (dc->gdiFont)
|
||||
ret = WineEngGetTextCharsetInfo(dc->gdiFont, fs, flags);
|
||||
|
||||
if (dc->gdiFont)
|
||||
ret = WineEngGetTextCharsetInfo(dc->gdiFont, fs, flags);
|
||||
GDI_ReleaseObj(hdc);
|
||||
}
|
||||
|
||||
GDI_ReleaseObj(hdc);
|
||||
|
||||
done:
|
||||
if (ret == DEFAULT_CHARSET && fs)
|
||||
memset(fs, 0, sizeof(FONTSIGNATURE));
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue