Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 61f617d

Browse files
committedJul 15, 2024
Remove LPCVOID
1 parent 8a25371 commit 61f617d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
 

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

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ pub type DWORD = c_ulong;
2121
pub type WCHAR = u16;
2222
pub type ULONG = c_ulong;
2323

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

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

+1-1
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)
Failed to load comments.