archivers/qpak.c
changeset 456 ecaab6f9e19f
parent 450 b60e00958aad
child 457 92e898299c7d
equal deleted inserted replaced
455:4798cf95bf2f 456:ecaab6f9e19f
   152     BAIL_IF_MACRO(*fileHandle == NULL, NULL, 0);
   152     BAIL_IF_MACRO(*fileHandle == NULL, NULL, 0);
   153     
   153     
   154     if (!readui32(*fileHandle, &sig))
   154     if (!readui32(*fileHandle, &sig))
   155         goto openPak_failed;
   155         goto openPak_failed;
   156     
   156     
   157     if (sig == QPAK_MAGIC)
   157     if (sig != QPAK_MAGIC)
   158     {
   158     {
   159         __PHYSFS_setError(ERR_UNSUPPORTED_ARCHIVE);
   159         __PHYSFS_setError(ERR_UNSUPPORTED_ARCHIVE);
   160         goto openPak_failed;
   160         goto openPak_failed;
   161     } /* if */
   161     } /* if */
   162 
   162