Added missing WIN_ReleasePtr (spotted by Dmitry Timoshkov).
This commit is contained in:
parent
a4273ca385
commit
02b8cb7adf
@ -2010,6 +2010,7 @@ static LONG WIN_SetWindowLong( HWND hwnd, INT offset, LONG newval,
|
|||||||
if (wndPtr->hwndSelf == GetDesktopWindow())
|
if (wndPtr->hwndSelf == GetDesktopWindow())
|
||||||
{
|
{
|
||||||
/* can't change anything on the desktop window */
|
/* can't change anything on the desktop window */
|
||||||
|
WIN_ReleasePtr( wndPtr );
|
||||||
SetLastError( ERROR_ACCESS_DENIED );
|
SetLastError( ERROR_ACCESS_DENIED );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user