https://bugs.winehq.org/show_bug.cgi?id=39275
--- Comment #2 from Martin Fontaigne martinrs@softhome.net --- I tried the patch but it didn't help. It turns out that strdupAtoW() already checks null so there was no need for the patch, and the crash wasn't actually happening there. The arguments were HtmlHelpA(NULL,NULL,HH_SET_WIN_TYPE,data)
I eventually traced the problem to data->pszCustomTabs being sent as -1, and that's where the crash was occurring, in wintypeAtoW() strdupAtoW(data->pszCustomTabs). I overrode with native hhctrl.ocx and the crash doesn't seem to occur. Maybe it's an undocumented feature.
If I force data->pszCustomTabs=NULL, the program seems to continue without problems, so maybe -1 is equivalent to NULL?