Fix the Windows build, r=kin. The error handling in this file is, um, interesting.

git-svn-id: svn://10.0.0.236/trunk@84690 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sfraser%netscape.com
2001-01-10 01:16:15 +00:00
parent 65e5cb111d
commit f6610d34eb

View File

@@ -524,9 +524,10 @@ LRESULT CMozillaBrowser::OnSaveAs(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL
}
// Create an nsILocalFile from the selected file path.
nsCOMPtr<nsILocalFile> theFile(do_CreateInstance(NS_LOCAL_FILE_CONTRACTID, &hr);
if (FAILED(hr))
return hr;
nsresult rv;
nsCOMPtr<nsILocalFile> theFile(do_CreateInstance(NS_LOCAL_FILE_CONTRACTID, &rv));
if (NS_FAILED(rv))
return rv;
hr = theFile->InitWithPath(szFile);
if (FAILED(hr))