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:
@@ -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
|
||||
|===
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user