You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Pass missing parameter for 'lpNumberOfCharsWritten' to WriteConsoleW()
function.
Apparently this parameter was *not* optional on older Windows versions.
Issue observed on Windows XP SP2. Issue not observed on Windows 7 SP1.
So at some point between those two Microsoft changed the behavior.
Prior to this change, on those versions if parameter is NULL then the
function call fails with error ERROR_INVALID_ACCESS.
Regression since af3f4e4.
Ref: MicrosoftDocs/Console-Docs#299Fixescurl#12131Closescurl#12130
I did this
On some Windows version (tested with WinXP SP-2), cURL fails with the following error, if writing output to the terminal:
(output to a file still works)
I have been able to track this error down to the
tool_write_cb()
function 😤Specifically, the invocation of
WriteConsoleW()
fails, with Win32 error codeERROR_INVALID_ACCESS
.Setting parameter lpNumberOfCharsWritten to a valid pointer fixed the problem for me.
Please see: #12130
This seems to be a regression from: af3f4e4
I expected the following
cURL should be able to write to the terminal.
curl/libcurl version
cURL 8.4.0
operating system
Windows
The text was updated successfully, but these errors were encountered: