api: fix SPDRP_DEVICEDESC zero-termination
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
0adf0fab8d
commit
43a1751b21
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user