[ros-diffs] [gvg] 17939: Bletch <npwoods@mess.org>:

gvg at svn.reactos.com gvg at svn.reactos.com
Tue Sep 20 09:37:50 CEST 2005


Bletch <npwoods at mess.org>:
.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))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050920/b53f9f67/attachment.html


More information about the Ros-diffs mailing list