gdi32: Fix possible NULL pointer dereference (Coverity).

This commit is contained in:
Paul Vriens 2007-08-22 08:40:22 +02:00 committed by Alexandre Julliard
parent 4b098028f3
commit d469eca1c6

View File

@ -1448,8 +1448,8 @@ BOOL WINAPI GdiComment(HDC hdc, UINT cbSize, const BYTE *lpData)
{
if (dc->funcs->pGdiComment)
ret = dc->funcs->pGdiComment( dc->physDev, cbSize, lpData );
DC_ReleaseDCPtr( dc );
}
DC_ReleaseDCPtr( dc );
return ret;
}