mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Fix the Windows build, r=kin. The error handling in this file is, um, interesting.
This commit is contained in:
parent
c85b487427
commit
1698a1ca7e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user