View Issue Details

IDProjectCategoryView StatusLast Update
0002619JEDI VCL00 JVCL Componentspublic2005-02-11 03:08
ReporterwestphalAssigned Torobert_marquardt 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 BETA 2 
Target VersionFixed in Version3.00 
Summary0002619: TjvDropTarget truncate droped filename
Descriptionin unit jvDragDrop function TJvDropTarget.GetFilenames line 687
there is:
  SetLength(Name, Len);
  DragQueryFile(DragH, I, PChar(Name), Len);
but the returned name is finished by a #0 that's mean you need to reserve a buffer of len+1

Proposed (working) correction:
SetLength(Name, Len+1); //needed for #0 end of string
DragQueryFile(DragH, I, PChar(Name), Len+1);
SetLength(Name, Len); //needed for #0 end of string
TagsNo tags attached.

Activities

robert_marquardt

2005-02-11 03:08

developer   ~0006451

Changed as proposed

Issue History

Date Modified Username Field Change
2005-02-10 07:51 westphal New Issue
2005-02-11 03:06 robert_marquardt Status new => assigned
2005-02-11 03:06 robert_marquardt Assigned To => robert_marquardt
2005-02-11 03:08 robert_marquardt Status assigned => resolved
2005-02-11 03:08 robert_marquardt Resolution open => fixed
2005-02-11 03:08 robert_marquardt Note Added: 0006451