mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
2003-08-19 Casper S. Hornstrup <chorns@users.sourceforge.net>
* subsys/win32k/ntuser/menu.c (IntSetMenuDefaultItem, IntGetMenuDefaultItem): Fix unsigned/signed warnings. svn path=/trunk/; revision=5710
This commit is contained in:
parent
e89f5dacce
commit
11ee47208a
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-08-19 Casper S. Hornstrup <chorns@users.sourceforge.net>
|
||||||
|
|
||||||
|
* subsys/win32k/ntuser/menu.c (IntSetMenuDefaultItem,
|
||||||
|
IntGetMenuDefaultItem): Fix unsigned/signed warnings.
|
||||||
|
|
||||||
2003-08-19 Martin Fuchs <martin-fuchs@gmx.net>
|
2003-08-19 Martin Fuchs <martin-fuchs@gmx.net>
|
||||||
|
|
||||||
* subsys/system/explorer/taskbar/startmenu.cpp:
|
* subsys/system/explorer/taskbar/startmenu.cpp:
|
||||||
|
|
|
@ -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: menu.c,v 1.21 2003/08/20 14:01:16 weiden Exp $
|
/* $Id: menu.c,v 1.22 2003/08/20 18:55:03 chorns Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -741,7 +741,7 @@ IntSetMenuDefaultItem(PMENU_OBJECT MenuObject, UINT uItem, UINT fByPos)
|
||||||
BOOL ret = FALSE;
|
BOOL ret = FALSE;
|
||||||
PMENU_ITEM MenuItem = MenuObject->MenuItemList;
|
PMENU_ITEM MenuItem = MenuObject->MenuItemList;
|
||||||
|
|
||||||
if(uItem == -1)
|
if(uItem == (UINT)-1)
|
||||||
{
|
{
|
||||||
while(MenuItem)
|
while(MenuItem)
|
||||||
{
|
{
|
||||||
|
@ -836,7 +836,7 @@ IntGetMenuDefaultItem(PMENU_OBJECT MenuObject, UINT fByPos, UINT gmdiFlags,
|
||||||
ExAcquireFastMutexUnsafe(&MenuObject->MenuItemsLock);
|
ExAcquireFastMutexUnsafe(&MenuObject->MenuItemsLock);
|
||||||
IntReleaseMenuObject(SubMenuObject);
|
IntReleaseMenuObject(SubMenuObject);
|
||||||
|
|
||||||
if(sres > -1)
|
if(sres > (UINT)-1)
|
||||||
res = sres;
|
res = sres;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue