Bletch <npwoods(a)mess.org>rg>:
.lnk files (and other files with hidden file extension) got one
character
truncated off the resulting filename.
Modified: trunk/reactos/subsys/system/explorer/explorer.cpp
_____
Modified: trunk/reactos/subsys/system/explorer/explorer.cpp
--- trunk/reactos/subsys/system/explorer/explorer.cpp 2005-09-19
23:00:25 UTC (rev 17938)
+++ trunk/reactos/subsys/system/explorer/explorer.cpp 2005-09-20
07:37:45 UTC (rev 17939)
@@ -230,8 +230,7 @@
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))