Unicode on posix fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6217 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
382b2fa282
commit
7cf2ef1a08
7 changed files with 110 additions and 55 deletions
|
@ -72,7 +72,7 @@ namespace {
|
|||
// This function slurps the whole file into the vector.
|
||||
// Modified so the huge vector isn't returned by value.
|
||||
void read_file(const tstring& filename, vector<unsigned char>& data) {
|
||||
FILE*file = FOPEN(filename.c_str(), _T("rb"));
|
||||
FILE*file = FOPEN(filename.c_str(), ("rb"));
|
||||
|
||||
if (!file) throw NSISException(_T("Can't open file '") + filename + _T("'"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue