https://bugs.winehq.org/show_bug.cgi?id=39275
--- Comment #3 from Martin Fontaigne martinrs@softhome.net --- I found an old wine commit 7293f00d9dccf1411ed84817755c6378377bbc33 dated December 13, 2007 that had the following portion in the patch:
/* FIXME: pszCustomTabs is a list of multiple zero-terminated strings so ReadString won't * work in this case */ #if 0 - pHHWinType->pszCustomTabs = CHM_ReadString(pChmInfo, (DWORD)pHHWinType->pszCustomTabs); + info->WinType.pszCustomTabs = info->pszCustomTabs = CHM_ReadString(pChmInfo, (DWORD_PTR)info->WinType.pszCustomTabs); #endif
Maybe it was never meant to be just a string, and passing -1 means it's an empty list.