mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-24 13:45:33 +00:00
SIZE_T -> size_t
This commit is contained in:
@@ -935,7 +935,7 @@ volatile int sectCheck = 48;
|
||||
CRITICAL_SECTION memCS;
|
||||
DWORD tlsIdx;
|
||||
|
||||
void* XMemAlloc(SIZE_T dwSize, DWORD dwAllocAttributes) {
|
||||
void* XMemAlloc(size_t dwSize, DWORD dwAllocAttributes) {
|
||||
if (!trackStarted) {
|
||||
void* p = XMemAllocDefault(dwSize, dwAllocAttributes);
|
||||
size_t realSize = XMemSizeDefault(p, dwAllocAttributes);
|
||||
@@ -1018,7 +1018,7 @@ void WINAPI XMemFree(void* pAddress, DWORD dwAllocAttributes) {
|
||||
LeaveCriticalSection(&memCS);
|
||||
}
|
||||
|
||||
SIZE_T WINAPI XMemSize(void* pAddress, DWORD dwAllocAttributes) {
|
||||
size_t WINAPI XMemSize(void* pAddress, DWORD dwAllocAttributes) {
|
||||
if (trackStarted) {
|
||||
return XMemSizeDefault(pAddress, dwAllocAttributes) - 16;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user