Changeset 790 in dev


Ignore:
Timestamp:
Jan 30, 2011, 3:27:01 AM (13 years ago)
Author:
イグトランス (egtra)
Message:

ヌルポインタアクセスで落ちる問題に遭遇したので暫定対処

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/abdev/TabCtrl.cpp

    r772 r790  
    357357        // タブ枠を描画
    358358        ////////////////////////////
    359         colorGray=reinterpret_cast<ItemInfo*>( item.lParam )->Color;
     359        colorGray=item.lParam ? reinterpret_cast<ItemInfo*>( item.lParam )->Color : RGB(0xcc, 0xcc, 0xcc);
    360360
    361361        //ブラシを生成
     
    412412        // タブ枠を描画
    413413        ////////////////////////////
    414         colorGray=reinterpret_cast<ItemInfo*>( item.lParam )->Color;
     414        colorGray=item.lParam ? reinterpret_cast<ItemInfo*>( item.lParam )->Color : RGB(0xcc, 0xcc, 0xcc);
    415415
    416416        //ブラシを生成
Note: See TracChangeset for help on using the changeset viewer.