diff --git a/source/shared/core_stream.cpp b/source/shared/core_stream.cpp index 40d40139..0444201f 100644 --- a/source/shared/core_stream.cpp +++ b/source/shared/core_stream.cpp @@ -164,7 +164,7 @@ size_t sqlsrv_stream_read( php_stream* stream, _Out_writes_bytes_(count) char* b static_cast(read >> 1), buf, static_cast(count), NULL, NULL ); #else int enc_len = WideCharToMultiByte( ss->encoding, flags, reinterpret_cast( temp_buf.get() ), - static_cast(read >> 1), buf, static_cast(count), NULL, NULL ); + static_cast(read >> 1), buf, static_cast(count), NULL, NULL ); #endif // !_WIN32 if( enc_len == 0 ) {