msi: Explicitly check the returned value against -1 as the variable is unsigned.

This commit is contained in:
James Hawkins 2007-11-05 04:49:07 -05:00 committed by Alexandre Julliard
parent 3a5178e900
commit 1c1cf26997

View file

@ -205,7 +205,7 @@ static int msi_addstring( string_table *st, UINT n, const CHAR *data, int len, U
return n;
}
n = st_find_free_entry( st );
if( n < 0 )
if( n == -1 )
return -1;
}
@ -257,7 +257,7 @@ int msi_addstringW( string_table *st, UINT n, const WCHAR *data, int len, UINT r
return n;
}
n = st_find_free_entry( st );
if( n < 0 )
if( n == -1 )
return -1;
}