Changeset 21356 for trunk/src/user32/combo.c
- Timestamp:
 - Feb 21, 2010, 5:33:53 PM (16 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  trunk/src/user32/combo.c (modified) (5 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/user32/combo.c
r10216 r21356 85 85 * Load combo button bitmap. 86 86 */ 87 static BOOL COMBO_Init( )87 static BOOL COMBO_Init(void) 88 88 { 89 89 HDC hDC; 90 90 91 91 if( hComboBmp ) return TRUE; 92 if( (hDC = CreateCompatibleDC(0)) )92 if( (hDC = CreateCompatibleDC(0)) != 0) 93 93 { 94 94 BOOL bRet = FALSE; 95 if( (hComboBmp = LoadBitmapW(0, MAKEINTRESOURCEW(OBM_COMBO))) )95 if( (hComboBmp = LoadBitmapW(0, MAKEINTRESOURCEW(OBM_COMBO))) != 0) 96 96 { 97 97 BITMAP bm; … … 676 676 PATCOPY ); 677 677 678 if( (bBool = lphc->wState & CBF_BUTTONDOWN) )678 if( (bBool = lphc->wState & CBF_BUTTONDOWN) != FALSE) 679 679 { 680 680 DrawEdge( hdc, &rectButton, EDGE_SUNKEN, BF_RECT ); … … 750 750 { 751 751 size = SendMessageW(lphc->hWndLBox, LB_GETTEXTLEN, id, 0); 752 if( (pText = HeapAlloc( GetProcessHeap(), 0, (size + 1) * sizeof(WCHAR))) )752 if( (pText = HeapAlloc( GetProcessHeap(), 0, (size + 1) * sizeof(WCHAR))) != NULL) 753 753 { 754 754 /* size from LB_GETTEXTLEN may be too large, from LB_GETTEXT is accurate */ … … 1094 1094 if( length ) 1095 1095 { 1096 if( (pText = HeapAlloc( GetProcessHeap(), 0, (length + 1) * sizeof(WCHAR))) )1096 if( (pText = HeapAlloc( GetProcessHeap(), 0, (length + 1) * sizeof(WCHAR))) != NULL) 1097 1097 { 1098 1098 SendMessageW(lphc->hWndLBox, LB_GETTEXT, … … 1897 1897 LPHEADCOMBO lphc = (LPHEADCOMBO)GetWindowLongA( hwnd, 0 ); 1898 1898 1899 TRACE("[%04x]: msg %s wp %08x lp %08lx\n", 1900 hwnd, SPY_GetMsgName(message, hwnd), wParam, lParam ); 1899 TRACE("[%04x]: msg %s wp %08x lp %08lx\n", hwnd, SPY_GetMsgName(message, hwnd), wParam, lParam ); 1901 1900 1902 1901 if( lphc || message == WM_NCCREATE )  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  