diff --git a/src/port/dirmod.c b/src/port/dirmod.c
index 2661192..cb6e927 100644
--- a/src/port/dirmod.c
+++ b/src/port/dirmod.c
@@ -386,7 +386,6 @@ pgwin32_safestat(const char *path, struct stat *buf)
 			return -1;
 		}
 
-		return r;
 	}
 
 	if (!GetFileAttributesEx(path, GetFileExInfoStandard, &attr))
