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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user