Oops, fix the crash I just introduced.
This commit is contained in:
Родитель
2a063fcb57
Коммит
83c4cf764c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче