Remove SIZE_T

This commit is contained in:
Chris Denton 2024-07-14 06:59:28 +00:00
parent 5b700a76cf
commit 286c3270b4
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE
2 changed files with 2 additions and 3 deletions

View File

@ -114,7 +114,7 @@ fn init_or_get_process_heap() -> c::HANDLE {
extern "C" fn process_heap_init_and_alloc(
_heap: MaybeUninit<c::HANDLE>, // We pass this argument to match the ABI of `HeapAlloc`
flags: c::DWORD,
dwBytes: c::SIZE_T,
dwBytes: usize,
) -> c::LPVOID {
let heap = init_or_get_process_heap();
if core::intrinsics::unlikely(heap.is_null()) {
@ -128,7 +128,7 @@ extern "C" fn process_heap_init_and_alloc(
fn process_heap_alloc(
_heap: MaybeUninit<c::HANDLE>, // We pass this argument to match the ABI of `HeapAlloc`,
flags: c::DWORD,
dwBytes: c::SIZE_T,
dwBytes: usize,
) -> c::LPVOID {
let heap = HEAP.load(Ordering::Relaxed);
if core::intrinsics::likely(!heap.is_null()) {

View File

@ -19,7 +19,6 @@ pub use windows_sys::*;
pub type DWORD = c_ulong;
pub type WCHAR = u16;
pub type SIZE_T = usize;
pub type ULONG = c_ulong;
pub type LPCVOID = *const c_void;