mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-25 20:13:21 -05:00
dll: GlobalDevicePath: bug fix
This commit is contained in:
@@ -20,7 +20,7 @@ static inline VOID GlobalDevicePath(PWCHAR DevicePathBuf, SIZE_T DevicePathSize,
|
|||||||
if (RootSize + PathSize <= DevicePathSize)
|
if (RootSize + PathSize <= DevicePathSize)
|
||||||
{
|
{
|
||||||
memcpy(DevicePathBuf, DeviceRoot, RootSize);
|
memcpy(DevicePathBuf, DeviceRoot, RootSize);
|
||||||
memcpy(DevicePathBuf + RootSize, DevicePath, PathSize);
|
memcpy((PUINT8)DevicePathBuf + RootSize, DevicePath, PathSize);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
/* we should be doing assert(sizeof(WCHAR) <= DevicePathSize), but we don't have assert! */
|
/* we should be doing assert(sizeof(WCHAR) <= DevicePathSize), but we don't have assert! */
|
||||||
|
Reference in New Issue
Block a user