mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[KERNEL32] lpNumberOfCharsWritten is optional for WriteConsole (#1079)
Some applications (and libraries, like replxx) rely on this undocumented behavior.
This commit is contained in:
parent
934e5212e4
commit
c15a9c1d09
1 changed files with 3 additions and 3 deletions
|
@ -681,8 +681,8 @@ IntWriteConsole(IN HANDLE hConsoleOutput,
|
|||
/* Release the capture buffer if needed */
|
||||
if (CaptureBuffer) CsrFreeCaptureBuffer(CaptureBuffer);
|
||||
|
||||
/* Retrieve the results */
|
||||
if (Success)
|
||||
/* Retrieve the results. NOTE: lpNumberOfCharsWritten optional since Vista+ */
|
||||
if (Success && lpNumberOfCharsWritten)
|
||||
{
|
||||
_SEH2_TRY
|
||||
{
|
||||
|
@ -695,7 +695,7 @@ IntWriteConsole(IN HANDLE hConsoleOutput,
|
|||
}
|
||||
_SEH2_END;
|
||||
}
|
||||
else
|
||||
else if (!Success)
|
||||
{
|
||||
BaseSetLastNTError(ApiMessage.Status);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue