[Bug 7834] PhotoImpact fails to start (bug in version.dll)

Wine Bugs wine-bugs at winehq.org
Sat Mar 24 20:08:45 CDT 2007


http://bugs.winehq.org/show_bug.cgi?id=7834





------- Additional Comments From focht at 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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list