msi: Return length for the empty string in msi_string_lookup.

This commit is contained in:
Hans Leidekker 2012-11-02 15:35:34 +01:00 committed by Alexandre Julliard
parent 6955b09023
commit 31ea3f44dd
1 changed files with 3 additions and 1 deletions

View File

@ -352,8 +352,10 @@ int msi_addstringW( string_table *st, const WCHAR *data, int len, USHORT refcoun
const WCHAR *msi_string_lookup( const string_table *st, UINT id, int *len )
{
if( id == 0 )
{
if (len) *len = 0;
return szEmpty;
}
if( id >= st->maxcount )
return NULL;