From 024e8812302bdcd569c1c7a41a7d9f3e76a2c747 Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Fri, 25 Aug 2000 21:30:34 +0000 Subject: [PATCH] GetObjectA: unlock the object again even in case of failure. --- objects/gdiobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/gdiobj.c b/objects/gdiobj.c index a94cd151927..db559ea3ff0 100644 --- a/objects/gdiobj.c +++ b/objects/gdiobj.c @@ -650,7 +650,7 @@ INT WINAPI GetObjectA( HANDLE handle, INT count, LPVOID buffer ) default: ERR("Invalid GDI Magic %04x\n", ptr->wMagic); - return 0; + break; } GDI_ReleaseObj( handle ); return result;