diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2009-10-25 00:17:28 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2009-10-25 00:17:28 +0200 |
commit | 293636225e48904107aa9eb9cead1fb8fca531b4 (patch) | |
tree | 0c3f3a3e0dc9318b0646b41c93b331cfbe70d4ae | |
parent | ea47a74bfd558041c3f156610782efbfaaebb627 (diff) | |
download | fpGUI-293636225e48904107aa9eb9cead1fb8fca531b4.tar.xz |
Add some explanatory comments to the code.
-rw-r--r-- | src/HelpFile.pas | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/HelpFile.pas b/src/HelpFile.pas index e91d6cb1..718577a3 100644 --- a/src/HelpFile.pas +++ b/src/HelpFile.pas @@ -999,10 +999,9 @@ begin for i := 0 to _pExtendedHeader^.Numdatabase - 1 do begin pLength := p; // length byte, including itself - SetString(DatabaseName, p+1, pLength^-1); -// GetMemString( p + 1, DatabaseName, ( pLength ^ ) - 1 ); + SetString(DatabaseName, p+1, pLength^-1); // use length value minus the length byte to get the string length _ReferencedFiles.Add( DatabaseName ); - inc( p, pLength^ ); // skip to next entry + inc( p, pLength^ ); // skip to next entry using full length (including length byte) end; FreeMem( pData ); end; |