qemu-display: update windows deps

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2023-01-16 15:32:38 +04:00
parent 12d7cd59c3
commit f33c9c4659
2 changed files with 5 additions and 5 deletions

View File

@ -31,8 +31,8 @@ qapi = { version = "0.9.0", features = ["qmp"], optional = true }
base64 = { version = "0.13", optional = true }
[target.'cfg(windows)'.dependencies]
uds_windows = "1.0.1"
windows = { version = "0.39.0", features = ["Win32_Networking_WinSock", "Win32_Foundation", "Win32_System_IO", "Win32_System_Threading"] }
uds_windows = "1.0.2"
windows = { version = "0.43.0", features = ["Win32_Networking_WinSock", "Win32_Foundation", "Win32_System_IO", "Win32_System_Threading"] }
[target.'cfg(windows)'.dev-dependencies]
async-std = { version = "1.12.0", features = ["attributes"] }

View File

@ -98,12 +98,12 @@ pub(crate) fn unix_stream_get_peer_pid(stream: &UnixStream) -> Result<u32, std::
WSAIoctl(
SOCKET(socket as _),
SIO_AF_UNIX_GETPEERPID,
0 as *mut _,
None,
0,
&mut ret as *mut _ as *mut _,
Some(&mut ret as *mut _ as *mut _),
std::mem::size_of_val(&ret) as u32,
&mut bytes,
0 as *mut _,
None,
None,
)
};