Ignore:
Timestamp:
Feb 21, 2010, 5:33:53 PM (16 years ago)
Author:
rlwalsh
Message:

eliminate VACPP warning & info msgs - see Ticket #1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/menu.c

    r10190 r21356  
    395395    HMENU hMenu;
    396396
    397     if ((hMenu = CreateMenu()))
     397    if ((hMenu = CreateMenu()) != 0)
    398398    {
    399399    POPUPMENU *menu = MENU_GetMenu(hMenu);
     
    411411            menu->items[0].fType = MF_SYSMENU | MF_POPUP;
    412412            menu->items[0].fState = 0;
    413             if ((menu = MENU_GetMenu(hPopupMenu))) menu->wFlags |= MF_SYSMENU;
     413            if ((menu = MENU_GetMenu(hPopupMenu)) != 0) menu->wFlags |= MF_SYSMENU;
    414414
    415415        TRACE("GetSysMenu hMenu=%04x (%04x)\n", hMenu, hPopupMenu );
     
    35733573    MENUITEM * lpmi;
    35743574
    3575     if (!(lpmi = MENU_FindItem(&hMenu,&nPos,MF_BYPOSITION))) return -1;
     3575    if (!(lpmi = MENU_FindItem(&hMenu,(UINT*)&nPos,MF_BYPOSITION))) return -1;
    35763576    if (lpmi->fType & MF_POPUP) return -1;
    35773577    return lpmi->wID;
     
    44134413    else if (unicode)
    44144414    {
    4415         if ((menu->text = HeapAlloc( GetProcessHeap(), 0, (strlenW(text)+1) * sizeof(WCHAR) )))
     4415        if ((menu->text = HeapAlloc( GetProcessHeap(), 0, (strlenW(text)+1) * sizeof(WCHAR) )) != NULL)
    44164416            strcpyW( menu->text, text );
    44174417    }
     
    44204420        LPCSTR str = (LPCSTR)text;
    44214421        int len = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 );
    4422         if ((menu->text = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) )))
     4422        if ((menu->text = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) )) != NULL)
    44234423            MultiByteToWideChar( CP_ACP, 0, str, -1, menu->text, len );
    44244424    }
     
    48174817    TRACE("(0x%04x 0x%08lx)\n", hMenu, dwContextHelpID);
    48184818
    4819     if ((menu = MENU_GetMenu(hMenu)))
     4819    if ((menu = MENU_GetMenu(hMenu)) != 0)
    48204820    {
    48214821    menu->dwContextHelpID = dwContextHelpID;
     
    48344834    TRACE("(0x%04x)\n", hMenu);
    48354835
    4836     if ((menu = MENU_GetMenu(hMenu)))
     4836    if ((menu = MENU_GetMenu(hMenu)) != 0)
    48374837    {
    48384838    return menu->dwContextHelpID;
Note: See TracChangeset for help on using the changeset viewer.