From 8f188914cd60586a1d4debbc5287bad6a9122f33 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Tue, 15 Dec 2015 19:04:45 -0800 Subject: [PATCH] dll: GlobalDevicePath: bug fix --- src/dll/fsctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dll/fsctl.c b/src/dll/fsctl.c index baf12790..48671f4a 100644 --- a/src/dll/fsctl.c +++ b/src/dll/fsctl.c @@ -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! */