1
Fork 0

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 WCHAR = u16;
pub type ULONG = c_ulong; pub type ULONG = c_ulong;
pub type LPCVOID = *const c_void;
pub type LPOVERLAPPED = *mut OVERLAPPED; pub type LPOVERLAPPED = *mut OVERLAPPED;
pub type LPSECURITY_ATTRIBUTES = *mut SECURITY_ATTRIBUTES; pub type LPSECURITY_ATTRIBUTES = *mut SECURITY_ATTRIBUTES;
pub type LPVOID = *mut c_void; 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, _dwCallbackReason: c::DWORD,
_hSourceFile: c::HANDLE, _hSourceFile: c::HANDLE,
_hDestinationFile: c::HANDLE, _hDestinationFile: c::HANDLE,
lpData: c::LPCVOID, lpData: *const c_void,
) -> c::DWORD { ) -> c::DWORD {
if dwStreamNumber == 1 { if dwStreamNumber == 1 {
*(lpData as *mut i64) = StreamBytesTransferred; *(lpData as *mut i64) = StreamBytesTransferred;