Module: wine Branch: stable Commit: ffa493e780c4a7a3dbf9398e46ca28289b535894 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ffa493e780c4a7a3dbf9398e46...
Author: Lei Zhang thestig@google.com Date: Mon Oct 13 14:29:32 2008 -0700
version: Prevent infinite looping in VersionInfo32_FindChild. (cherry picked from commit 69871bedf1d787f25fe31df6075bf168d871cc3b)
---
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 ); }