From e6a0b4f58b41f79ec1c2c591e69c844205dd0b8d Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 9 Aug 2025 22:32:13 +0100 Subject: [PATCH] fix oopsie copy paste --- src/filesrch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filesrch.c b/src/filesrch.c index 9aa1aee55..6966f12eb 100644 --- a/src/filesrch.c +++ b/src/filesrch.c @@ -745,7 +745,7 @@ boolean preparefilemenu(boolean samedepth, boolean replayhut) if (stat(menupath, &fsstat) < 0) #else // if we wanna follow symlinks we can check with FILE_ATTRIBUTE_REPARSE_POINT - DWORD fileattr = GetFileAttributes(searchpath); + DWORD fileattr = GetFileAttributes(menupath); if (fileattr == INVALID_FILE_ATTRIBUTES) #endif ; // was the file (re)moved? can't stat it @@ -827,7 +827,7 @@ boolean preparefilemenu(boolean samedepth, boolean replayhut) if (stat(menupath, &fsstat) < 0) #else // if we wanna follow symlinks we can check with FILE_ATTRIBUTE_REPARSE_POINT - DWORD fileattr = GetFileAttributes(searchpath); + DWORD fileattr = GetFileAttributes(menupath); if (fileattr == INVALID_FILE_ATTRIBUTES) #endif ; // was the file (re)moved? can't stat it