mirror of
https://github.com/winfsp/winfsp.git
synced 2026-03-14 04:19:27 -05:00
Merge pull request #617 from coderall2/fix_path_convert_bug
Fix: fix FspPosixMapPosixToWindowsPathEx pointer misuse
This commit is contained in:
@@ -76,4 +76,5 @@ CONTRIBUTOR LIST
|
|||||||
|Tobias Urlaub |saibotu at outlook.de
|
|Tobias Urlaub |saibotu at outlook.de
|
||||||
|Victor Gao |victgm at outlook.com
|
|Victor Gao |victgm at outlook.com
|
||||||
|Zeho Huang |zeho11 at protonmail.com
|
|Zeho Huang |zeho11 at protonmail.com
|
||||||
|
|Zhangfen Duan |lzcgwushuang at 163.com
|
||||||
|===
|
|===
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user