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