From 47bccb26ed798a592373c6a66fab4895325671f3 Mon Sep 17 00:00:00 2001 From: Semen Panevin Date: Sun, 20 Mar 2011 19:07:00 +0000 Subject: [PATCH] Fixed build --- goldlib/gall/gespell.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/goldlib/gall/gespell.cpp b/goldlib/gall/gespell.cpp index c2b86cd..6a65eb5 100644 --- a/goldlib/gall/gespell.cpp +++ b/goldlib/gall/gespell.cpp @@ -208,8 +208,8 @@ bool CMSSpellLang::Init(HKEY hKey, const char *name) byte engine[_MAX_PATH]; byte dictionary[_MAX_PATH]; - const unsigned long esize = sizeof(engine); - const unsigned long dsize = sizeof(dictionary); + unsigned long esize = sizeof(engine); + unsigned long dsize = sizeof(dictionary); mLIDC = atoi(name); strcpy(mLangCode, name); @@ -355,7 +355,7 @@ void CMSSpellLang::BuildRTable(const char *codeset) LOG.errpointer(__FILE__,__LINE__); LOG.printf( "! Parameter is NULL pointer: CMSSpellLang::BuildRTable(NULL). " "This is bug in program, please make report to developers." ); - return false; + return; } strcpy(codeset2, "CP"); GetLocaleInfo(mLIDC, LOCALE_IDEFAULTANSICODEPAGE, &codeset2[2], sizeof(codeset2)-2); @@ -381,7 +381,7 @@ void CMSSpellLang::BuildSuggest(const char *text, CSpellSuggestV &suggest) LOG.errpointer(__FILE__,__LINE__); LOG.printf( "! Parameter is NULL pointer: CMSSpellLang::BuildSuggest(NULL,suggest). " "This is bug in program, please make report to developers." ); - return false; + return; } if (!SpellSuggest(text, false)) return;