VC6 unicode fixes, NSISException still broken

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6082 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2010-05-04 22:28:53 +00:00
parent 5a5a3a674f
commit b8f6c16fcd
4 changed files with 31 additions and 3 deletions

View file

@ -65,6 +65,14 @@ void dopause(void)
}
}
double my_wtof(const wchar_t *str)
{
char buf[100];
WideCharToMultiByte(0,0,str,-1,buf,100,0,0);
return atof(buf);
}
// Returns 0 if everything is OK
// Returns -1 if can't find the file
// Returns -2 if the file is an invalid bitmap