Fix a couple of simple unicode merge and substart related bugs
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6195 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8b457d1aa2
commit
359ad0a055
3 changed files with 3 additions and 3 deletions
|
@ -115,7 +115,7 @@ ${MementoSection} "NSIS Core Files (required)" SecCore
|
|||
RMDir /r $SMPROGRAMS\NSIS
|
||||
|
||||
SetOverwrite on
|
||||
File /oname=makensis.exe ..\Bin\substart.exe
|
||||
File ..\makensis.exe
|
||||
File ..\makensisw.exe
|
||||
File ..\COPYING
|
||||
File ..\NSIS.chm
|
||||
|
|
|
@ -915,7 +915,7 @@ int CEXEBuild::LoadLicenseFile(TCHAR *file, TCHAR** pdata, LineParser &line, BOO
|
|||
}
|
||||
if (!memcmp(data+1,_T("{\\rtf"),5*sizeof(TCHAR)))
|
||||
*data = SF_RTF;
|
||||
else if (unicode)
|
||||
else if (*unicode)
|
||||
*data = SF_TEXT|SF_UNICODE;
|
||||
else
|
||||
*data = SF_TEXT;
|
||||
|
|
|
@ -38,7 +38,7 @@ typedef std::ofstream tofstream;
|
|||
typedef std::ifstream tifstream;
|
||||
// Use the following macros to open text files.
|
||||
#define FOPENTEXT(file, mode) fopen(file, mode)
|
||||
#define FOPENTEXT2(file, mode, unicode) (*unicode=FALSE, fopen(file, mode))
|
||||
#define FOPENTEXT2(file, mode, unicode) (*(unicode)=FALSE, fopen(file, mode))
|
||||
#endif
|
||||
|
||||
#ifndef _UNICODE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue