aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/devmgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/devmgmt.c b/api/devmgmt.c
index c4ef0e2..83a14be 100644
--- a/api/devmgmt.c
+++ b/api/devmgmt.c
@@ -1030,7 +1030,7 @@ WintunCreateAdapter(
&DevInfoData,
SPDRP_DEVICEDESC,
(const BYTE *)PoolDeviceTypeName,
- (DWORD)(wcslen(PoolDeviceTypeName) * sizeof(WCHAR))))
+ (DWORD)((wcslen(PoolDeviceTypeName) + 1) * sizeof(WCHAR))))
{
Result = GetLastError();
goto cleanupNetDevRegKey;