Explorar o código

Fixed logic bug.

Ryan C. Gordon %!s(int64=24) %!d(string=hai) anos
pai
achega
752b317ca4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      archivers/qpak.c

+ 1 - 1
archivers/qpak.c

@@ -154,7 +154,7 @@ static int openQPak(const char *filename, int forWriting, void **fileHandle)
     if (!readui32(*fileHandle, &sig))
     if (!readui32(*fileHandle, &sig))
         goto openPak_failed;
         goto openPak_failed;
     
     
-    if (sig == QPAK_MAGIC)
+    if (sig != QPAK_MAGIC)
     {
     {
         __PHYSFS_setError(ERR_UNSUPPORTED_ARCHIVE);
         __PHYSFS_setError(ERR_UNSUPPORTED_ARCHIVE);
         goto openPak_failed;
         goto openPak_failed;