Jacek Caban : shdocvw: Fixed allocation failure test.
Alexandre Julliard
julliard at winehq.org
Thu Mar 17 12:26:58 CDT 2011
Module: wine
Branch: master
Commit: b48efd098f837a949c0200b8d076514a222a9c1f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b48efd098f837a949c0200b8d076514a222a9c1f
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Mar 16 19:21:15 2011 +0100
shdocvw: Fixed allocation failure test.
---
dlls/shdocvw/shellbrowser.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/shdocvw/shellbrowser.c b/dlls/shdocvw/shellbrowser.c
index 2715bcc..1ccf379 100644
--- a/dlls/shdocvw/shellbrowser.c
+++ b/dlls/shdocvw/shellbrowser.c
@@ -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;
More information about the wine-cvs
mailing list