mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1033295 - Crash in nsWindowDataSource::GetWindowForResource. r=bsmedberg
This commit is contained in:
parent
f49b194318
commit
6357c6bfc3
@ -292,6 +292,10 @@ NS_IMETHODIMP
|
||||
nsWindowDataSource::GetWindowForResource(const char *aResourceString,
|
||||
nsIDOMWindow** aResult)
|
||||
{
|
||||
if (NS_WARN_IF(!aResourceString)) {
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIRDFResource> windowResource;
|
||||
gRDFService->GetResource(nsDependentCString(aResourceString),
|
||||
getter_AddRefs(windowResource));
|
||||
|
Loading…
Reference in New Issue
Block a user