Commit 02b8cb7a authored by Alexandre Julliard's avatar Alexandre Julliard

Added missing WIN_ReleasePtr (spotted by Dmitry Timoshkov).

parent a4273ca3
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment