1
0
mirror of https://github.com/winfsp/winfsp.git synced 2025-10-29 19:18:39 -05:00

Fix: fix FspPosixMapPosixToWindowsPathEx pointer misuse

This commit is contained in:
coderall2
2025-07-02 13:30:12 +08:00
committed by GitHub
parent ddca7bd548
commit 7e861c30ac

View File

@@ -1416,7 +1416,7 @@ FSP_API NTSTATUS FspPosixMapPosixToWindowsPathEx(const char *PosixPath, PWSTR *P
goto lasterror; goto lasterror;
WindowsPath = MemAlloc(Size * sizeof(WCHAR)); WindowsPath = MemAlloc(Size * sizeof(WCHAR));
if (0 == PosixPath) if (0 == WindowsPath)
{ {
Result = STATUS_INSUFFICIENT_RESOURCES; Result = STATUS_INSUFFICIENT_RESOURCES;
goto exit; goto exit;