ConvertVersionInfo32To16: the end of the child list may also be marked

by a 0-byte child.
This commit is contained in:
Francois Gouget 2001-03-23 19:07:35 +00:00 committed by Alexandre Julliard
parent 1c32a46d5a
commit a7580c53c7
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ void ConvertVersionInfo32To16( VS_VERSION_INFO_STRUCT32 *info32,
/* Convert children */
child16 = VersionInfo16_Children( info16 );
while ( (DWORD)child32 < (DWORD)info32 + wLength )
while ( (DWORD)child32 < (DWORD)info32 + wLength && child32->wLength != 0 )
{
VS_VERSION_INFO_STRUCT32 *nextChild = VersionInfo32_Next( child32 );