hhctrl.ocx: Apparently it is possible to have chm file without #STRINGS in it, so we should not stop processing file at it.
This commit is contained in:
parent
adc78836b1
commit
7a5e3d3c04
|
@ -229,7 +229,7 @@ BOOL LoadWinTypeFromCHM(HHInfo *info)
|
||||||
info->WinType.cbStruct=sizeof(info->WinType);
|
info->WinType.cbStruct=sizeof(info->WinType);
|
||||||
info->WinType.fUniCodeStrings=TRUE;
|
info->WinType.fUniCodeStrings=TRUE;
|
||||||
info->WinType.pszType=strdupW(defaultwinW);
|
info->WinType.pszType=strdupW(defaultwinW);
|
||||||
info->WinType.pszToc = strdupW(info->pCHMInfo->defToc);
|
info->WinType.pszToc = strdupW(info->pCHMInfo->defToc ? info->pCHMInfo->defToc : null);
|
||||||
info->WinType.pszIndex = strdupW(null);
|
info->WinType.pszIndex = strdupW(null);
|
||||||
info->WinType.fsValidMembers=0;
|
info->WinType.fsValidMembers=0;
|
||||||
info->WinType.fsWinProperties=HHWIN_PROP_TRI_PANE;
|
info->WinType.fsWinProperties=HHWIN_PROP_TRI_PANE;
|
||||||
|
@ -391,7 +391,7 @@ CHMInfo *OpenCHM(LPCWSTR szFile)
|
||||||
&ret->strings_stream);
|
&ret->strings_stream);
|
||||||
if(FAILED(hres)) {
|
if(FAILED(hres)) {
|
||||||
WARN("Could not open #STRINGS stream: %08x\n", hres);
|
WARN("Could not open #STRINGS stream: %08x\n", hres);
|
||||||
return CloseCHM(ret);
|
/* It's not critical, so we pass */
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!ReadChmSystem(ret)) {
|
if(!ReadChmSystem(ret)) {
|
||||||
|
|
Loading…
Reference in New Issue