1
0
mirror of https://github.com/winfsp/winfsp.git synced 2025-10-28 10:38:39 -05:00

Merge pull request #617 from coderall2/fix_path_convert_bug

Fix: fix FspPosixMapPosixToWindowsPathEx pointer misuse
This commit is contained in:
Bill Zissimopoulos
2025-08-06 18:19:19 +03:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -76,4 +76,5 @@ CONTRIBUTOR LIST
|Tobias Urlaub |saibotu at outlook.de
|Victor Gao |victgm at outlook.com
|Zeho Huang |zeho11 at protonmail.com
|Zhangfen Duan |lzcgwushuang at 163.com
|===

View File

@@ -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;