- fixed two bugs which caused MBCS chars to be treated wrongly in validate_filename and therefore trim too much when validating a path
- converted minus ones to INVALID_FILE_ATTRIBUTES git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3439 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
44ea5c2787
commit
976e1f7097
2 changed files with 25 additions and 21 deletions
|
@ -243,7 +243,7 @@ __forceinline int NSISCALL ui_doinstall(void)
|
|||
{
|
||||
DWORD d;
|
||||
d=GetFileAttributes(p);
|
||||
if (d == (DWORD)-1 || !(d&FILE_ATTRIBUTE_DIRECTORY))
|
||||
if (d == INVALID_FILE_ATTRIBUTES || !(d&FILE_ATTRIBUTE_DIRECTORY))
|
||||
{
|
||||
// if there is no back-slash, the string will become empty, but that's ok because
|
||||
// it would make an invalid instdir anyway
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue