http://bugs.winehq.org/show_bug.cgi?id=7834
------- Additional Comments From focht@gmx.net 2007-24-03 20:08 ------- Hello,
some addendum... Apply *exact* key comparison only at last child/node level or child walk wont work.
Sample code how this could be accomplished...
---- snip dlls/version/info.c --- static VS_VERSION_INFO_STRUCT32 *VersionInfo32_FindChild( VS_VERSION_INFO_STRUCT32 *info, LPCWSTR szKey, UINT cbKey ) { VS_VERSION_INFO_STRUCT32 *child = VersionInfo32_Children( info );
BOOL lastChildLevel = (strchrW( szKey, '\') == NULL);
while ((char *)child < (char *)info + info->wLength ) { if( lastChildLevel) { if( !strcmpiW( child->szKey, szKey)) return child; } else if( !strncmpiW( child->szKey, szKey, cbKey)) return child;
child = VersionInfo32_Next( child ); }
return NULL; }
---- snip dlls/version/info.c ---
The code changes seem to work with this app. At least it starts now and shows main window. For other issues feel free to post...
Regards