merge backout, r=backout CLOSED TREE

This commit is contained in:
Jim Mathies 2012-07-24 16:59:50 -05:00
Родитель 8c530ae017 1ebfae60d5
Коммит dcbda8d082
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -539,7 +539,7 @@ nsFilePicker::ShowXPFolderPicker(const nsString& aInitialDir)
browserInfo.lpszTitle = mTitle.get();
browserInfo.ulFlags = BIF_USENEWUI | BIF_RETURNONLYFSDIRS;
browserInfo.hwndOwner = adtw.get();
browserInfo.iImage = 0;
browserInfo.iImage = nsnull;
browserInfo.lParam = reinterpret_cast<LPARAM>(this);
if (!aInitialDir.IsEmpty()) {
@ -548,8 +548,8 @@ nsFilePicker::ShowXPFolderPicker(const nsString& aInitialDir)
browserInfo.lParam = (LPARAM) aInitialDir.get();
browserInfo.lpfn = &BrowseCallbackProc;
} else {
browserInfo.lParam = 0;
browserInfo.lpfn = NULL;
browserInfo.lParam = nsnull;
browserInfo.lpfn = nsnull;
}
LPITEMIDLIST list = ::SHBrowseForFolderW(&browserInfo);
@ -777,7 +777,7 @@ nsFilePicker::ShowXPFilePicker(const nsString& aInitialDir)
CommDlgExtendedError() == FNERR_INVALIDFILENAME) {
// Probably the default file name is too long or contains illegal
// characters. Try again, without a starting file name.
ofn.lpstrFile[0] = L'\0';
ofn.lpstrFile[0] = nsnull;
result = FilePickerWrapper(&ofn, PICKER_TYPE_SAVE);
}
}