fix exception caused by *dword used in *size_t call parameter

The code was writing a size_t size of data to a dword.
This commit is contained in:
dkulwin 2015-11-16 17:53:16 -06:00
parent 937f2e02cc
commit 138ce33669
1 changed files with 1 additions and 1 deletions

View File

@ -2718,7 +2718,7 @@ int WSHELPwrite(int sfd, const char *buf, unsigned int max)
case SFD_TYPE_CONSOLE: case SFD_TYPE_CONSOLE:
{ {
//ret = _write(sfd_to_fd(sfd), buf, max); //ret = _write(sfd_to_fd(sfd), buf, max);
DWORD dwWritten = 0 ; size_t dwWritten = 0 ;
ret = WriteToConsole(sfd_to_handle(sfd), buf, max, &dwWritten, 0) ; ret = WriteToConsole(sfd_to_handle(sfd), buf, max, &dwWritten, 0) ;
ret = max ; ret = max ;