mshtml/tests: Fix BSTR double-free (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9e186fcf09
commit
5587efe51b
|
@ -3118,7 +3118,6 @@ static HRESULT WINAPI ProtocolEx_StartEx(IInternetProtocolEx *iface, IUri *uri,
|
|||
}else {
|
||||
src = FindResourceW(NULL, *path == '/' ? path+1 : path, (const WCHAR*)RT_HTML);
|
||||
ok(src != NULL, "Could not find resource for path %s\n", wine_dbgstr_w(path));
|
||||
SysFreeString(path);
|
||||
if(src) {
|
||||
This->size = SizeofResource(NULL, src);
|
||||
This->data = LoadResource(NULL, src);
|
||||
|
|
Loading…
Reference in New Issue