Commit b48efd09 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

shdocvw: Fixed allocation failure test.

parent 89475918
......@@ -759,8 +759,10 @@ static const IDocObjectServiceVtbl DocObjectServiceVtbl = {
HRESULT ShellBrowser_Create(IShellBrowser **ppv)
{
ShellBrowser *sb = heap_alloc(sizeof(ShellBrowser));
if(!*ppv)
ShellBrowser *sb;
sb = heap_alloc(sizeof(ShellBrowser));
if(!sb)
return E_OUTOFMEMORY;
sb->IShellBrowser_iface.lpVtbl = &ShellBrowserVtbl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment