From 05ff783650b01cbd4d787a22135639e8ea8556a0 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Fri, 29 Aug 2025 23:55:48 +0200 Subject: [PATCH 1/2] Correct al_findfirst return type --- src/dos/dfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dos/dfile.c b/src/dos/dfile.c index 51838cb9..6aa61ebc 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 0; } /* attach it to the info structure */ From 3bd162aca9ff5f7777d60e0ba27103448aef6baa Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sat, 30 Aug 2025 01:22:11 +0200 Subject: [PATCH 2/2] Update dfile.c --- src/dos/dfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dos/dfile.c b/src/dos/dfile.c index 6aa61ebc..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 0; + return -1; } /* attach it to the info structure */