From 1ea5d8653e5674f42fcac3f755a5f8140f855ed5 Mon Sep 17 00:00:00 2001 From: Matt Koscumb Date: Thu, 11 Oct 2018 10:51:49 -0700 Subject: [PATCH] Use SAL notation to indicate the capacity parameter. --- tests/common/SocketTools.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common/SocketTools.hpp b/tests/common/SocketTools.hpp index 13cbd660..3bb66f16 100644 --- a/tests/common/SocketTools.hpp +++ b/tests/common/SocketTools.hpp @@ -255,7 +255,7 @@ namespace testing { m_sock = Invalid; } - int recv(void* buffer, unsigned size) + int recv(_Out_bytecap_(size) void* buffer, unsigned size) { assert(m_sock != Invalid); return ::recv(m_sock, reinterpret_cast(buffer), size, 0);