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/listbox.c

    r21308 r21356  
    25102510    }
    25112511
    2512     TRACE("[%04x]: msg %s wp %08x lp %08lx\n",
    2513           hwnd, SPY_GetMsgName(msg, hwnd), wParam, lParam );
     2512    TRACE("[%04x]: msg %s wp %08x lp %08lx\n", hwnd, SPY_GetMsgName(msg, hwnd), wParam, lParam );
    25142513    switch(msg)
    25152514    {
     
    25342533            LPSTR textA = (LPSTR)lParam;
    25352534            INT countW = MultiByteToWideChar(CP_ACP, 0, textA, -1, NULL, 0);
    2536             if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))))
     2535            if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))) != NULL)
    25372536                MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW);
    25382537        }
     
    25582557            LPSTR textA = (LPSTR)lParam;
    25592558            INT countW = MultiByteToWideChar(CP_ACP, 0, textA, -1, NULL, 0);
    2560             if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))))
     2559            if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))) != NULL)
    25612560                MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW);
    25622561        }
     
    25802579            LPSTR textA = (LPSTR)lParam;
    25812580            INT countW = MultiByteToWideChar(CP_ACP, 0, textA, -1, NULL, 0);
    2582             if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))))
     2581            if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))) != NULL)
    25832582                MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW);
    25842583        }
     
    27322731            LPSTR textA = (LPSTR)lParam;
    27332732            INT countW = MultiByteToWideChar(CP_ACP, 0, textA, -1, NULL, 0);
    2734             if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))))
     2733            if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))) != NULL)
    27352734                MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW);
    27362735        }
     
    27552754            LPSTR textA = (LPSTR)lParam;
    27562755            INT countW = MultiByteToWideChar(CP_ACP, 0, textA, -1, NULL, 0);
    2757             if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))))
     2756            if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))) != NULL)
    27582757                MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW);
    27592758        }
     
    27822781            LPSTR textA = (LPSTR)lParam;
    27832782            INT countW = MultiByteToWideChar(CP_ACP, 0, textA, -1, NULL, 0);
    2784             if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))))
     2783            if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))) != NULL)
    27852784                MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW);
    27862785        }
     
    28812880            LPSTR textA = (LPSTR)lParam;
    28822881            INT countW = MultiByteToWideChar(CP_ACP, 0, textA, -1, NULL, 0);
    2883             if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))))
     2882            if((textW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))) != NULL)
    28842883                MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW);
    28852884        }
     
    29042903
    29052904    case LB_SETTABSTOPS16:
    2906         return LISTBOX_SetTabStops( hwnd, descr, (INT)(INT16)wParam, MapSL(lParam), TRUE );
     2905        return LISTBOX_SetTabStops( hwnd, descr, (INT)(INT16)wParam, MapSL((LPINT)lParam), TRUE );
    29072906
    29082907    case LB_SETTABSTOPS:
     
    30753074    if( !descr->lphc )
    30763075        {
    3077             LPDRAGINFO16 dragInfo = MapSL( lParam );
     3076            LPDRAGINFO16 dragInfo = (LPDRAGINFO16)MapSL(lParam );
    30783077            dragInfo->l = LISTBOX_GetItemFromPoint( descr, dragInfo->pt.x,
    30793078                                                dragInfo->pt.y );
     
    31243123    LB_DESCR *descr = (LB_DESCR *)GetWindowLongA( hwnd, 0 );
    31253124
    3126     TRACE_(combo)("[%04x]: msg %s wp %08x lp %08lx\n",
    3127                   hwnd, SPY_GetMsgName(msg, hwnd), wParam, lParam );
     3125    TRACE_(combo)("[%04x]: msg %s wp %08x lp %08lx\n", hwnd, SPY_GetMsgName(msg, hwnd), wParam, lParam );
    31283126
    31293127    if( descr || msg == WM_CREATE )
Note: See TracChangeset for help on using the changeset viewer.