fix small problem with derefing null nscomptr... the compiler should know what I mean, not what I type!

This commit is contained in:
pavlov%netscape.com 2000-03-22 11:08:36 +00:00
Родитель d3b987b848
Коммит 6d95b1f5a4
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -52,6 +52,8 @@ nsFilePicker::nsFilePicker()
mNumberOfFilters = 0;
mUnicodeEncoder = nsnull;
mUnicodeDecoder = nsnull;
mDisplayDirectory = do_CreateInstance("component://mozilla/file/local");
}
//-------------------------------------------------------------------------
@ -98,7 +100,7 @@ NS_IMETHODIMP nsFilePicker::Show(PRInt16 *retval)
char *initialDir;
mDisplayDirectory->GetPath(&initialDir);
if (initialDir && *initialDir) {
ofn.lpstrInitialDir = initialDir;
ofn.lpstrInitialDir = initialDir;
}
ofn.lpstrTitle = title;