equal
deleted
inserted
replaced
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 |