From 7e861c30ac9af15a2e2e9888dbee206a2ed45d87 Mon Sep 17 00:00:00 2001 From: coderall2 <872871337@qq.com> Date: Wed, 2 Jul 2025 13:30:12 +0800 Subject: [PATCH] Fix: fix FspPosixMapPosixToWindowsPathEx pointer misuse --- src/shared/ku/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/ku/posix.c b/src/shared/ku/posix.c index 8959ab54..5dd5fe57 100644 --- a/src/shared/ku/posix.c +++ b/src/shared/ku/posix.c @@ -1416,7 +1416,7 @@ FSP_API NTSTATUS FspPosixMapPosixToWindowsPathEx(const char *PosixPath, PWSTR *P goto lasterror; WindowsPath = MemAlloc(Size * sizeof(WCHAR)); - if (0 == PosixPath) + if (0 == WindowsPath) { Result = STATUS_INSUFFICIENT_RESOURCES; goto exit;