diff --git a/src/dos/dfile.c b/src/dos/dfile.c index 51838cb9..4d7e5d83 100644 --- a/src/dos/dfile.c +++ b/src/dos/dfile.c @@ -144,7 +144,7 @@ int al_findfirst(AL_CONST char *pattern, struct al_ffblk *info, int attrib) if (!ff_data) { *allegro_errno = ENOMEM; - return NULL; + return -1; } /* attach it to the info structure */