[CALC] Enable support for HTMLHELP (#1877)

Nowadays ReactOS includes support for htmlhelp.h and a working implementation of HHCTRL.OCX. Although current imported HHCTRL.OCX suffers of this issue:

https://bugs.winehq.org/show_bug.cgi?id=47379
See also CORE-15019

+ Revert 'intptr_t' to 'size_t'.
This commit is contained in:
Carlo Bramini 2019-08-26 16:14:01 +02:00 committed by Hermès BÉLUSCA - MAÏTO
parent ca967db5ca
commit 055c5a9bb7
3 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,4 @@
add_definitions(-DDISABLE_HTMLHELP_SUPPORT=1)
list(APPEND SOURCE
convert.c
fun_ieee.c

View File

@ -49,7 +49,7 @@ dummy_HtmlHelpW(HWND hWnd, LPCWSTR pszFile, UINT uCommand, DWORD dwData)
void HtmlHelp_Start(HINSTANCE hInstance)
{
hHtmlHelp = LoadLibrary(_T("HTMLHELP"));
hHtmlHelp = LoadLibrary(_T("HHCTRL.OCX"));
if (hHtmlHelp == NULL)
return;

View File

@ -894,7 +894,7 @@ static void delete_stat_item(int n)
static char *ReadConversion(const char *formula)
{
intptr_t len = strlen(formula);
size_t len = strlen(formula);
char *str = (char *)malloc(len+3);
if (str == NULL)