X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=subsystems%2Fwin%2Fbasesrv%2Fvdm.c;h=dcfeb6d57300eeac9dfeb8c186b3b4314f06b49b;hp=408f3a344ebfa30b2073180856172c19e03f2530;hb=5a678ff4e0113e375b1c61c120a747a8322f8148;hpb=158d2645a509d5ccf59e700b65730dbc6b3e4c69 diff --git a/subsystems/win/basesrv/vdm.c b/subsystems/win/basesrv/vdm.c index 408f3a344eb..dcfeb6d5730 100644 --- a/subsystems/win/basesrv/vdm.c +++ b/subsystems/win/basesrv/vdm.c @@ -218,6 +218,9 @@ CSR_API(BaseSrvGetVDMCurDirs) Status = BaseSrvGetConsoleRecord(VDMCurrentDirsRequest->ConsoleHandle, &ConsoleRecord); if (!NT_SUCCESS(Status)) goto Cleanup; + /* Return the actual size of the current directory information */ + VDMCurrentDirsRequest->cchCurDirs = ConsoleRecord->CurDirsLength; + /* Check if the buffer is large enough */ if (VDMCurrentDirsRequest->cchCurDirs < ConsoleRecord->CurDirsLength) {