mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
[USERSRV] HardError: Free WindowTitleU buffer only if we really allocated it.
This commit is contained in:
parent
704baed2df
commit
7cb411e88f
|
@ -641,8 +641,10 @@ UserpFormatMessages(
|
||||||
CaptionStringU->Length = (USHORT)(wcslen(CaptionStringU->Buffer) * sizeof(WCHAR));
|
CaptionStringU->Length = (USHORT)(wcslen(CaptionStringU->Buffer) * sizeof(WCHAR));
|
||||||
|
|
||||||
/* Free the strings if needed */
|
/* Free the strings if needed */
|
||||||
if (WindowTitleU.Buffer) RtlFreeUnicodeString(&WindowTitleU);
|
if (WindowTitleU.Buffer && (WindowTitleU.MaximumLength != 0))
|
||||||
if (hProcess) RtlFreeUnicodeString(&FileNameU);
|
RtlFreeUnicodeString(&WindowTitleU);
|
||||||
|
if (hProcess)
|
||||||
|
RtlFreeUnicodeString(&FileNameU);
|
||||||
|
|
||||||
Format2A.Buffer = NULL;
|
Format2A.Buffer = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue