Mike McCormack : msi: Check the correct pointer after allocating
memory.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Apr 7 05:04:36 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: ed9745b94f61d85bc129db33a5ca96eb400fcc2e
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ed9745b94f61d85bc129db33a5ca96eb400fcc2e
Author: Mike McCormack <mike at codeweavers.com>
Date: Fri Apr 7 13:30:40 2006 +0900
msi: Check the correct pointer after allocating memory.
---
dlls/msi/string.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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 @@ string_table *msi_init_stringtable( int
if( entries < 1 )
entries = 1;
st->strings = msi_alloc_zero( sizeof (msistring) * entries );
- if( !st )
+ if( !st->strings )
{
msi_free( st );
return NULL;
More information about the wine-cvs
mailing list