mirror of
https://github.com/reactos/wine.git
synced 2025-02-18 03:48:01 +00:00
msi: Explicitly check the returned value against -1 as the variable is unsigned.
This commit is contained in:
parent
3a5178e900
commit
1c1cf26997
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user