1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 15:48:06 -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:
Simon Tatham 2022-05-21 09:07:42 +01:00
parent 176f01ea7c
commit b42f9c2cf7

View File

@ -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(