mirror of
https://github.com/reactos/reactos.git
synced 2024-07-21 11:48:04 +00:00
minor fix
svn path=/trunk/; revision=8310
This commit is contained in:
parent
765c5f4797
commit
2d6b7b1255
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: prop.c,v 1.7 2004/02/19 21:12:09 weiden Exp $
|
/* $Id: prop.c,v 1.8 2004/02/22 14:09:51 weiden Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -185,11 +185,8 @@ NtUserGetProp(HWND hWnd, ATOM Atom)
|
||||||
PPROPERTY Prop;
|
PPROPERTY Prop;
|
||||||
HANDLE Data = NULL;
|
HANDLE Data = NULL;
|
||||||
|
|
||||||
IntAcquireWinLockShared();
|
|
||||||
|
|
||||||
if (!(WindowObject = IntGetWindowObject(hWnd)))
|
if (!(WindowObject = IntGetWindowObject(hWnd)))
|
||||||
{
|
{
|
||||||
IntReleaseWinLock();
|
|
||||||
SetLastWin32Error(ERROR_INVALID_WINDOW_HANDLE);
|
SetLastWin32Error(ERROR_INVALID_WINDOW_HANDLE);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -202,8 +199,6 @@ NtUserGetProp(HWND hWnd, ATOM Atom)
|
||||||
Data = Prop->Data;
|
Data = Prop->Data;
|
||||||
}
|
}
|
||||||
|
|
||||||
IntReleaseWinLock();
|
|
||||||
|
|
||||||
return(Data);
|
return(Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -237,11 +232,8 @@ NtUserSetProp(HWND hWnd, ATOM Atom, HANDLE Data)
|
||||||
PWINDOW_OBJECT Wnd;
|
PWINDOW_OBJECT Wnd;
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
|
||||||
IntAcquireWinLockExclusive();
|
|
||||||
|
|
||||||
if (!(Wnd = IntGetWindowObject(hWnd)))
|
if (!(Wnd = IntGetWindowObject(hWnd)))
|
||||||
{
|
{
|
||||||
IntReleaseWinLock();
|
|
||||||
SetLastWin32Error(ERROR_INVALID_WINDOW_HANDLE);
|
SetLastWin32Error(ERROR_INVALID_WINDOW_HANDLE);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -250,7 +242,6 @@ NtUserSetProp(HWND hWnd, ATOM Atom, HANDLE Data)
|
||||||
ret = IntSetProp(Wnd, Atom, Data);
|
ret = IntSetProp(Wnd, Atom, Data);
|
||||||
ExReleaseFastMutexUnsafe(&Wnd->PropListLock);
|
ExReleaseFastMutexUnsafe(&Wnd->PropListLock);
|
||||||
|
|
||||||
IntReleaseWinLock();
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue