Explorar o código

* Fix typo in earlier commit

git-svn-id: trunk@17799 -
marco %!s(int64=14) %!d(string=hai) anos
pai
achega
e490fb1d9d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/chm/src/chmreader.pas

+ 1 - 1
packages/chm/src/chmreader.pas

@@ -1290,7 +1290,7 @@ begin
    EntryCount      := NtoLE(TOC.ReadDWord);
    EntryCount      := NtoLE(TOC.ReadDWord);
    TOPICSOffset    := NtoLE(TOC.ReadDWord);
    TOPICSOffset    := NtoLE(TOC.ReadDWord);
 
 
-   if EntryCount <> 0 then
+   if EntryCount = 0 then
      begin
      begin
        Toc.Free;
        Toc.Free;
        Exit;
        Exit;