Hans Leidekker : msi: Handle out-of-memory condition in encode_streamname.

Alexandre Julliard julliard at winehq.org
Tue Feb 1 12:25:00 CST 2011


Module: wine
Branch: master
Commit: bf192f6ac96fe372ad0fbed5ed5b657a091e1c2f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bf192f6ac96fe372ad0fbed5ed5b657a091e1c2f

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Feb  1 14:02:01 2011 +0100

msi: Handle out-of-memory condition in encode_streamname.

---

 dlls/msi/table.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index d3675e2..739e189 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -156,7 +156,7 @@ LPWSTR encode_streamname(BOOL bTable, LPCWSTR in)
 
     if( !bTable )
         count = lstrlenW( in )+2;
-    out = msi_alloc( count*sizeof(WCHAR) );
+    if (!(out = msi_alloc( count*sizeof(WCHAR) ))) return NULL;
     p = out;
 
     if( bTable )




More information about the wine-cvs mailing list