Remove LPCVOID

This commit is contained in:
Chris Denton 2024-07-14 07:05:45 +00:00
parent 286c3270b4
commit 8052fb8f3c
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -1425,7 +1425,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
_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;