Hans Leidekker : msi: Handle out-of-memory condition in encode_streamname.
Module: wine Branch: master Commit: bf192f6ac96fe372ad0fbed5ed5b657a091e1c2f URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf192f6ac96fe372ad0fbed5ed... Author: Hans Leidekker <hans(a)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 )
participants (1)
-
Alexandre Julliard