diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2009-11-07 15:39:02 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2009-11-07 15:39:02 +0200 |
commit | a3d1db9bbd6c88b5435b5931279d845ed8a6c2c4 (patch) | |
tree | b834cdc7b572114e7df022d297b87b0b4fb370fa | |
parent | 2ee704d7f92b25783a8a52f11df9b842ce0d391b (diff) | |
download | fpGUI-a3d1db9bbd6c88b5435b5931279d845ed8a6c2c4.tar.xz |
Finally fixed the "unable to load topic" error
I simply forgot to cast the pointer to PByte before I incremented it to
the next slot.
-rw-r--r-- | src/HelpTopic.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HelpTopic.pas b/src/HelpTopic.pas index 97ac68bd..e04d65b6 100644 --- a/src/HelpTopic.pas +++ b/src/HelpTopic.pas @@ -1324,7 +1324,7 @@ begin raise EHelpFileException.Create('Failed to read complete slot data (text)'); _Slots.Add( Slot ); - inc( pSlotNumber, sizeof( UInt16 ) ); + inc( pByte(pSlotNumber), sizeof( UInt16 ) ); end; except on E: EHelpFileException do |