Oops, fix the crash I just introduced.

This commit is contained in:
blizzard%redhat.com 2002-11-26 16:01:26 +00:00
Родитель 306c1a8c87
Коммит eba3699c64
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -416,8 +416,8 @@ nsScrollbar::NativeCreate(nsIWidget *aParent,
aAppShell, aToolkit, aInitData);
// Do we need to listen for resizes?
PRBool listenForResizes;
if (aNativeParent || aInitData->mListenForResizes)
PRBool listenForResizes = PR_FALSE;
if (aNativeParent || (aInitData && aInitData->mListenForResizes))
listenForResizes = PR_TRUE;
// and do our common creation

Просмотреть файл

@ -1969,8 +1969,8 @@ nsWindow::NativeCreate(nsIWidget *aParent,
aAppShell, aToolkit, aInitData);
// Do we need to listen for resizes?
PRBool listenForResizes;
if (aNativeParent || aInitData->mListenForResizes)
PRBool listenForResizes = PR_FALSE;;
if (aNativeParent || (aInitData && aInitData->mListenForResizes))
listenForResizes = PR_TRUE;
// and do our common creation