GetObjectA: unlock the object again even in case of failure.

This commit is contained in:
Andreas Mohr 2000-08-25 21:30:34 +00:00 committed by Alexandre Julliard
parent 8328a9d67d
commit 024e881230

View File

@ -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;