mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[win32csr]
Fix zero termination of harderror string parameters, when they are ansi. See issue #5983 for more details. svn path=/trunk/; revision=51004
This commit is contained in:
parent
031e55222a
commit
775a83cdf4
1 changed files with 3 additions and 2 deletions
|
@ -118,7 +118,7 @@ CsrpCaptureStringParameters(
|
|||
ULONG nParam, UnicodeStringParameterMask, Size = 0;
|
||||
NTSTATUS Status;
|
||||
UNICODE_STRING TempStringU;
|
||||
PWSTR ParamString;
|
||||
CHAR *ParamString;
|
||||
|
||||
UnicodeStringParameterMask = HardErrorMessage->UnicodeStringParameterMask;
|
||||
|
||||
|
@ -166,7 +166,8 @@ CsrpCaptureStringParameters(
|
|||
}
|
||||
|
||||
/* Zero terminate the string */
|
||||
ParamString[TempStringU.Length / sizeof(WCHAR)] = 0;
|
||||
ParamString[TempStringU.Length] = 0;
|
||||
ParamString[TempStringU.Length + 1] = 0;
|
||||
DPRINT("ParamString=\'%S\'\n", ParamString);
|
||||
|
||||
Parameters[nParam] = (ULONG_PTR)ParamString;
|
||||
|
|
Loading…
Reference in a new issue