shdocvw: Fixed allocation failure test.

oldstable
Jacek Caban 2011-03-16 19:21:15 +01:00 committed by Alexandre Julliard
parent 89475918a1
commit b48efd098f
1 changed files with 4 additions and 2 deletions

View File

@ -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;