windoze bruh

This commit is contained in:
Alug committed 2025-09-16 13:23:23 +01:00
1 parent b5896f9dbd
commit 322463280d
1 file changed
+2 -2
+2 -2
View File
@@ -748,7 +748,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
@@ -830,7 +830,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