[OS/2] Bug 358296: fix crash when closing filepicker with the system menu, r=mkaply

This commit is contained in:
mozilla%weilbacher.org 2006-12-12 22:24:52 +00:00
Родитель f915754ac6
Коммит b9522fa7ee
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -162,7 +162,8 @@ NS_IMETHODIMP nsFilePicker::Show(PRInt16 *retval)
WinFileDlg(HWND_DESKTOP, mWnd, &filedlg);
DosError(FERR_ENABLEHARDERR);
char* tempptr = strstr(filedlg.szFullFile, "^");
*tempptr = '\0';
if (tempptr)
*tempptr = '\0';
if (filedlg.lReturn == DID_OK) {
result = PR_TRUE;
if (!mDisplayDirectory)