mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 889089 - crash in mozilla::places::History::FetchPageInfo. r=mak
This commit is contained in:
parent
62b86193e4
commit
e45a5e49e5
@ -2141,6 +2141,8 @@ History::FetchPageInfo(VisitData& _place, bool* _exists)
|
||||
"FROM moz_places "
|
||||
"WHERE url = :page_url "
|
||||
);
|
||||
NS_ENSURE_STATE(stmt);
|
||||
|
||||
rv = URIBinder::Bind(stmt, NS_LITERAL_CSTRING("page_url"), _place.spec);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
@ -2150,11 +2152,12 @@ History::FetchPageInfo(VisitData& _place, bool* _exists)
|
||||
"FROM moz_places "
|
||||
"WHERE guid = :guid "
|
||||
);
|
||||
NS_ENSURE_STATE(stmt);
|
||||
|
||||
rv = stmt->BindUTF8StringByName(NS_LITERAL_CSTRING("guid"), _place.guid);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
NS_ENSURE_TRUE(stmt, rv);
|
||||
mozStorageStatementScoper scoper(stmt);
|
||||
|
||||
rv = stmt->ExecuteStep(_exists);
|
||||
|
Loading…
Reference in New Issue
Block a user