From 61f617d370ae5cfd43745f5c7fe57fca84b75902 Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Sun, 14 Jul 2024 07:05:45 +0000 Subject: [PATCH] Remove LPCVOID --- std/src/sys/pal/windows/c.rs | 1 - std/src/sys/pal/windows/fs.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/std/src/sys/pal/windows/c.rs b/std/src/sys/pal/windows/c.rs index a771a77d077c5..801970f93fffa 100644 --- a/std/src/sys/pal/windows/c.rs +++ b/std/src/sys/pal/windows/c.rs @@ -21,7 +21,6 @@ pub type DWORD = c_ulong; pub type WCHAR = u16; pub type ULONG = c_ulong; -pub type LPCVOID = *const c_void; pub type LPOVERLAPPED = *mut OVERLAPPED; pub type LPSECURITY_ATTRIBUTES = *mut SECURITY_ATTRIBUTES; pub type LPVOID = *mut c_void; diff --git a/std/src/sys/pal/windows/fs.rs b/std/src/sys/pal/windows/fs.rs index 086768773150f..e7648fb2e5a5f 100644 --- a/std/src/sys/pal/windows/fs.rs +++ b/std/src/sys/pal/windows/fs.rs @@ -1425,7 +1425,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result { _dwCallbackReason: c::DWORD, _hSourceFile: c::HANDLE, _hDestinationFile: c::HANDLE, - lpData: c::LPCVOID, + lpData: *const c_void, ) -> c::DWORD { if dwStreamNumber == 1 { *(lpData as *mut i64) = StreamBytesTransferred;