Hans Leidekker : msi: Return length for the empty string in msi_string_lookup.

Alexandre Julliard julliard at winehq.org
Fri Nov 2 15:52:03 CDT 2012


Module: wine
Branch: master
Commit: 31ea3f44ddd5f964e7479f1f10c53392f06f18e2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=31ea3f44ddd5f964e7479f1f10c53392f06f18e2

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Fri Nov  2 15:35:34 2012 +0100

msi: Return length for the empty string in msi_string_lookup.

---

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

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;
 




More information about the wine-cvs mailing list