mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 11:39:40 +01:00 
			
		
		
		
	* fix for webbug 2870
This commit is contained in:
		
							parent
							
								
									abc41f1c3c
								
							
						
					
					
						commit
						2c782c1382
					
				@ -1156,8 +1156,10 @@ begin
 | 
			
		||||
    Path := PFileDialog(Owner)^.Directory^
 | 
			
		||||
  else Path := '';
 | 
			
		||||
  Path := FExpand(Path+PFileDialog(Owner)^.WildCard);
 | 
			
		||||
  { avoid B Buffer overflow PM }
 | 
			
		||||
  Path := ShrinkPath(Path, Size.X - 1);
 | 
			
		||||
  Color := GetColor($01);
 | 
			
		||||
  MoveChar(B, ' ', Color, Size.X * Size.Y); { fill with empty spaces }
 | 
			
		||||
  MoveChar(B, ' ', Color, Size.X); { fill with empty spaces }
 | 
			
		||||
  WriteLine(0, 0, Size.X, Size.Y, B);
 | 
			
		||||
  MoveStr(B[1], Path, Color);
 | 
			
		||||
  WriteLine(0, 0, Size.X, 1, B);
 | 
			
		||||
 | 
			
		||||
@ -1156,8 +1156,10 @@ begin
 | 
			
		||||
    Path := PFileDialog(Owner)^.Directory^
 | 
			
		||||
  else Path := '';
 | 
			
		||||
  Path := FExpand(Path+PFileDialog(Owner)^.WildCard);
 | 
			
		||||
  { avoid B Buffer overflow PM }
 | 
			
		||||
  Path := ShrinkPath(Path, Size.X - 1);
 | 
			
		||||
  Color := GetColor($01);
 | 
			
		||||
  MoveChar(B, ' ', Color, Size.X * Size.Y); { fill with empty spaces }
 | 
			
		||||
  MoveChar(B, ' ', Color, Size.X); { fill with empty spaces }
 | 
			
		||||
  WriteLine(0, 0, Size.X, Size.Y, B);
 | 
			
		||||
  MoveStr(B[1], Path, Color);
 | 
			
		||||
  WriteLine(0, 0, Size.X, 1, B);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user