mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Bletch <npwoods@mess.org>:
.lnk files (and other files with hidden file extension) got one character truncated off the resulting filename. svn path=/trunk/; revision=17939
This commit is contained in:
parent
bf84d47c16
commit
8528b9b411
1 changed files with 1 additions and 2 deletions
|
@ -230,8 +230,7 @@ LPCTSTR FileTypeManager::set_type(Entry* entry, bool dont_hide_ext)
|
|||
if (type._neverShowExt && !dont_hide_ext) {
|
||||
int len = ext - entry->_data.cFileName;
|
||||
entry->_display_name = (LPTSTR) malloc((len+1)*sizeof(TCHAR));
|
||||
lstrcpyn(entry->_display_name, entry->_data.cFileName, len);
|
||||
entry->_display_name[len] = TEXT('\0');
|
||||
lstrcpyn(entry->_display_name, entry->_data.cFileName, len + 1);
|
||||
}
|
||||
|
||||
if (is_exe_file(ext))
|
||||
|
|
Loading…
Reference in a new issue