Added missing WIN_ReleasePtr (spotted by Dmitry Timoshkov).

This commit is contained in:
Alexandre Julliard 2002-09-25 03:25:43 +00:00
parent a4273ca385
commit 02b8cb7adf
1 changed files with 1 additions and 0 deletions

View File

@ -2010,6 +2010,7 @@ static LONG WIN_SetWindowLong( HWND hwnd, INT offset, LONG newval,
if (wndPtr->hwndSelf == GetDesktopWindow())
{
/* can't change anything on the desktop window */
WIN_ReleasePtr( wndPtr );
SetLastError( ERROR_ACCESS_DENIED );
return 0;
}