Changeset 21356 for trunk/src/user32/listbox.c
- Timestamp:
- Feb 21, 2010, 5:33:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/listbox.c
r21308 r21356 2510 2510 } 2511 2511 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 ); 2514 2513 switch(msg) 2515 2514 { … … 2534 2533 LPSTR textA = (LPSTR)lParam; 2535 2534 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) 2537 2536 MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW); 2538 2537 } … … 2558 2557 LPSTR textA = (LPSTR)lParam; 2559 2558 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) 2561 2560 MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW); 2562 2561 } … … 2580 2579 LPSTR textA = (LPSTR)lParam; 2581 2580 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) 2583 2582 MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW); 2584 2583 } … … 2732 2731 LPSTR textA = (LPSTR)lParam; 2733 2732 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) 2735 2734 MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW); 2736 2735 } … … 2755 2754 LPSTR textA = (LPSTR)lParam; 2756 2755 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) 2758 2757 MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW); 2759 2758 } … … 2782 2781 LPSTR textA = (LPSTR)lParam; 2783 2782 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) 2785 2784 MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW); 2786 2785 } … … 2881 2880 LPSTR textA = (LPSTR)lParam; 2882 2881 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) 2884 2883 MultiByteToWideChar(CP_ACP, 0, textA, -1, textW, countW); 2885 2884 } … … 2904 2903 2905 2904 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 ); 2907 2906 2908 2907 case LB_SETTABSTOPS: … … 3075 3074 if( !descr->lphc ) 3076 3075 { 3077 LPDRAGINFO16 dragInfo = MapSL(lParam );3076 LPDRAGINFO16 dragInfo = (LPDRAGINFO16)MapSL(lParam ); 3078 3077 dragInfo->l = LISTBOX_GetItemFromPoint( descr, dragInfo->pt.x, 3079 3078 dragInfo->pt.y ); … … 3124 3123 LB_DESCR *descr = (LB_DESCR *)GetWindowLongA( hwnd, 0 ); 3125 3124 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 ); 3128 3126 3129 3127 if( descr || msg == WM_CREATE )
Note:
See TracChangeset
for help on using the changeset viewer.