Win32 fix

This commit is contained in:
Andy McFadden 2015-01-02 17:44:10 -08:00
parent e7bf743afd
commit ad2ec98e8b
1 changed files with 2 additions and 2 deletions

View File

@ -401,7 +401,7 @@ int TestExtract(NuArchive* pArchive, const char* entryNameMOR)
(void) NuFreeDataSink(pDataSink); (void) NuFreeDataSink(pDataSink);
printf("... confirming extraction of '%s'\n", entryNameUNI); printf("... confirming extraction of '%s'\n", entryNameUNI);
if (access(entryNameUNI, R_OK) != 0) { if (access(entryNameUNI, F_OK) != 0) {
fprintf(stderr, "ERROR: unable to read '%s' (err=%d)\n", fprintf(stderr, "ERROR: unable to read '%s' (err=%d)\n",
entryNameUNI, errno); entryNameUNI, errno);
free(entryNameUNI); free(entryNameUNI);
@ -493,7 +493,7 @@ int DoTests(void)
} }
pArchive = NULL; pArchive = NULL;
if (access(kTestArchive, R_OK) != 0) { if (access(kTestArchive, F_OK) != 0) {
fprintf(stderr, "ERROR: did not find %s (err=%d)\n", kTestArchive, err); fprintf(stderr, "ERROR: did not find %s (err=%d)\n", kTestArchive, err);
goto failed; goto failed;
} }