updated with a lot of .data size optimizations.. used eccles' optimization for certain registry settings too (thanks dave).. code size may have gone slightly up,but it let me take a lot of data size off (had to change some of the default error msgs too)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1039 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
5e096c1b2b
commit
88acdf2345
4 changed files with 27 additions and 16 deletions
|
@ -408,13 +408,22 @@ int NSISCALL ui_doinstall(void)
|
|||
#ifdef NSIS_CONFIG_LICENSEPAGE
|
||||
{ // load richedit DLL
|
||||
WNDCLASS wc={0,};
|
||||
if (!LoadLibrary("RichEd20.dll")) LoadLibrary("RichEd32.dll");
|
||||
static char str1[]="RichEd20.dll";
|
||||
static char str2[]="RichEdit20A";
|
||||
if (!LoadLibrary(str1))
|
||||
{
|
||||
str1[6]='3';
|
||||
str1[7]='2';
|
||||
LoadLibrary(str1);
|
||||
}
|
||||
|
||||
// make richedit20a point to RICHEDIT
|
||||
if (!GetClassInfo(NULL,"RichEdit20A",&wc))
|
||||
if (!GetClassInfo(NULL,str2,&wc))
|
||||
{
|
||||
GetClassInfo(NULL,"RICHEDIT",&wc);
|
||||
wc.lpszClassName = "RichEdit20A";
|
||||
str2[8]=0;
|
||||
GetClassInfo(NULL,str2,&wc);
|
||||
wc.lpszClassName = str2;
|
||||
str2[8]='2';
|
||||
RegisterClass(&wc);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue