mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 17:01:53 +00:00
small bugfix: don't zero terminate the szCSDVersion sting beyond the buffer.
svn path=/trunk/; revision=28111
This commit is contained in:
parent
9e4807d6e5
commit
e97388eec3
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ InitOsVersion()
|
|||
GetVersionExW(&osv);
|
||||
pszRos = osv.szCSDVersion + wcslen(osv.szCSDVersion) + 1;
|
||||
/* make sure the string is zero terminated */
|
||||
pszRos[127] = 0;
|
||||
osv.szCSDVersion[127] = 0;
|
||||
/* Is ReactOS? */
|
||||
if (wcsstr(pszRos, L"ReactOS") != NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue