Skip to content

Commit a3cbaff

Browse files
committed
Remove LPCVOID
1 parent 96c35d1 commit a3cbaff

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

library/std/src/sys/pal/windows/c.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ pub use windows_sys::*;
2020
pub type DWORD = c_ulong;
2121
pub type ULONG = c_ulong;
2222

23-
pub type LPCVOID = *const c_void;
2423
pub type LPOVERLAPPED = *mut OVERLAPPED;
2524
pub type LPSECURITY_ATTRIBUTES = *mut SECURITY_ATTRIBUTES;
2625
pub type LPVOID = *mut c_void;

library/std/src/sys/pal/windows/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
14251425
_dwCallbackReason: c::DWORD,
14261426
_hSourceFile: c::HANDLE,
14271427
_hDestinationFile: c::HANDLE,
1428-
lpData: c::LPCVOID,
1428+
lpData: *const c_void,
14291429
) -> c::DWORD {
14301430
if dwStreamNumber == 1 {
14311431
*(lpData as *mut i64) = StreamBytesTransferred;

0 commit comments

Comments
 (0)