Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002619 [JEDI VCL] 00 JVCL Components major always 2005-02-10 07:51 2005-02-11 03:08
Reporter westphal View Status public  
Assigned To robert_marquardt
Priority normal Resolution fixed  
Status resolved   Product Version 3.00 BETA 2
Summary 0002619: TjvDropTarget truncate droped filename
Description in 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
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0006451)
robert_marquardt (developer)
2005-02-11 03:08

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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker