mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
append the reactos string after a null-character
svn path=/trunk/; revision=13666
This commit is contained in:
parent
5d24e9057f
commit
c7a7f1b757
1 changed files with 2 additions and 2 deletions
|
@ -276,14 +276,14 @@ GetVersionExW(
|
|||
flag set so we don't screw applications that might depend on a
|
||||
certain string */
|
||||
|
||||
ln = wcslen(lpVersionInformation->szCSDVersion);
|
||||
ln = wcslen(lpVersionInformation->szCSDVersion) + 1;
|
||||
maxlen = (sizeof(lpVersionInformation->szCSDVersion) / sizeof(lpVersionInformation->szCSDVersion[0]) - 1);
|
||||
if(maxlen > ln)
|
||||
{
|
||||
PWCHAR szVer = lpVersionInformation->szCSDVersion + ln;
|
||||
RtlZeroMemory(szVer, (maxlen - ln + 1) * sizeof(WCHAR));
|
||||
wcsncpy(szVer,
|
||||
L" ReactOS " KERNEL_VERSION_STR L" (Build " KERNEL_VERSION_BUILD_STR L")",
|
||||
L"ReactOS " KERNEL_VERSION_STR L" (Build " KERNEL_VERSION_BUILD_STR L")",
|
||||
maxlen - ln);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue