From c5141855a2ea0a4b154d4461d1965e10a9823a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 30 Apr 2026 00:05:43 +0800 Subject: [PATCH] Path: removes dead code --- src/common/impl/path.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/common/impl/path.c b/src/common/impl/path.c index 03662502c..97dc9993a 100644 --- a/src/common/impl/path.c +++ b/src/common/impl/path.c @@ -128,13 +128,6 @@ char* frealpath(HANDLE hFile, char* resolved_name) { errno = E2BIG; return NULL; } - - if (outBytes > MAX_PATH) { - errno = E2BIG; - return NULL; - } - - return resolved_name; } else { /* UTF-8 worst-case: up to 4 bytes per UTF-16 code unit */ char tmp[(MAX_PATH + 4) * 4]; @@ -152,7 +145,6 @@ char* frealpath(HANDLE hFile, char* resolved_name) { } memcpy(resolved_name, tmp, outBytes); - return resolved_name; } return resolved_name;