зеркало из https://github.com/mozilla/pjs.git
fix small problem with derefing null nscomptr... the compiler should know what I mean, not what I type!
This commit is contained in:
Родитель
74fccc2067
Коммит
e86f6f8f06
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче