commit | ed9745b94f61d85bc129db33a5ca96eb400fcc2e | [log] [tgz] |
---|---|---|
author | Mike McCormack <mike@codeweavers.com> | Fri Apr 07 13:30:40 2006 +0900 |
committer | Alexandre Julliard <julliard@winehq.org> | Fri Apr 07 11:45:34 2006 +0200 |
tree | cb629e58b0e6471e5967df02ee82f7772c33eda4 | |
parent | 85e8d3adf8820fa43e7998700a34e0e08907eca2 [diff] [blame] |
msi: Check the correct pointer after allocating memory.
diff --git a/dlls/msi/string.c b/dlls/msi/string.c index 7e514c3..cb595e8 100644 --- a/dlls/msi/string.c +++ b/dlls/msi/string.c
@@ -82,7 +82,7 @@ if( entries < 1 ) entries = 1; st->strings = msi_alloc_zero( sizeof (msistring) * entries ); - if( !st ) + if( !st->strings ) { msi_free( st ); return NULL;