mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 788729: Check rv of nsDirectoryService::Create, to fix GCC build warning. r=bsmedberg
This commit is contained in:
parent
f8dfa24152
commit
c16fc93e75
@ -74,6 +74,8 @@ nsDirectoryService::GetCurrentProcessDirectory(nsIFile** aFile)
|
||||
rv = nsDirectoryService::Create(nullptr,
|
||||
NS_GET_IID(nsIProperties),
|
||||
getter_AddRefs(dirService)); // needs to be around for life of product
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
if (dirService)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user