summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2023-03-01 07:56:03 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2023-03-01 07:56:03 (GMT)
commita6b4ef3d29565b68fb8c7104b11b03a99e0b153e (patch)
tree6b3156477e823c2672d2206cbdf7b7f9724e0d39 /win
parent62d9150ef53073a2ab29f2ba1b46551f273e56ec (diff)
downloadtcl-a6b4ef3d29565b68fb8c7104b11b03a99e0b153e.zip
tcl-a6b4ef3d29565b68fb8c7104b11b03a99e0b153e.tar.gz
tcl-a6b4ef3d29565b68fb8c7104b11b03a99e0b153e.tar.bz2
Fix [f8ef6b3670] crash. TclpSysAlloc macro was truncating size request to 32 bits on Windows.
Diffstat (limited to 'win')
-rw-r--r--win/tclWinPort.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index 2c01a6b..cc9453b 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -518,11 +518,11 @@ typedef DWORD_PTR * PDWORD_PTR;
*/
#define TclpSysAlloc(size) ((void*)HeapAlloc(GetProcessHeap(), \
- (DWORD)0, (DWORD)size))
+ 0, size))
#define TclpSysFree(ptr) (HeapFree(GetProcessHeap(), \
- (DWORD)0, (HGLOBAL)ptr))
+ 0, (HGLOBAL)ptr))
#define TclpSysRealloc(ptr, size) ((void*)HeapReAlloc(GetProcessHeap(), \
- (DWORD)0, (LPVOID)ptr, (DWORD)size))
+ 0, (LPVOID)ptr, size))
/* This type is not defined in the Windows headers */
#define socklen_t int