From 3907e6318eae2668712bba04edc10e3648292508 Mon Sep 17 00:00:00 2001 From: "Justin Terry (VM)" Date: Wed, 14 Mar 2018 07:52:41 -0700 Subject: WHPX fix WHvGetCapability out WrittenSizeInBytes This fixes a breaking change to WHvGetCapability to include the 'out' WrittenSizeInBytes introduced in Windows Insider SDK 17110. This specifies on return the safe length to read into the WHV_CAPABILITY structure passed to the call. Signed-off-by: Justin Terry (VM) Message-Id: <1521039163-138-2-git-send-email-juterry@microsoft.com> Signed-off-by: Paolo Bonzini --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 8376cb151a..4d0e92c96c 100755 --- a/configure +++ b/configure @@ -2496,7 +2496,9 @@ if test "$whpx" != "no" ; then #include int main(void) { WHV_CAPABILITY whpx_cap; - WHvGetCapability(WHvCapabilityCodeFeatures, &whpx_cap, sizeof(whpx_cap)); + UINT32 writtenSize; + WHvGetCapability(WHvCapabilityCodeFeatures, &whpx_cap, sizeof(whpx_cap), + &writtenSize); return 0; } EOF -- cgit v1.2.1