Lei Zhang : version: Prevent infinite looping in VersionInfo32_FindChild.

Alexandre Julliard julliard at winehq.org
Tue Oct 14 08:30:01 CDT 2008


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

Author: Lei Zhang <thestig at google.com>
Date:   Mon Oct 13 14:29:32 2008 -0700

version: Prevent infinite looping in VersionInfo32_FindChild.

---

 dlls/version/info.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/version/info.c b/dlls/version/info.c
index 395895b..51e25b3 100644
--- a/dlls/version/info.c
+++ b/dlls/version/info.c
@@ -664,6 +664,7 @@ static const VS_VERSION_INFO_STRUCT32 *VersionInfo32_FindChild( const VS_VERSION
         if (!strncmpiW( child->szKey, szKey, cbKey ) && !child->szKey[cbKey])
             return child;
 
+        if (!(child->wLength)) return NULL;
         child = VersionInfo32_Next( child );
     }
 




More information about the wine-cvs mailing list