mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Fix a type warning in conpty.c.
Turns out that standard C 'size_t' and the Win32 API's 'SIZE_T' aren't the same integer type in all cases! They have the same _size_, but in 32-bit, one of them is a typedef for 'unsigned int' and the other for 'unsigned long', leading to annoying pointer-type mismatch warnings.
This commit is contained in:
@ -190,7 +190,7 @@ static char *conpty_init(const BackendVtable *vt, Seat *seat,
|
||||
|
||||
si.StartupInfo.cb = sizeof(si);
|
||||
|
||||
size_t attrsize = 0;
|
||||
SIZE_T attrsize = 0;
|
||||
InitializeProcThreadAttributeList(NULL, 1, 0, &attrsize);
|
||||
si.lpAttributeList = smalloc(attrsize);
|
||||
if (!InitializeProcThreadAttributeList(
|
||||
|
Reference in New Issue
Block a user