msi: Return length for the empty string in msi_string_lookup.

Hans Leidekker hans at codeweavers.com
Fri Nov 2 09:35:34 CDT 2012


---
 dlls/msi/string.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/msi/string.c b/dlls/msi/string.c
index 5e2c574..486cdf9 100644
--- a/dlls/msi/string.c
+++ b/dlls/msi/string.c
@@ -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;
 
-- 
1.7.10.4






More information about the wine-patches mailing list