mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 03:05:40 +00:00
[KERNEL32]
Don't pass uninit pointer address to CsrFreeCaptureBuffer() CID 1223181 svn path=/trunk/; revision=69664
This commit is contained in:
parent
00e9309787
commit
a3237b1f66
1 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ BaseCheckVDM(IN ULONG BinaryType,
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
PBASE_CHECK_VDM CheckVdm = &ApiMessage->Data.CheckVDMRequest;
|
PBASE_CHECK_VDM CheckVdm = &ApiMessage->Data.CheckVDMRequest;
|
||||||
PCSR_CAPTURE_BUFFER CaptureBuffer;
|
PCSR_CAPTURE_BUFFER CaptureBuffer = NULL;
|
||||||
PWCHAR CurrentDir = NULL;
|
PWCHAR CurrentDir = NULL;
|
||||||
PWCHAR ShortAppName = NULL;
|
PWCHAR ShortAppName = NULL;
|
||||||
PWCHAR ShortCurrentDir = NULL;
|
PWCHAR ShortCurrentDir = NULL;
|
||||||
|
@ -517,7 +517,7 @@ Cleanup:
|
||||||
if (AnsiReserved) RtlFreeHeap(RtlGetProcessHeap(), 0, AnsiReserved);
|
if (AnsiReserved) RtlFreeHeap(RtlGetProcessHeap(), 0, AnsiReserved);
|
||||||
|
|
||||||
/* Free the capture buffer */
|
/* Free the capture buffer */
|
||||||
CsrFreeCaptureBuffer(CaptureBuffer);
|
if (CaptureBuffer) CsrFreeCaptureBuffer(CaptureBuffer);
|
||||||
|
|
||||||
/* Free the current directory, if it was allocated here, and its short path */
|
/* Free the current directory, if it was allocated here, and its short path */
|
||||||
if (ShortCurrentDir) RtlFreeHeap(RtlGetProcessHeap(), 0, ShortCurrentDir);
|
if (ShortCurrentDir) RtlFreeHeap(RtlGetProcessHeap(), 0, ShortCurrentDir);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue