Commit 1c1cf269 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

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

parent 3a5178e9
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment