mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
[BUG_FIXED] Fix a regression that system64 files cannot be opened by Notepad++.
This commit is contained in:
parent
47a2a4e8d7
commit
1f8ad1e75c
@ -57,17 +57,9 @@ BufferID Notepad_plus::doOpen(const TCHAR *fileName, bool isRecursive, bool isRe
|
||||
return BUFFER_INVALID;
|
||||
}
|
||||
assert( _tcslen( longFileName ) == getFullPathNameResult );
|
||||
|
||||
const DWORD getLongPathNameResult = ::GetLongPathName(longFileName, longFileName, longFileNameBufferSize);
|
||||
if ( getLongPathNameResult == 0 )
|
||||
{
|
||||
return BUFFER_INVALID;
|
||||
}
|
||||
if ( getLongPathNameResult > longFileNameBufferSize )
|
||||
{
|
||||
return BUFFER_INVALID;
|
||||
}
|
||||
assert( _tcslen( longFileName ) == getLongPathNameResult );
|
||||
|
||||
// ignore the returned value of fuction due to win64 redirection system
|
||||
::GetLongPathName(longFileName, longFileName, longFileNameBufferSize);
|
||||
|
||||
bool isSnapshotMode = backupFileName != NULL && PathFileExists(backupFileName);
|
||||
if (isSnapshotMode && !PathFileExists(longFileName)) // UNTITLED
|
||||
|
Loading…
x
Reference in New Issue
Block a user