Changeset 4192 for trunk/console

Show
Ignore:
Timestamp:
08/16/05 13:34:27 (3 years ago)
Author:
phatfil
Message:

fix segfault caused by bug in AddEventTag?() when a windows data was invalid.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/console/src/console.cpp

    r4185 r4192  
    257257    scrollok(winCon[i]->Win(), true); 
    258258    winCon[i]->fProcessInput = &CLicqConsole::InputCommand; 
     259    winCon[i]->data = NULL; 
    259260  } 
    260261  winCon[0]->fProcessInput = &CLicqConsole::InputLogWindow; 
     
    573574  { 
    574575    data = (CData *)winCon[i]->data; 
    575     if (strcmp(data->szId, _szId) == 0 && data->nPPID == _nPPID) 
     576    if (data && strcmp(data->szId, _szId) == 0 && data->nPPID == _nPPID) 
    576577    { 
    577578      winCon[i]->event = _nEventTag;