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:
parent
176f01ea7c
commit
b42f9c2cf7
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user