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,
|
&DevInfoData,
|
||||||
SPDRP_DEVICEDESC,
|
SPDRP_DEVICEDESC,
|
||||||
(const BYTE *)PoolDeviceTypeName,
|
(const BYTE *)PoolDeviceTypeName,
|
||||||
(DWORD)(wcslen(PoolDeviceTypeName) * sizeof(WCHAR))))
|
(DWORD)((wcslen(PoolDeviceTypeName) + 1) * sizeof(WCHAR))))
|
||||||
{
|
{
|
||||||
Result = GetLastError();
|
Result = GetLastError();
|
||||||
goto cleanupNetDevRegKey;
|
goto cleanupNetDevRegKey;
|
||||||
|
Loading…
Reference in New Issue
Block a user