mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 11:48:03 +00:00
Fix double locking of DC
svn path=/trunk/; revision=5894
This commit is contained in:
parent
e9b3a79c09
commit
3a922d8d38
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: text.c,v 1.45 2003/08/28 12:35:59 gvg Exp $ */
|
/* $Id: text.c,v 1.46 2003/08/28 13:50:49 gvg Exp $ */
|
||||||
|
|
||||||
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
|
@ -813,13 +813,6 @@ NtGdiGetTextExtentPoint32(HDC hDC,
|
||||||
BOOLEAN Result;
|
BOOLEAN Result;
|
||||||
PTEXTOBJ TextObj;
|
PTEXTOBJ TextObj;
|
||||||
|
|
||||||
dc = DC_LockDc(hDC);
|
|
||||||
|
|
||||||
if (NULL == dc)
|
|
||||||
{
|
|
||||||
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
if (Count < 0)
|
if (Count < 0)
|
||||||
{
|
{
|
||||||
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
||||||
|
|
Loading…
Reference in a new issue