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

This commit is contained in:
sfraser%netscape.com 2001-01-10 01:16:15 +00:00
parent c85b487427
commit 1698a1ca7e

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))