Add check for NS_RDF_NO_VALUE (which required #including "rdf.h")
git-svn-id: svn://10.0.0.236/trunk@25617 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8bcb4b9328
commit
1bc9290aff
@ -35,6 +35,7 @@
|
||||
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsRDFCID.h"
|
||||
#include "rdf.h"
|
||||
#include "nsIXULSortService.h"
|
||||
#include "nsIBookmarkDataSource.h"
|
||||
|
||||
@ -255,7 +256,7 @@ nsRDFCore::FindBookmarkShortcut(const nsString& aUserInput, nsString & shortcutU
|
||||
RDFBookmarkDataSource);
|
||||
}
|
||||
}
|
||||
if (NS_FAILED(rv))
|
||||
if (NS_FAILED(rv) || (rv == NS_RDF_NO_VALUE))
|
||||
{
|
||||
shortcutURL = "";
|
||||
rv = NS_OK;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user