Skip to content

Commit 138ce33

Browse files
committed
fix exception caused by *dword used in *size_t call parameter
The code was writing a size_t size of data to a dword.
1 parent 937f2e0 commit 138ce33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/win32/win32compat/socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2718,7 +2718,7 @@ int WSHELPwrite(int sfd, const char *buf, unsigned int max)
27182718
case SFD_TYPE_CONSOLE:
27192719
{
27202720
//ret = _write(sfd_to_fd(sfd), buf, max);
2721-
DWORD dwWritten = 0 ;
2721+
size_t dwWritten = 0 ;
27222722
ret = WriteToConsole(sfd_to_handle(sfd), buf, max, &dwWritten, 0) ;
27232723
ret = max ;
27242724

0 commit comments

Comments
 (0)