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

This commit is contained in:
Hans Leidekker 2011-02-01 14:02:01 +01:00 committed by Alexandre Julliard
parent 1370072057
commit bf192f6ac9
1 changed files with 1 additions and 1 deletions

View File

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